commit 99cf793730081d06d830225ee47415106b65c71ddbbf456bc90a8ec0bc5d4ea3 Author: Lars Müller Date: Thu May 31 11:39:39 2012 +0000 osc copypac from project:network:samba:STABLE package:libtalloc2 revision:8 OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/talloc?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/baselibs.conf b/baselibs.conf new file mode 100644 index 0000000..3ce5f6e --- /dev/null +++ b/baselibs.conf @@ -0,0 +1 @@ +libtalloc2 diff --git a/libtalloc2.changes b/libtalloc2.changes new file mode 100644 index 0000000..68a459e --- /dev/null +++ b/libtalloc2.changes @@ -0,0 +1,26 @@ +------------------------------------------------------------------- +Wed May 30 17:55:55 UTC 2012 - lmuelle@suse.com + +- Define python_sitearch if undefined. + +------------------------------------------------------------------- +Wed May 30 15:33:29 UTC 2012 - lmuelle@suse.com + +- Remove superfluous AutoReqProv on line. + +------------------------------------------------------------------- +Wed May 16 13:02:31 UTC 2012 - lmuelle@suse.com + +- Require libtalloc2 from libtalloc2-devel. + +------------------------------------------------------------------- +Wed May 16 12:45:04 UTC 2012 - lmuelle@suse.com + +- Cleanup BuildRequires and spec file in general. +- Add new pytalloc and pytalloc-devel sub packages. + +------------------------------------------------------------------- +Wed Sep 7 17:52:30 UTC 2011 - lars@samba.org + +- Initial independent libtalloc2 package. + diff --git a/libtalloc2.spec b/libtalloc2.spec new file mode 100644 index 0000000..303c323 --- /dev/null +++ b/libtalloc2.spec @@ -0,0 +1,137 @@ +# +# spec file for package libtalloc2 (Version 2.0.7) +# +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# 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/ +# + +# norootforbuild + +%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} + +Name: libtalloc2 +BuildRequires: autoconf +BuildRequires: docbook-xsl-stylesheets +BuildRequires: doxygen +BuildRequires: libxslt +BuildRequires: python-devel +Provides: bundled(libreplace) +%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 +License: LGPL-3.0+ +Group: System/Libraries +Url: http://talloc.samba.org/ +Version: 2.0.7 +Release: 0 +PreReq: /sbin/ldconfig +Summary: Samba talloc Library +Source: http://download.samba.org/pub/talloc/talloc-%{version}.tar.gz +Source4: baselibs.conf +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +This package includes the talloc2 library. + + +%package devel +License: LGPL-3.0+ +Summary: Libraries and Header Files to Develop Programs with talloc2 Support +Group: Development/Libraries/C and C++ +Requires: libtalloc2 = %{version} + +%description devel +Libraries and Header Files to Develop Programs with talloc2 Support + + +%package -n pytalloc +License: LGPL-3.0+ +Summary: Python bindings for the Talloc library +Group: Development/Libraries +Requires: libtalloc2 = %{version} + +%description -n pytalloc +Python bindings for libtalloc + + +%package -n pytalloc-devel +License: LGPL-3.0+ +Summary: Developer tools for the Talloc library +Group: Development/Libraries +Requires: pytalloc = %{version} + +%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} \ + --bundled-libraries=NONE \ + --builtin-libraries=replace \ +" +./configure ${CONFIGURE_OPTIONS} +%{__make} %{build_make_smp_mflags} \ + all +doxygen doxy.config + +%check +%{__make} test + +%install +DESTDIR=${RPM_BUILD_ROOT} make install + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%post -n pytalloc -p /sbin/ldconfig + +%postun -n pytalloc -p /sbin/ldconfig + +%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* + +%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 diff --git a/talloc-2.0.7.tar.gz b/talloc-2.0.7.tar.gz new file mode 100644 index 0000000..0969b57 --- /dev/null +++ b/talloc-2.0.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:59e1e8619b44eb820405cf76ab15607c35ac6e3460377016eb43f81bca22768a +size 370705