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
This commit is contained in:
Lukas Slebodnik 2016-12-05 14:02:58 +01:00
parent 86e10a0247
commit 8718918ded

View File

@ -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