From 8718918deda679640e132680b3ae7b7127e71efa Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Apr 01 2017 12:54:18 +0000 Subject: Remove rhel5 relicts * popt-devel is available on rhel6+ * waf is used instead of autotools * Package has no %clean section with rm -rf %{buildroot} (or $RPM_BUILD_ROOT) Note: %clean present but not required --- diff --git a/libldb.spec b/libldb.spec index f3adbd5..6e072e0 100644 --- a/libldb.spec +++ b/libldb.spec @@ -27,14 +27,7 @@ Source: http://samba.org/ftp/ldb/ldb-%{version}.tar.gz BuildRequires: libtalloc-devel >= %{talloc_version} BuildRequires: libtdb-devel >= %{tdb_version} BuildRequires: libtevent-devel >= %{tevent_version} -%{?fedora:BuildRequires: popt-devel} -%if 0%{?rhel} <= 5 -BuildRequires: popt -%endif -%if 0%{?rhel} >= 6 BuildRequires: popt-devel -%endif -BuildRequires: autoconf BuildRequires: libxslt BuildRequires: docbook-style-xsl BuildRequires: python-devel @@ -184,9 +177,6 @@ cp -a apidocs/man/* $RPM_BUILD_ROOT/%{_mandir} # file path rm -f $RPM_BUILD_ROOT/%{_mandir}/man3/_* -%clean -rm -rf %{buildroot} - %post -p /sbin/ldconfig %postun -p /sbin/ldconfig