diff options
author | pgen <p.gen.progs@gmail.com> | 2019-03-20 00:25:48 +0100 |
---|---|---|
committer | pgen <p.gen.progs@gmail.com> | 2019-03-20 00:25:48 +0100 |
commit | 31cf4b4f8519186c87ee58b458e21f43f524ea76 (patch) | |
tree | e2afef4d8878785aaa8aa9f3644b14394b284fa1 /smenu.spec.in | |
parent | e82fb24e8a4bda56ed388803b8ba2f05c5d85ff9 (diff) |
Improve the specfile
RPMs can now be created for more platforms, including SLE_11_SP4 and
SLE_12_SP2.
Diffstat (limited to 'smenu.spec.in')
-rw-r--r-- | smenu.spec.in | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/smenu.spec.in b/smenu.spec.in index c99504d..7a47229 100644 --- a/smenu.spec.in +++ b/smenu.spec.in @@ -25,6 +25,7 @@ Group: Productivity/Text/Utilities URL: https://github.com/p-gen/%{name} Source: %{name}-%{version}.tar.bz2 BuildRequires: ncurses-devel +BuildRoot: %{_tmppath}/%{name}-%{version}-build %description This tool reads words from a file or standard input, presents them in an @@ -47,14 +48,24 @@ This packages contains some scripts and a number of tests to check the %{name} tool. %install +%if 0%{?suse_version} < 1315 +make install DESTDIR="%{?buildroot}" +%else %make_install +%endif %files tests +%defattr(-,root,root,-) %doc tests %files +%defattr(-,root,root,-) %attr(0755,root,root) %{_bindir}/* +%if 0%{?sle_version} < 120300 +%doc COPYRIGHT +%else %license COPYRIGHT +%endif %doc examples README.rst %{_mandir}/man1/* |