Accepting request 532690 from network:samba:STABLE

1

OBS-URL: https://build.opensuse.org/request/show/532690
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/talloc?expand=0&rev=29
This commit is contained in:
Dominique Leuenberger 2017-10-25 15:46:16 +00:00 committed by Git OBS Bridge
commit dbee67db64
9 changed files with 109 additions and 155 deletions

View File

@ -1,14 +0,0 @@
Index: talloc-2.1.9/lib/replace/wscript
===================================================================
--- talloc-2.1.9.orig/lib/replace/wscript
+++ talloc-2.1.9/lib/replace/wscript
@@ -706,8 +706,7 @@ def build(bld):
bld.SAMBA_SUBSYSTEM('replace-test',
source='''test/testsuite.c test/strptime.c
test/os2_delete.c test/getifaddrs.c''',
- deps='replace',
- cflags="-Wno-format-length")
+ deps='replace')
if bld.env.standalone_replace:
bld.SAMBA_BINARY('replace_testsuite',

11
talloc-2.1.10.tar.asc Normal file
View File

@ -0,0 +1,11 @@
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQEcBAABAgAGBQJZc9C2AAoJEEeTkWETCEAlH8YH/2/kD83vsMhKBg/s4WTgdRnM
CHEpxvo3O/3Qj2LxjZzSocfm2KtFraKCD7/fiPP3ZO7tSQwFS2P4HX44r+0ZWApy
+Vnah6rAf5wBlr+4oiPK6xTr4I6juPbSayEkTUMFVtVcF53/gsug7a72bmg0xDak
/gl6VHOptWpJu/VN4yPCd+Qx/7WyjvgRLXy9j5L9WLV12Fi++EGi8JzkK2aX+AMY
d1KXGExawm7Tgj4+Vw6b9XeW0H6g+x+a0WKWJC7hRUoaoVaq7b9UCNI3XXHDSBx7
7mY0nb/XyHcA/m93k+qbpbOjbPaNnm6mvKqIJJWPjNd8gCK/DT7/DuFJi2FQrO8=
=oUDL
-----END PGP SIGNATURE-----

3
talloc-2.1.10.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c985e94bebd6ec2f6af3d95dcc3fcb192a2ddb7781a021d70ee899e26221f619
size 441645

View File

@ -1,11 +0,0 @@
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQEcBAABAgAGBQJYtH6eAAoJEEeTkWETCEAlDWUH+QGzvnpnLxO2w/FIoXiqfgMf
NWtAuxp/Q99U8yzCcSxS1pPK2sB3k2aMvKp5Y6hadXAPnBt9+xknaoJXVfmaNznu
TJLdYhzRl9rhx2qc28AE1ArfetSLs/tTOlpU6upQXRMBTHD8Q0DxlC7PR2T8xqOa
vmzT6cDLaRyFhsnzPv5+7Ocrz9FTojSSzFmSimJKdIt7pkqfP79FKsH/U40m+Aea
ObNAG27OoKHI5023BTcTkCY0mrDhJq15MwLiLNTkj2OtBzO0TGTOFHFtaUplRrN+
1uP8TBH9ANmXpjCH9+djv4sUyBWjRTUF0DGzmgax66wbrFkN3fGts6oJ2gDxTro=
=DGTK
-----END PGP SIGNATURE-----

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f0aad4cb88a3322207c82136ddc07bed48a37c2c21f82962d6c5ccb422711062
size 440335

View File

@ -1,3 +1,24 @@
-------------------------------------------------------------------
Mon Oct 2 12:18:30 UTC 2017 - jengelh@inai.de
- Remove %if guards for blocks that do not affect the build result.
Fix RPM groups and summaries. Drop very old SUSE support.
Replace old RPM macros by new constructs.
-------------------------------------------------------------------
Wed Jul 26 08:58:20 UTC 2017 - scabrero@suse.com
- Update to version 2.1.10
+ build, documentation and python3 improvements
+ delete sle11-remove-unknown-compiler-options.patch, supported
options are checked for in upstream code
-------------------------------------------------------------------
Thu Mar 23 20:45:20 UTC 2017 - jmcdonough@suse.com
- sle11-remove-unknown-compiler-options.patch: build SLE11 and earlier
without -Wno-format-length.
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Mar 22 16:51:46 UTC 2017 - jmcdonough@suse.com Wed Mar 22 16:51:46 UTC 2017 - jmcdonough@suse.com
@ -38,6 +59,11 @@ Sun Feb 21 16:44:01 UTC 2016 - lmuelle@suse.com
- Avoid a file collision for non SUSE build targets; (bsc#966174). - Avoid a file collision for non SUSE build targets; (bsc#966174).
-------------------------------------------------------------------
Fri Feb 12 17:03:57 UTC 2016 - lmuelle@suse.com
- Provide python-talloc and python-talloc-devel; (bsc#966523).
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Nov 11 17:49:37 UTC 2015 - lmuelle@suse.com Wed Nov 11 17:49:37 UTC 2015 - lmuelle@suse.com

View File

@ -30,36 +30,24 @@ Name: talloc-man
BuildRequires: doxygen BuildRequires: doxygen
%else %else
Name: talloc Name: talloc
%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
BuildRequires: autoconf BuildRequires: autoconf
BuildRequires: docbook-xsl-stylesheets BuildRequires: docbook-xsl-stylesheets
BuildRequires: libxslt BuildRequires: libxslt
%if 0%{?suse_version} > 1020
BuildRequires: pkg-config BuildRequires: pkg-config
%else
BuildRequires: pkgconfig
%endif
BuildRequires: python-devel BuildRequires: python-devel
%if %{with_python3} %if %{with_python3}
BuildRequires: python3-devel BuildRequires: python3-devel
%endif %endif
%if 0%{?suse_version} > 1100
#!BuildIgnore: python #!BuildIgnore: python
%endif
%endif # build_man %endif # build_man
Url: http://talloc.samba.org/ Url: http://talloc.samba.org/
Version: 2.1.9 Version: 2.1.10
Release: 0 Release: 0
PreReq: /sbin/ldconfig
Summary: Samba talloc Library Summary: Samba talloc Library
License: LGPL-3.0+ License: LGPL-3.0+
Group: System/Libraries Group: Development/Libraries/C and C++
Source: https://download.samba.org/pub/talloc/talloc-%{version}.tar.gz Source: http://download.samba.org/pub/talloc/talloc-%{version}.tar.gz
Source1: https://download.samba.org/pub/talloc/talloc-%{version}.tar.asc Source1: http://download.samba.org/pub/talloc/talloc-%{version}.tar.asc
Source4: baselibs.conf Source4: baselibs.conf
Patch0: talloc-python3.5-fix-soabi_name.patch Patch0: talloc-python3.5-fix-soabi_name.patch
Source50: talloc.keyring Source50: talloc.keyring
@ -79,7 +67,7 @@ It is the core memory allocator used in Samba.
%define libtalloc_name libtalloc %define libtalloc_name libtalloc
%endif %endif
%package -n %{libtalloc_name} %package -n %{libtalloc_name}
Summary: Libraries and Header Files to Develop Programs with talloc2 Support Summary: Samba talloc library
Group: System/Libraries Group: System/Libraries
Provides: bundled(libreplace) Provides: bundled(libreplace)
@ -94,17 +82,13 @@ This package includes the talloc2 library.
%package -n libtalloc-devel %package -n libtalloc-devel
Summary: Libraries and Header Files to Develop Programs with talloc2 Support Summary: Libraries and Header Files to Develop Programs with talloc2 Support
Group: Development/Libraries/C and C++
# Man pages are built in a 2nd spec file in order to break a build cycle with doxygen->cmake->krb5->libtalloc # Man pages are built in a 2nd spec file in order to break a build cycle with doxygen->cmake->krb5->libtalloc
Group: Development/Libraries/C and C++
%if 0%{?suse_version} > 1030 %if 0%{?suse_version} > 1030
Recommends: %{name}-man Recommends: %{name}-man
%endif %endif
Requires: %{libtalloc_name} = %{version} Requires: %{libtalloc_name} = %{version}
%if 0%{?suse_version} > 1020
Requires: pkg-config Requires: pkg-config
%else
Requires: pkgconfig
%endif
%description -n libtalloc-devel %description -n libtalloc-devel
Talloc is a hierarchical, reference counted memory pool system with Talloc is a hierarchical, reference counted memory pool system with
@ -112,30 +96,25 @@ destructors.
It is the core memory allocator used in Samba. 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 python-talloc %package -n python-talloc
Summary: Python bindings for the Talloc library Summary: Python bindings for the Talloc library
Group: Development/Libraries/Python Group: Development/Libraries/Python
Requires: %{libtalloc_name} = %{version} Requires: %{libtalloc_name} = %{version}
PreReq: /sbin/ldconfig
Provides: pytalloc = %{version} Provides: pytalloc = %{version}
Obsoletes: pytalloc < %{version} Obsoletes: pytalloc < %{version}
%description -n python-talloc %description -n python-talloc
This package contains the python bindings for the Talloc library. This package contains the Python bindings for the Talloc library.
%package -n python-talloc-devel %package -n python-talloc-devel
Summary: Developer tools for the Talloc library Summary: Developer tools for the Talloc library
Group: Development/Libraries/Python Group: Development/Libraries/Python
Requires: python-talloc = %{version}
%if 0%{?suse_version} > 1020
Requires: pkg-config Requires: pkg-config
%else Requires: python-talloc = %{version}
Requires: pkgconfig
%endif
Provides: pytalloc-devel = %{version} Provides: pytalloc-devel = %{version}
Obsoletes: pytalloc-devel < %{version} Obsoletes: pytalloc-devel < %{version}
Conflicts: python3-talloc-devel Conflicts: python3-talloc-devel
@ -149,21 +128,16 @@ Libraries and Header Files to Develop Programs with python-talloc Support
Summary: Python3 bindings for the Talloc library Summary: Python3 bindings for the Talloc library
Group: Development/Libraries/Python Group: Development/Libraries/Python
Requires: %{libtalloc_name} = %{version} Requires: %{libtalloc_name} = %{version}
PreReq: /sbin/ldconfig
%description -n python3-talloc %description -n python3-talloc
This package contains the python3 bindings for the Talloc library. This package contains the Python3 bindings for the Talloc library.
%package -n python3-talloc-devel %package -n python3-talloc-devel
Summary: Developer tools for the Talloc library Summary: Developer tools for the Talloc library
Group: Development/Libraries/Python Group: Development/Libraries/Python
Requires: python3-talloc = %{version}
%if 0%{?suse_version} > 1020
Requires: pkg-config Requires: pkg-config
%else Requires: python3-talloc = %{version}
Requires: pkgconfig
%endif
Conflicts: python-talloc-devel Conflicts: python-talloc-devel
%description -n python3-talloc-devel %description -n python3-talloc-devel
@ -178,13 +152,7 @@ Libraries and Header Files to Develop Programs with python3-talloc Support
%build %build
%if ! %{build_man} %if ! %{build_man}
%if 0%{?suse_version} && 0%{?suse_version} < 911 export CFLAGS="%{optflags} -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -DIDMAP_RID_SUPPORT_TRUSTED_DOMAINS"
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="\ CONFIGURE_OPTIONS="\
--prefix=%{_prefix} \ --prefix=%{_prefix} \
--libdir=%{_libdir} \ --libdir=%{_libdir} \
@ -198,7 +166,7 @@ CONFIGURE_OPTIONS="\
%endif %endif
" "
./configure ${CONFIGURE_OPTIONS} ./configure ${CONFIGURE_OPTIONS}
%{__make} %{build_make_smp_mflags} \ make %{?_smp_mflags} \
all all
%else %else
@ -210,22 +178,26 @@ doxygen doxy.config
%if ! %{build_man} %if ! %{build_man}
%check %check
%if 0%{?suse_version} != 1110 || "%{_build_arch}" == x86_64 %if 0%{?suse_version} != 1110 || "%{_build_arch}" == x86_64
%if "%{qemu_user_space_build}" == "1"
echo "skipping test on qemu userspace build due to AT_RANDOM not changing"
%else # qemu_user_space_build == 1
mkdir lib/talloc mkdir lib/talloc
ln test_magic_differs* lib/talloc/ ln test_magic_differs* lib/talloc/
LD_LIBRARY_PATH=bin/shared %{__make} test LD_LIBRARY_PATH=bin/shared make test
%endif # qemu_user_space_build == 1
%endif # suse_version != 1110; fails for i586 and ppc64 %endif # suse_version != 1110; fails for i586 and ppc64
%endif # ! build_man %endif # ! build_man
%install %install
%if ! %{build_man} %if ! %{build_man}
DESTDIR=${RPM_BUILD_ROOT} make install %make_install
rm -r ${RPM_BUILD_ROOT}/%{_mandir} rm -r "%{buildroot}/%{_mandir}"
%else %else
# Install API documentation # Install API documentation
mkdir -p ${RPM_BUILD_ROOT}/%{_mandir} mkdir -p "%{buildroot}/%{_mandir}"
cp -a doc/man/* ${RPM_BUILD_ROOT}/%{_mandir} cp -a doc/man/* "%{buildroot}/%{_mandir}/"
%endif # ! build_man %endif # ! build_man
@ -238,11 +210,9 @@ cp -a doc/man/* ${RPM_BUILD_ROOT}/%{_mandir}
%postun -n python-talloc -p /sbin/ldconfig %postun -n python-talloc -p /sbin/ldconfig
%if %{with_python3}
%post -n python3-talloc -p /sbin/ldconfig %post -n python3-talloc -p /sbin/ldconfig
%postun -n python3-talloc -p /sbin/ldconfig %postun -n python3-talloc -p /sbin/ldconfig
%endif
%files -n %{libtalloc_name} %files -n %{libtalloc_name}
%defattr(-,root,root) %defattr(-,root,root)
@ -275,6 +245,7 @@ cp -a doc/man/* ${RPM_BUILD_ROOT}/%{_mandir}
%defattr(-,root,root) %defattr(-,root,root)
%{_includedir}/pytalloc.h %{_includedir}/pytalloc.h
%{_libdir}/pkgconfig/pytalloc-util.pc %{_libdir}/pkgconfig/pytalloc-util.pc
%{_libdir}/pkgconfig/pytalloc-util.%{py3_soflags}.pc
%{_libdir}/libpytalloc-util.%{py3_soflags}.so %{_libdir}/libpytalloc-util.%{py3_soflags}.so
%endif %endif
@ -282,10 +253,8 @@ cp -a doc/man/* ${RPM_BUILD_ROOT}/%{_mandir}
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1100
%{_mandir}/man3/libtalloc*.3.* %{_mandir}/man3/libtalloc*.3.*
%{_mandir}/man3/talloc*.3.* %{_mandir}/man3/talloc*.3.*
%endif
%endif # ! build_man %endif # ! build_man

View File

@ -1,3 +1,24 @@
-------------------------------------------------------------------
Mon Oct 9 06:55:51 UTC 2017 - jmcdonough@suse.com
- Reference library name directly instead of using variables to
pass obs source validator.
-------------------------------------------------------------------
Mon Oct 2 12:18:30 UTC 2017 - jengelh@inai.de
- Remove %if guards for blocks that do not affect the build result.
Fix RPM groups and summaries. Drop very old SUSE support.
Replace old RPM macros by new constructs.
-------------------------------------------------------------------
Wed Jul 26 08:58:20 UTC 2017 - scabrero@suse.com
- Update to version 2.1.10
+ build, documentation and python3 improvements
+ delete sle11-remove-unknown-compiler-options.patch, supported
options are checked for in upstream code
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Mar 23 20:45:20 UTC 2017 - jmcdonough@suse.com Thu Mar 23 20:45:20 UTC 2017 - jmcdonough@suse.com

View File

@ -30,39 +30,26 @@ Name: talloc-man
BuildRequires: doxygen BuildRequires: doxygen
%else %else
Name: talloc Name: talloc
%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
BuildRequires: autoconf BuildRequires: autoconf
BuildRequires: docbook-xsl-stylesheets BuildRequires: docbook-xsl-stylesheets
BuildRequires: libxslt BuildRequires: libxslt
%if 0%{?suse_version} > 1020
BuildRequires: pkg-config BuildRequires: pkg-config
%else
BuildRequires: pkgconfig
%endif
BuildRequires: python-devel BuildRequires: python-devel
%if %{with_python3} %if %{with_python3}
BuildRequires: python3-devel BuildRequires: python3-devel
%endif %endif
%if 0%{?suse_version} > 1100
#!BuildIgnore: python #!BuildIgnore: python
%endif
%endif # build_man %endif # build_man
Url: http://talloc.samba.org/ Url: http://talloc.samba.org/
Version: 2.1.9 Version: 2.1.10
Release: 0 Release: 0
PreReq: /sbin/ldconfig
Summary: Samba talloc Library Summary: Samba talloc Library
License: LGPL-3.0+ License: LGPL-3.0+
Group: System/Libraries Group: Development/Libraries/C and C++
Source: http://download.samba.org/pub/talloc/talloc-%{version}.tar.gz Source: http://download.samba.org/pub/talloc/talloc-%{version}.tar.gz
Source1: http://download.samba.org/pub/talloc/talloc-%{version}.tar.asc Source1: http://download.samba.org/pub/talloc/talloc-%{version}.tar.asc
Source4: baselibs.conf Source4: baselibs.conf
Patch0: talloc-python3.5-fix-soabi_name.patch Patch0: talloc-python3.5-fix-soabi_name.patch
Patch1: sle11-remove-unknown-compiler-options.patch
Source50: talloc.keyring Source50: talloc.keyring
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -74,17 +61,12 @@ It is the core memory allocator used in Samba.
%if ! %{build_man} %if ! %{build_man}
%if 0%{?suse_version} > 0 %package -n libtalloc2
%define libtalloc_name libtalloc2 Summary: Samba talloc library
%else
%define libtalloc_name libtalloc
%endif
%package -n %{libtalloc_name}
Summary: Libraries and Header Files to Develop Programs with talloc2 Support
Group: System/Libraries Group: System/Libraries
Provides: bundled(libreplace) Provides: bundled(libreplace)
%description -n %{libtalloc_name} %description -n libtalloc2
Talloc is a hierarchical, reference counted memory pool system with Talloc is a hierarchical, reference counted memory pool system with
destructors. destructors.
@ -95,17 +77,13 @@ This package includes the talloc2 library.
%package -n libtalloc-devel %package -n libtalloc-devel
Summary: Libraries and Header Files to Develop Programs with talloc2 Support Summary: Libraries and Header Files to Develop Programs with talloc2 Support
Group: Development/Libraries/C and C++
# Man pages are built in a 2nd spec file in order to break a build cycle with doxygen->cmake->krb5->libtalloc # Man pages are built in a 2nd spec file in order to break a build cycle with doxygen->cmake->krb5->libtalloc
Group: Development/Libraries/C and C++
%if 0%{?suse_version} > 1030 %if 0%{?suse_version} > 1030
Recommends: %{name}-man Recommends: %{name}-man
%endif %endif
Requires: %{libtalloc_name} = %{version} Requires: libtalloc2 = %{version}
%if 0%{?suse_version} > 1020
Requires: pkg-config Requires: pkg-config
%else
Requires: pkgconfig
%endif
%description -n libtalloc-devel %description -n libtalloc-devel
Talloc is a hierarchical, reference counted memory pool system with Talloc is a hierarchical, reference counted memory pool system with
@ -113,30 +91,25 @@ destructors.
It is the core memory allocator used in Samba. 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 python-talloc %package -n python-talloc
Summary: Python bindings for the Talloc library Summary: Python bindings for the Talloc library
Group: Development/Libraries/Python Group: Development/Libraries/Python
Requires: %{libtalloc_name} = %{version} Requires: libtalloc2 = %{version}
PreReq: /sbin/ldconfig
Provides: pytalloc = %{version} Provides: pytalloc = %{version}
Obsoletes: pytalloc < %{version} Obsoletes: pytalloc < %{version}
%description -n python-talloc %description -n python-talloc
This package contains the python bindings for the Talloc library. This package contains the Python bindings for the Talloc library.
%package -n python-talloc-devel %package -n python-talloc-devel
Summary: Developer tools for the Talloc library Summary: Developer tools for the Talloc library
Group: Development/Libraries/Python Group: Development/Libraries/Python
Requires: python-talloc = %{version}
%if 0%{?suse_version} > 1020
Requires: pkg-config Requires: pkg-config
%else Requires: python-talloc = %{version}
Requires: pkgconfig
%endif
Provides: pytalloc-devel = %{version} Provides: pytalloc-devel = %{version}
Obsoletes: pytalloc-devel < %{version} Obsoletes: pytalloc-devel < %{version}
Conflicts: python3-talloc-devel Conflicts: python3-talloc-devel
@ -144,51 +117,33 @@ Conflicts: python3-talloc-devel
%description -n python-talloc-devel %description -n python-talloc-devel
Libraries and Header Files to Develop Programs with python-talloc Support Libraries and Header Files to Develop Programs with python-talloc Support
%if %{with_python3}
%package -n python3-talloc %package -n python3-talloc
Summary: Python3 bindings for the Talloc library Summary: Python3 bindings for the Talloc library
Group: Development/Libraries/Python Group: Development/Libraries/Python
Requires: %{libtalloc_name} = %{version} Requires: libtalloc2 = %{version}
PreReq: /sbin/ldconfig
%description -n python3-talloc %description -n python3-talloc
This package contains the python3 bindings for the Talloc library. This package contains the Python3 bindings for the Talloc library.
%package -n python3-talloc-devel %package -n python3-talloc-devel
Summary: Developer tools for the Talloc library Summary: Developer tools for the Talloc library
Group: Development/Libraries/Python Group: Development/Libraries/Python
Requires: python3-talloc = %{version}
%if 0%{?suse_version} > 1020
Requires: pkg-config Requires: pkg-config
%else Requires: python3-talloc = %{version}
Requires: pkgconfig
%endif
Conflicts: python-talloc-devel Conflicts: python-talloc-devel
%description -n python3-talloc-devel %description -n python3-talloc-devel
Libraries and Header Files to Develop Programs with python3-talloc Support Libraries and Header Files to Develop Programs with python3-talloc Support
%endif
%endif # ! build_man %endif # ! build_man
%prep %prep
%setup -n talloc-%{version} -q %setup -n talloc-%{version} -q
%patch0 -p1 %patch0 -p1
%if 0%{?suse_version} < 1200
%patch1 -p1
%endif
%build %build
%if ! %{build_man} %if ! %{build_man}
%if 0%{?suse_version} && 0%{?suse_version} < 911 export CFLAGS="%{optflags} -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -DIDMAP_RID_SUPPORT_TRUSTED_DOMAINS"
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="\ CONFIGURE_OPTIONS="\
--prefix=%{_prefix} \ --prefix=%{_prefix} \
--libdir=%{_libdir} \ --libdir=%{_libdir} \
@ -202,7 +157,7 @@ CONFIGURE_OPTIONS="\
%endif %endif
" "
./configure ${CONFIGURE_OPTIONS} ./configure ${CONFIGURE_OPTIONS}
%{__make} %{build_make_smp_mflags} \ make %{?_smp_mflags} \
all all
%else %else
@ -219,40 +174,38 @@ echo "skipping test on qemu userspace build due to AT_RANDOM not changing"
%else # qemu_user_space_build == 1 %else # qemu_user_space_build == 1
mkdir lib/talloc mkdir lib/talloc
ln test_magic_differs* lib/talloc/ ln test_magic_differs* lib/talloc/
LD_LIBRARY_PATH=bin/shared %{__make} test LD_LIBRARY_PATH=bin/shared make test
%endif # qemu_user_space_build == 1 %endif # qemu_user_space_build == 1
%endif # suse_version != 1110; fails for i586 and ppc64 %endif # suse_version != 1110; fails for i586 and ppc64
%endif # ! build_man %endif # ! build_man
%install %install
%if ! %{build_man} %if ! %{build_man}
DESTDIR=${RPM_BUILD_ROOT} make install %make_install
rm -r ${RPM_BUILD_ROOT}/%{_mandir} rm -r "%{buildroot}/%{_mandir}"
%else %else
# Install API documentation # Install API documentation
mkdir -p ${RPM_BUILD_ROOT}/%{_mandir} mkdir -p "%{buildroot}/%{_mandir}"
cp -a doc/man/* ${RPM_BUILD_ROOT}/%{_mandir} cp -a doc/man/* "%{buildroot}/%{_mandir}/"
%endif # ! build_man %endif # ! build_man
%if ! %{build_man} %if ! %{build_man}
%post -n %{libtalloc_name} -p /sbin/ldconfig %post -n libtalloc2 -p /sbin/ldconfig
%postun -n %{libtalloc_name} -p /sbin/ldconfig %postun -n libtalloc2 -p /sbin/ldconfig
%post -n python-talloc -p /sbin/ldconfig %post -n python-talloc -p /sbin/ldconfig
%postun -n python-talloc -p /sbin/ldconfig %postun -n python-talloc -p /sbin/ldconfig
%if %{with_python3}
%post -n python3-talloc -p /sbin/ldconfig %post -n python3-talloc -p /sbin/ldconfig
%postun -n python3-talloc -p /sbin/ldconfig %postun -n python3-talloc -p /sbin/ldconfig
%endif
%files -n %{libtalloc_name} %files -n libtalloc2
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/libtalloc.so.* %{_libdir}/libtalloc.so.*
@ -283,6 +236,7 @@ cp -a doc/man/* ${RPM_BUILD_ROOT}/%{_mandir}
%defattr(-,root,root) %defattr(-,root,root)
%{_includedir}/pytalloc.h %{_includedir}/pytalloc.h
%{_libdir}/pkgconfig/pytalloc-util.pc %{_libdir}/pkgconfig/pytalloc-util.pc
%{_libdir}/pkgconfig/pytalloc-util.%{py3_soflags}.pc
%{_libdir}/libpytalloc-util.%{py3_soflags}.so %{_libdir}/libpytalloc-util.%{py3_soflags}.so
%endif %endif
@ -290,10 +244,8 @@ cp -a doc/man/* ${RPM_BUILD_ROOT}/%{_mandir}
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1100
%{_mandir}/man3/libtalloc*.3.* %{_mandir}/man3/libtalloc*.3.*
%{_mandir}/man3/talloc*.3.* %{_mandir}/man3/talloc*.3.*
%endif
%endif # ! build_man %endif # ! build_man