2012-05-31 13:39:39 +02:00
|
|
|
#
|
2012-06-28 18:46:14 +02:00
|
|
|
# spec file for package talloc
|
2012-05-31 13:39:39 +02:00
|
|
|
#
|
2015-04-16 13:56:22 +02:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-05-31 13:39:39 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
|
|
|
2012-06-02 17:15:39 +02:00
|
|
|
Name: talloc
|
2012-05-31 13:39:39 +02:00
|
|
|
%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1140
|
|
|
|
%define build_make_smp_mflags %{?_smp_mflags}
|
|
|
|
%else
|
|
|
|
%define build_make_smp_mflags %{?jobs:-j%jobs}
|
|
|
|
%endif
|
2012-06-02 17:17:42 +02:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: docbook-xsl-stylesheets
|
|
|
|
BuildRequires: libxslt
|
2014-05-23 22:04:43 +02:00
|
|
|
%if 0%{?suse_version} > 1020
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
%else
|
|
|
|
BuildRequires: pkgconfig
|
2014-05-23 22:05:50 +02:00
|
|
|
%endif
|
2012-06-02 17:17:42 +02:00
|
|
|
BuildRequires: python-devel
|
2013-07-23 21:00:42 +02:00
|
|
|
%if 0%{?suse_version} > 1100
|
2013-07-10 14:24:02 +02:00
|
|
|
#!BuildIgnore: python
|
2013-07-22 13:35:51 +02:00
|
|
|
%endif
|
2012-05-31 13:39:39 +02:00
|
|
|
Url: http://talloc.samba.org/
|
2015-04-16 13:56:22 +02:00
|
|
|
Version: 2.1.2
|
2012-05-31 13:39:39 +02:00
|
|
|
Release: 0
|
|
|
|
PreReq: /sbin/ldconfig
|
|
|
|
Summary: Samba talloc Library
|
2012-06-28 18:46:14 +02:00
|
|
|
License: LGPL-3.0+
|
|
|
|
Group: System/Libraries
|
2014-11-06 14:32:57 +01:00
|
|
|
Source: http://download.samba.org/pub/talloc/talloc-%{version}.tar.gz
|
2013-12-06 14:05:14 +01:00
|
|
|
Source1: http://download.samba.org/pub/talloc/talloc-%{version}.tar.asc
|
2012-05-31 13:39:39 +02:00
|
|
|
Source4: baselibs.conf
|
2014-04-27 22:36:48 +02:00
|
|
|
Source50: %name.keyring
|
2012-05-31 13:39:39 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
2012-06-02 17:15:39 +02:00
|
|
|
Talloc is a hierarchical, reference counted memory pool system with
|
|
|
|
destructors.
|
|
|
|
|
|
|
|
It is the core memory allocator used in Samba.
|
|
|
|
|
|
|
|
|
2012-06-03 23:23:29 +02:00
|
|
|
%define libtalloc_name libtalloc2
|
|
|
|
%package -n %{libtalloc_name}
|
2012-06-02 17:15:39 +02:00
|
|
|
Summary: Libraries and Header Files to Develop Programs with talloc2 Support
|
2012-06-28 18:46:14 +02:00
|
|
|
Group: System/Libraries
|
2012-06-02 17:15:39 +02:00
|
|
|
Provides: bundled(libreplace)
|
|
|
|
|
2012-06-03 23:23:29 +02:00
|
|
|
%description -n %{libtalloc_name}
|
2012-06-02 17:15:39 +02:00
|
|
|
Talloc is a hierarchical, reference counted memory pool system with
|
|
|
|
destructors.
|
|
|
|
|
|
|
|
It is the core memory allocator used in Samba.
|
|
|
|
|
2012-05-31 13:39:39 +02:00
|
|
|
This package includes the talloc2 library.
|
|
|
|
|
|
|
|
|
2012-05-31 13:43:03 +02:00
|
|
|
%package -n libtalloc-devel
|
2012-05-31 13:39:39 +02:00
|
|
|
Summary: Libraries and Header Files to Develop Programs with talloc2 Support
|
|
|
|
Group: Development/Libraries/C and C++
|
2012-06-03 23:23:29 +02:00
|
|
|
Requires: %{libtalloc_name} = %{version}
|
2014-05-23 21:16:23 +02:00
|
|
|
%if 0%{?suse_version} > 1020
|
|
|
|
Requires: pkg-config
|
|
|
|
%else
|
|
|
|
Requires: pkgconfig
|
|
|
|
%endif
|
2012-05-31 13:39:39 +02:00
|
|
|
|
2012-05-31 13:43:03 +02:00
|
|
|
%description -n libtalloc-devel
|
2012-06-02 17:15:39 +02:00
|
|
|
Talloc is a hierarchical, reference counted memory pool system with
|
|
|
|
destructors.
|
|
|
|
|
|
|
|
It is the core memory allocator used in Samba.
|
|
|
|
|
2012-05-31 13:39:39 +02:00
|
|
|
Libraries and Header Files to Develop Programs with talloc2 Support
|
|
|
|
|
|
|
|
|
|
|
|
%package -n pytalloc
|
|
|
|
Summary: Python bindings for the Talloc library
|
2012-06-02 17:15:39 +02:00
|
|
|
Group: Development/Libraries/Python
|
2012-06-03 23:23:29 +02:00
|
|
|
Requires: %{libtalloc_name} = %{version}
|
2013-08-29 14:09:16 +02:00
|
|
|
PreReq: /sbin/ldconfig
|
2012-05-31 13:39:39 +02:00
|
|
|
|
|
|
|
%description -n pytalloc
|
2012-06-02 17:15:39 +02:00
|
|
|
This package contains the python bindings for the Talloc library.
|
2012-05-31 13:39:39 +02:00
|
|
|
|
|
|
|
|
|
|
|
%package -n pytalloc-devel
|
|
|
|
Summary: Developer tools for the Talloc library
|
2012-06-02 17:15:39 +02:00
|
|
|
Group: Development/Libraries/Python
|
2012-05-31 13:39:39 +02:00
|
|
|
Requires: pytalloc = %{version}
|
2014-05-23 21:16:23 +02:00
|
|
|
%if 0%{?suse_version} > 1020
|
|
|
|
Requires: pkg-config
|
|
|
|
%else
|
|
|
|
Requires: pkgconfig
|
|
|
|
%endif
|
2012-05-31 13:39:39 +02:00
|
|
|
|
|
|
|
%description -n pytalloc-devel
|
|
|
|
Libraries and Header Files to Develop Programs with pytalloc Support
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -n talloc-%{version} -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} < 911
|
|
|
|
OPTIMIZATION="-O"
|
|
|
|
%else
|
|
|
|
# use the default optimization
|
|
|
|
unset OPTIMIZATION
|
|
|
|
%endif
|
|
|
|
export CFLAGS="${RPM_OPT_FLAGS} -D_GNU_SOURCE ${OPTIMIZATION} -D_LARGEFILE64_SOURCE -DIDMAP_RID_SUPPORT_TRUSTED_DOMAINS"
|
|
|
|
CONFIGURE_OPTIONS="\
|
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--libdir=%{_libdir} \
|
2012-06-28 18:46:14 +02:00
|
|
|
--disable-rpath \
|
2012-05-31 13:39:39 +02:00
|
|
|
--bundled-libraries=NONE \
|
|
|
|
--builtin-libraries=replace \
|
|
|
|
"
|
|
|
|
./configure ${CONFIGURE_OPTIONS}
|
|
|
|
%{__make} %{build_make_smp_mflags} \
|
|
|
|
all
|
|
|
|
|
|
|
|
%check
|
2012-06-28 18:46:14 +02:00
|
|
|
# make test doesn't work with --disable-rpath
|
|
|
|
#%{__make} test
|
2012-05-31 13:39:39 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
DESTDIR=${RPM_BUILD_ROOT} make install
|
|
|
|
|
2012-06-03 23:23:29 +02:00
|
|
|
%post -n %{libtalloc_name} -p /sbin/ldconfig
|
2012-05-31 13:39:39 +02:00
|
|
|
|
2012-06-03 23:23:29 +02:00
|
|
|
%postun -n %{libtalloc_name} -p /sbin/ldconfig
|
2012-05-31 13:39:39 +02:00
|
|
|
|
|
|
|
%post -n pytalloc -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n pytalloc -p /sbin/ldconfig
|
|
|
|
|
2012-06-03 23:23:29 +02:00
|
|
|
%files -n %{libtalloc_name}
|
2012-05-31 13:39:39 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libtalloc.so.*
|
|
|
|
|
2012-05-31 13:43:03 +02:00
|
|
|
%files -n libtalloc-devel
|
2012-05-31 13:39:39 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/talloc.h
|
|
|
|
%{_libdir}/libtalloc.so
|
|
|
|
%{_libdir}/pkgconfig/talloc.pc
|
2013-07-23 21:00:42 +02:00
|
|
|
%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1100
|
2012-05-31 13:39:39 +02:00
|
|
|
%{_mandir}/man3/talloc.3*
|
2013-07-22 13:35:51 +02:00
|
|
|
%endif
|
2012-05-31 13:39:39 +02:00
|
|
|
|
|
|
|
%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
|
|
|
|
|
|
|
|
%changelog
|