137 lines
3.8 KiB
RPMSpec
137 lines
3.8 KiB
RPMSpec
%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
|
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
|
%endif
|
|
%{!?python_version: %global python_version %(%{__python} -c "from distutils.sysconfig import get_python_version; print(get_python_version())")}
|
|
|
|
Name: libtalloc
|
|
Version: 2.0.5
|
|
Release: 6%{?dist}
|
|
Group: System Environment/Daemons
|
|
Summary: The talloc library
|
|
License: LGPLv3+
|
|
URL: http://talloc.samba.org/
|
|
Source: http://samba.org/ftp/talloc/talloc-%{version}.tar.gz
|
|
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
|
|
BuildRequires: autoconf
|
|
BuildRequires: libxslt
|
|
BuildRequires: docbook-style-xsl
|
|
BuildRequires: python-devel
|
|
|
|
# Patches
|
|
Patch0001: 0001-Install-python-bindings-in-the-arch-specific-locatio.patch
|
|
|
|
%description
|
|
A library that implements a hierarchical allocator with destructors.
|
|
|
|
%package devel
|
|
Group: Development/Libraries
|
|
Summary: Developer tools for the Talloc library
|
|
Requires: libtalloc = %{version}-%{release}
|
|
|
|
%description devel
|
|
Header files needed to develop programs that link against the Talloc library.
|
|
|
|
%package -n pytalloc
|
|
Group: Development/Libraries
|
|
Summary: Developer tools for the Talloc library
|
|
Requires: libtalloc = %{version}-%{release}
|
|
|
|
%description -n pytalloc
|
|
Pytalloc libraries for creating python bindings using talloc
|
|
|
|
%package -n pytalloc-devel
|
|
Group: Development/Libraries
|
|
Summary: Developer tools for the Talloc library
|
|
Requires: pytalloc = %{version}-%{release}
|
|
|
|
%description -n pytalloc-devel
|
|
Development libraries for pytalloc
|
|
|
|
|
|
%prep
|
|
%setup -q -n talloc-%{version}
|
|
%patch0001 -p1
|
|
|
|
%build
|
|
./autogen.sh
|
|
%configure --disable-rpath --bundled-libraries=NONE
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/libtalloc.a
|
|
rm -f $RPM_BUILD_ROOT/usr/share/swig/*/talloc.i
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/libtalloc.so.*
|
|
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%{_includedir}/talloc.h
|
|
%{_libdir}/libtalloc.so
|
|
%{_libdir}/pkgconfig/talloc.pc
|
|
%{_mandir}/man3/talloc.3.gz
|
|
|
|
%files -n pytalloc
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/libpytalloc-util.so.*
|
|
%{python_sitearch}/talloc.so
|
|
|
|
%files -n pytalloc-devel
|
|
%defattr(-,root,root,-)
|
|
%{_includedir}/pytalloc.h
|
|
%{_libdir}/pkgconfig/pytalloc-util.pc
|
|
%{_libdir}/libpytalloc-util.so
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%post -n pytalloc -p /sbin/ldconfig
|
|
%postun -n pytalloc -p /sbin/ldconfig
|
|
|
|
%changelog
|
|
* Wed Jan 12 2011 Stephen Gallagher <sgallagh@redhat.com> - 2.0.5-6
|
|
- Install python bindings in the correct location
|
|
|
|
* Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 2.0.5-5
|
|
- Run ldconfig on pytalloc
|
|
|
|
* Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 2.0.5-4
|
|
- Fix build failure on 32-bit platforms
|
|
|
|
* Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 2.0.5-3
|
|
- New version from upstream
|
|
- Add support for pytalloc
|
|
- Convert to new WAF build-system
|
|
|
|
* Tue Dec 15 2009 Simo Sorce <ssorce@redhat.com> - 2.0.1-1
|
|
- New version from upstream
|
|
- Also stop building the compat lib, it is not necessary anymore
|
|
|
|
* Tue Sep 8 2009 Simo Sorce <ssorce@redhat.com> - 2.0.0-0
|
|
- New version from upstream.
|
|
- Build also sover 1 compat library to ease packages migration
|
|
|
|
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
* Wed Jun 17 2009 Simo Sorce <ssorce@redhat.com> - 1.3.1-1
|
|
- Original tarballs had a screw-up, rebuild with new fixed tarballs from
|
|
upstream.
|
|
|
|
* Tue Jun 16 2009 Simo Sorce <ssorce@redhat.com> - 1.3.1-0
|
|
- New Upstream release.
|
|
|
|
* Wed May 6 2009 Simo Sorce <ssorce@redhat.com> - 1.3.0-0
|
|
- First public independent release from upstream
|