summaryrefslogtreecommitdiffstats
path: root/libmemcached-last.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2018-02-15 08:53:27 +0100
committerRemi Collet <remi@remirepo.net>2018-02-15 08:53:27 +0100
commit618811e6df781f0e96fc32e67f20b561374fef0d (patch)
treebc925f5c13d80e08cb1446a98c45beecdfa4085b /libmemcached-last.spec
parenta79d4c4504c5b7b5ce243189012030d8cfdc7444 (diff)
drop ldconfig scriptlets for F28
Diffstat (limited to 'libmemcached-last.spec')
-rw-r--r--libmemcached-last.spec20
1 files changed, 3 insertions, 17 deletions
diff --git a/libmemcached-last.spec b/libmemcached-last.spec
index 69d26a5..c48bbd4 100644
--- a/libmemcached-last.spec
+++ b/libmemcached-last.spec
@@ -3,7 +3,7 @@
#
# Fedora spec file for libmemcached
#
-# Copyright (c) 2009-2017 Remi Collet
+# Copyright (c) 2009-2018 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/4.0/
#
@@ -40,7 +40,6 @@ Summary: Client library and command line tools for memcached server
Version: 1.0.18
Release: 6%{?dist}
License: BSD
-Group: Applications/System
URL: http://libmemcached.org/
# Original sources:
# http://launchpad.net/libmemcached/1.0/%{version}/+download/libmemcached-%{version}.tar.gz
@@ -50,7 +49,6 @@ URL: http://libmemcached.org/
# "-exhsieh" tarball.
Source0: %{libname}-%{version}-exhsieh.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%if %{with_sasl}
BuildRequires: cyrus-sasl-devel
%endif
@@ -58,9 +56,7 @@ BuildRequires: flex
BuildRequires: bison
BuildRequires: python-sphinx
BuildRequires: memcached
-%if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
BuildRequires: systemtap-sdt-devel
-%endif
%if 0%{?scl:1}
BuildRequires: %{sub_prefix}libevent-devel > 2
@@ -104,7 +100,6 @@ memtouch Touches a key
%package devel
Summary: Header files and development libraries for %{name}
-Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: pkgconfig
%if %{with_sasl}
@@ -127,7 +122,6 @@ you will need to install %{name}-devel.
%package libs
Summary: %{libname} libraries
-Group: System Environment/Libraries
%if 0%{?scl:1}
Requires: %{scl}-runtime
@@ -199,8 +193,6 @@ make %{_smp_mflags} V=1
%install
-rm -rf %{buildroot}
-
%{?scl: . %{_scl_scripts}/enable}
make install DESTDIR="%{buildroot}" AM_INSTALL_PROGRAM_FLAGS=""
@@ -224,23 +216,18 @@ make test
%endif
-%clean
-rm -rf %{buildroot}
-
-
+%if 0%{?fedora} < 28 && 0%{?rhel} < 8
%post libs -p /sbin/ldconfig
-
%postun libs -p /sbin/ldconfig
+%endif
%files
-%defattr (-,root,root,-)
%{_bindir}/mem*
%exclude %{_libdir}/lib*.la
%{_mandir}/man1/mem*
%files libs
-%defattr (-,root,root,-)
%doc AUTHORS COPYING README THANKS TODO ChangeLog
%{_libdir}/libhashkit.so.2*
%{_libdir}/libmemcached.so.11*
@@ -248,7 +235,6 @@ rm -rf %{buildroot}
%{_libdir}/libmemcachedutil.so.2*
%files devel
-%defattr (-,root,root,-)
%doc examples
%{_includedir}/libmemcached
%{_includedir}/libmemcached-1.0