|
@@ -1,7 +1,7 @@
|
|
|
%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
|
|
|
|
|
|
Name: libtalloc
|
|
|
-Version: 2.1.9
|
|
|
+Version: 2.1.11
|
|
|
Release: 1%{?_dist_release}
|
|
|
Group: System Environment/Libraries
|
|
|
Summary: The talloc library
|
|
@@ -13,15 +13,16 @@ BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
|
BuildRequires: autoconf
|
|
|
BuildRequires: libxslt
|
|
|
BuildRequires: docbook-style-xsl
|
|
|
-BuildRequires: python-devel
|
|
|
+BuildRequires: doxygen
|
|
|
+BuildRequires: python-devel python-rpm-macros
|
|
|
+BuildRequires: python3-devel python3-rpm-macros
|
|
|
+
|
|
|
+Provides: bundled(libreplace)
|
|
|
|
|
|
Vendor: Project Vine
|
|
|
Distribution: Vine Linux
|
|
|
Packager: tomop
|
|
|
|
|
|
-# Patches
|
|
|
-Patch0001: 0001-Install-python-bindings-in-the-arch-specific-location.patch
|
|
|
-
|
|
|
%description
|
|
|
A library that implements a hierarchical allocator with destructors.
|
|
|
|
|
@@ -33,23 +34,43 @@ Requires: libtalloc = %{version}-%{release}
|
|
|
%description devel
|
|
|
Header files needed to develop programs that link against the Talloc library.
|
|
|
|
|
|
-%package -n pytalloc
|
|
|
+%package -n python-talloc
|
|
|
Group: Development/Libraries
|
|
|
-Summary: Developer tools for the Talloc library
|
|
|
+Summary: Python bindings for the Talloc library
|
|
|
Requires: libtalloc = %{version}-%{release}
|
|
|
+Obsoletes: pytalloc < 2.1.11
|
|
|
+Provides: pytalloc = %{version}
|
|
|
|
|
|
-%description -n pytalloc
|
|
|
-Pytalloc libraries for creating python bindings using talloc
|
|
|
+%description -n python-talloc
|
|
|
+Python libraries for creating bindings using talloc
|
|
|
|
|
|
-%package -n pytalloc-devel
|
|
|
+%package -n python-talloc-devel
|
|
|
Group: Development/Libraries
|
|
|
-Summary: Developer tools for the Talloc library
|
|
|
-Requires: pytalloc = %{version}-%{release}
|
|
|
+Summary: Development libraries for python-talloc
|
|
|
+Requires: python-talloc = %{version}-%{release}
|
|
|
+Obsoletes: pytalloc-devel < 2.1.11
|
|
|
+Provides: pytalloc-devel = %{version}
|
|
|
+
|
|
|
+%description -n python-talloc-devel
|
|
|
+Development libraries for python-talloc
|
|
|
+
|
|
|
+%package -n python3-talloc
|
|
|
+Group: Development/Libraries
|
|
|
+Summary: Python3 bindings for the Talloc library
|
|
|
+Requires: libtalloc = %{version}-%{release}
|
|
|
+
|
|
|
+%description -n python3-talloc
|
|
|
+Python3 libraries for creating bindings using talloc
|
|
|
|
|
|
-%description -n pytalloc-devel
|
|
|
-Development libraries for pytalloc
|
|
|
+%package -n python3-talloc-devel
|
|
|
+Group: Development/Libraries
|
|
|
+Summary: Development libraries for python3-talloc
|
|
|
+Requires: python3-talloc = %{version}-%{release}
|
|
|
+
|
|
|
+%description -n python3-talloc-devel
|
|
|
+Development libraries for python3-talloc
|
|
|
|
|
|
-%if %build_compat32
|
|
|
+%if %{build_compat32}
|
|
|
|
|
|
%package -n compat32-libtalloc
|
|
|
Summary: The talloc library
|
|
@@ -62,11 +83,16 @@ A library that implements a hierarchical allocator with destructors.
|
|
|
|
|
|
%prep
|
|
|
%setup -q -n talloc-%{version}
|
|
|
-%patch0001 -p1
|
|
|
|
|
|
%build
|
|
|
#./autogen.sh
|
|
|
-%configure --disable-rpath --bundled-libraries=NONE
|
|
|
+%configure --disable-rpath \
|
|
|
+ --disable-rpath-install \
|
|
|
+ --bundled-libraries=NONE \
|
|
|
+ --builtin-libraries=replace \
|
|
|
+ --disable-silent-rules \
|
|
|
+ --extra-python=%{__python3}
|
|
|
+
|
|
|
make %{?_smp_mflags} V=1
|
|
|
|
|
|
%install
|
|
@@ -95,18 +121,29 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
%{_libdir}/pkgconfig/talloc.pc
|
|
|
%{_mandir}/man3/talloc.3.gz
|
|
|
|
|
|
-%files -n pytalloc
|
|
|
+%files -n python-talloc
|
|
|
%defattr(-,root,root,-)
|
|
|
%{_libdir}/libpytalloc-util.so.*
|
|
|
%{python_sitearch}/talloc.so
|
|
|
|
|
|
-%files -n pytalloc-devel
|
|
|
+%files -n python-talloc-devel
|
|
|
%defattr(-,root,root,-)
|
|
|
%{_includedir}/pytalloc.h
|
|
|
%{_libdir}/pkgconfig/pytalloc-util.pc
|
|
|
%{_libdir}/libpytalloc-util.so
|
|
|
|
|
|
-%if %build_compat32
|
|
|
+%files -n python3-talloc
|
|
|
+%defattr(-,root,root,-)
|
|
|
+%{_libdir}/libpytalloc-util.cpython*.so.*
|
|
|
+%{python3_sitearch}/talloc.cpython*.so
|
|
|
+
|
|
|
+%files -n python3-talloc-devel
|
|
|
+%defattr(-,root,root,-)
|
|
|
+%{_includedir}/pytalloc.h
|
|
|
+%{_libdir}/pkgconfig/pytalloc-util.cpython-*.pc
|
|
|
+%{_libdir}/libpytalloc-util.cpython*.so
|
|
|
+
|
|
|
+%if %{build_compat32}
|
|
|
|
|
|
%files -n compat32-libtalloc
|
|
|
%attr(755,root,root) %{_libdir}/libtalloc.so.*
|
|
@@ -117,10 +154,13 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
-%post -n pytalloc -p /sbin/ldconfig
|
|
|
-%postun -n pytalloc -p /sbin/ldconfig
|
|
|
+%post -n python-talloc -p /sbin/ldconfig
|
|
|
+%postun -n python-talloc -p /sbin/ldconfig
|
|
|
+
|
|
|
+%post -n python3-talloc -p /sbin/ldconfig
|
|
|
+%postun -n python3-talloc -p /sbin/ldconfig
|
|
|
|
|
|
-%if %build_compat32
|
|
|
+%if %{build_compat32}
|
|
|
|
|
|
%post -n compat32-libtalloc -p /sbin/ldconfig
|
|
|
%postun -n compat32-libtalloc -p /sbin/ldconfig
|
|
@@ -128,8 +168,10 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
%endif
|
|
|
|
|
|
%changelog
|
|
|
-* Thu Mar 16 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.9-1
|
|
|
+* Thu Mar 16 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.11-1
|
|
|
- new upstream release.
|
|
|
+- enabled python3 modules.
|
|
|
+- renamed python packages.
|
|
|
|
|
|
* Sun Dec 11 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.8-1
|
|
|
- new upstream release.
|