diff options
author | Remi Collet <remi@remirepo.net> | 2018-02-15 08:43:44 +0100 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2018-02-15 08:43:44 +0100 |
commit | 24d07300d301a1056175aae470867fa655e42a80 (patch) | |
tree | aa86f194a5678cc1c112626b595e694d69c21729 | |
parent | 388b598896789c35840245bca7d5c66c6f3e084b (diff) |
drop ldconfig scriptlets for F28
-rw-r--r-- | fastlz.spec | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/fastlz.spec b/fastlz.spec index 0f34788..a135ba7 100644 --- a/fastlz.spec +++ b/fastlz.spec @@ -1,6 +1,6 @@ # spec file for fastlz # -# Copyright (c) 2014-2017 Remi Collet +# Copyright (c) 2014-2018 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # @@ -16,15 +16,12 @@ Summary: Portable real-time compression library Version: 0.1.0 Release: 0.1.%{date}svnrev%{svnrev}%{?dist} License: MIT -Group: System Environment/Libraries URL: http://fastlz.org/ # svn export -r 12 http://fastlz.googlecode.com/svn/trunk/ fastlz-12 # tar cjf fastlz-12.tar.bz2 fastlz-12 Source0: %{name}-%{svnrev}.tar.bz2 -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - %description FastLZ is a lossless data compression library designed for real-time @@ -61,8 +58,6 @@ gcc %optflags -fPIC 6unpack.c -L. -l%{name} -o 6unpack %install -rm -rf %{buildroot} - install -D -m 0755 lib%{name}.so.%{abi} %{buildroot}%{_libdir}/lib%{name}.so.%{abi} ln -s lib%{name}.so.%{abi} %{buildroot}%{_libdir}/lib%{name}.so install -D -pm 0644 %{name}.h %{buildroot}%{_includedir}/%{name}.h @@ -91,27 +86,22 @@ rm tmpin diff %{name}.c tmpin -%clean -rm -rf %{buildroot} - - -%post -p /sbin/ldconfig - +%if 0%{?fedora} < 28 && 0%{?rhel} < 8 +%post -p /sbin/ldconfig %postun -p /sbin/ldconfig +%endif %files -%defattr (-,root,root,-) %{!?_licensedir:%global license %%doc} %license LICENSE %{_libdir}/lib%{name}.so.%{abi} %files devel -%defattr (-,root,root,-) %{_libdir}/lib%{name}.so %{_includedir}/%{name}.h %changelog * Fri Sep 5 2014 Remi Collet <remi@fedoraproject.org> - 0.1-0.1.20070619svnrev12 -- Initial RPM
\ No newline at end of file +- Initial RPM |