- Rename package to talloc and add an independent libtalloc2 subpackage.

- Enhance and polish the package descriptions and summaries.

OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/talloc?expand=0&rev=5
This commit is contained in:
Lars Müller 2012-06-02 15:15:39 +00:00 committed by Git OBS Bridge
parent e26d72e345
commit 0fc3165607
2 changed files with 47 additions and 19 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Jun 2 15:05:32 UTC 2012 - lmuelle@suse.com
- Rename package to talloc and add an independent libtalloc2 subpackage.
- Enhance and polish the package descriptions and summaries.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu May 31 12:50:32 UTC 2012 - lmuelle@suse.com Thu May 31 12:50:32 UTC 2012 - lmuelle@suse.com

View File

@ -1,5 +1,5 @@
# #
# spec file for package libtalloc2 (Version 2.0.7) # spec file for package talloc (Version 2.0.7)
# #
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
@ -19,18 +19,8 @@
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
Name: libtalloc2
BuildRequires: autoconf Name: talloc
BuildRequires: docbook-xsl-stylesheets
BuildRequires: doxygen
BuildRequires: libxslt
%if 0%{?suse_version} > 1020
BuildRequires: pkg-config
%else
BuildRequires: pkgconfig
%endif
BuildRequires: python-devel
Provides: bundled(libreplace)
%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1140 %if 0%{?suse_version} == 0 || 0%{?suse_version} > 1140
%define build_make_smp_mflags %{?_smp_mflags} %define build_make_smp_mflags %{?_smp_mflags}
%else %else
@ -48,6 +38,33 @@ Source4: baselibs.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
Talloc is a hierarchical, reference counted memory pool system with
destructors.
It is the core memory allocator used in Samba.
%package -n libtalloc2
License: LGPL-3.0+
Summary: Libraries and Header Files to Develop Programs with talloc2 Support
BuildRequires: autoconf
BuildRequires: docbook-xsl-stylesheets
BuildRequires: doxygen
BuildRequires: libxslt
%if 0%{?suse_version} > 1020
BuildRequires: pkg-config
%else
BuildRequires: pkgconfig
%endif
BuildRequires: python-devel
Provides: bundled(libreplace)
%description -n libtalloc2
Talloc is a hierarchical, reference counted memory pool system with
destructors.
It is the core memory allocator used in Samba.
This package includes the talloc2 library. This package includes the talloc2 library.
@ -58,23 +75,28 @@ Group: Development/Libraries/C and C++
Requires: libtalloc2 = %{version} Requires: libtalloc2 = %{version}
%description -n libtalloc-devel %description -n libtalloc-devel
Talloc is a hierarchical, reference counted memory pool system with
destructors.
It is the core memory allocator used in Samba.
Libraries and Header Files to Develop Programs with talloc2 Support Libraries and Header Files to Develop Programs with talloc2 Support
%package -n pytalloc %package -n pytalloc
License: LGPL-3.0+ License: LGPL-3.0+
Summary: Python bindings for the Talloc library Summary: Python bindings for the Talloc library
Group: Development/Libraries Group: Development/Libraries/Python
Requires: libtalloc2 = %{version} Requires: libtalloc2 = %{version}
%description -n pytalloc %description -n pytalloc
Python bindings for libtalloc This package contains the python bindings for the Talloc library.
%package -n pytalloc-devel %package -n pytalloc-devel
License: LGPL-3.0+ License: LGPL-3.0+
Summary: Developer tools for the Talloc library Summary: Developer tools for the Talloc library
Group: Development/Libraries Group: Development/Libraries/Python
Requires: pytalloc = %{version} Requires: pytalloc = %{version}
%description -n pytalloc-devel %description -n pytalloc-devel
@ -109,15 +131,15 @@ doxygen doxy.config
%install %install
DESTDIR=${RPM_BUILD_ROOT} make install DESTDIR=${RPM_BUILD_ROOT} make install
%post -p /sbin/ldconfig %post -n libtalloc2 -p /sbin/ldconfig
%postun -p /sbin/ldconfig %postun -n libtalloc2 -p /sbin/ldconfig
%post -n pytalloc -p /sbin/ldconfig %post -n pytalloc -p /sbin/ldconfig
%postun -n pytalloc -p /sbin/ldconfig %postun -n pytalloc -p /sbin/ldconfig
%files %files -n libtalloc2
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/libtalloc.so.* %{_libdir}/libtalloc.so.*