summaryrefslogtreecommitdiffstats
path: root/smenu.spec.in
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2018-05-21 23:45:11 +0200
committerpgen <p.gen.progs@gmail.com>2018-05-25 00:46:20 +0200
commita18d18a70133697dbf68de3b2781774311086259 (patch)
tree6f93f6fb481d1e72f006a4fe42b871a7a0475a98 /smenu.spec.in
parent7343bbf9650bd1a763ca3b669302efe82dd34d8e (diff)
Add the subpackage '-tests' in the specfile
Diffstat (limited to 'smenu.spec.in')
-rw-r--r--smenu.spec.in23
1 files changed, 20 insertions, 3 deletions
diff --git a/smenu.spec.in b/smenu.spec.in
index b2be420..770ea92 100644
--- a/smenu.spec.in
+++ b/smenu.spec.in
@@ -47,19 +47,36 @@ Author: Pierre Gentile <p.gen.progs@gmail.com>
%configure
make %{?_smp_mflags}
+%package tests
+Summary: %{name} testing system
+Group: Productivity/Text/Utilities
+
+%description tests
+This packages contains some scripts and a bunch of test to check the
+%{name} tool.
+
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
install -d %{buildroot}%{_defaultdocdir}/%{name}
-for FILE in COPYRIGHT *.rst examples; do
+for FILE in COPYRIGHT *.rst examples tests; do
mv ${FILE} %{buildroot}%{_defaultdocdir}/%{name}
done
-cp -rp tests %{buildroot}%{_defaultdocdir}/%{name}
+
+%files tests
+%defattr(-,root,root,-)
+%dir %{_defaultdocdir}/%{name}/tests
+%doc %{_defaultdocdir}/%{name}/tests/README.rst
+%doc %{_defaultdocdir}/%{name}/tests/test.sh
+%doc %{_defaultdocdir}/%{name}/tests/tests.sh
+%doc %{_defaultdocdir}/%{name}/tests/tests.cpio.gz
%files
%defattr(-,root,root,-)
%attr(0755,root,root) %{_bindir}/*
%dir %{_defaultdocdir}/%{name}
-%doc %{_defaultdocdir}/%{name}/*
+%doc %{_defaultdocdir}/%{name}/examples
+%doc %{_defaultdocdir}/%{name}/COPYRIGHT
+%doc %{_defaultdocdir}/%{name}/*.rst
%{_mandir}/man1/*
%changelog