rpms/samba/devel samba.spec,1.174,1.175
Simo Sorce
simo at fedoraproject.org
Wed Mar 4 05:30:25 UTC 2009
Author: simo
Update of /cvs/pkgs/rpms/samba/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv29586
Modified Files:
samba.spec
Log Message:
* Tue Mar 3 2009 Simo Sorce <ssorce at redhat.com> - 3.3.1-0.29
- Make the talloc and ldb packages optionsl and disable their build within
the samba3 package, they are now built as part of the samba4 package
until they will both be released as independent packages.
Index: samba.spec
===================================================================
RCS file: /cvs/pkgs/rpms/samba/devel/samba.spec,v
retrieving revision 1.174
retrieving revision 1.175
diff -u -r1.174 -r1.175
--- samba.spec 25 Feb 2009 11:58:49 -0000 1.174
+++ samba.spec 4 Mar 2009 05:29:53 -0000 1.175
@@ -1,4 +1,4 @@
-%define main_release 28
+%define main_release 29
%define samba_version 3.3.1
%define tdb_version 1.1.2
%define talloc_version 1.2.0
@@ -6,6 +6,9 @@
%define samba_release 0%{pre_release}.%{main_release}%{?dist}
+%define enable_talloc 0
+%define enable_tdb 0
+
Summary: Server and Client software to interoperate with Windows machines
Name: samba
Epoch: 0
@@ -166,7 +169,7 @@
The libsmbclient-devel package contains the header files and libraries needed to
develop programs that link against the SMB client library in the Samba suite.
-
+%if %enable_tdb
%package -n libtdb
Summary: The TDB library and tools
Group: Applications/System
@@ -198,8 +201,9 @@
%description -n libtdb-devel
The libtdb-devel package contains the header files and libraries needed to
develop programs that link against the TDB library in the Samba suite.
+%endif
-
+%if %enable_talloc
%package -n libtalloc
Summary: The talloc library
Group: Applications/System
@@ -220,7 +224,7 @@
%description -n libtalloc-devel
The libtalloc-devel package contains the header files and libraries needed to
develop programs that link against the talloc library in the Samba suite.
-
+%endif
%prep
# TAG: change for non-pre
@@ -386,17 +390,23 @@
# libraries {
mkdir -p $RPM_BUILD_ROOT%{_libdir} $RPM_BUILD_ROOT%{_includedir}
+%if %enable_talloc
# talloc
cd source/lib/talloc
# just to get the correct .pc file generated
./autogen.sh && ./configure --prefix=%{_prefix} --libdir=%{_libdir}
cd ../../..
+install -m 644 source/lib/talloc/talloc.pc $build_libdir/pkgconfig/
+%endif
+%if %enable_tdb
# tdb
cd source/lib/tdb
# just to get the correct .pc file generated
./autogen.sh && ./configure --prefix=%{_prefix} --libdir=%{_libdir}
cd ../../..
+install -m 644 source/lib/tdb/tdb.pc $build_libdir/pkgconfig/
+%endif
# make install puts libraries in the wrong place
# (but at least gets the versioning right now)
@@ -407,8 +417,6 @@
install -m 644 source/pkgconfig/$i.pc $build_libdir/pkgconfig/ || true
done
-install -m 644 source/lib/talloc/talloc.pc $build_libdir/pkgconfig/
-install -m 644 source/lib/tdb/tdb.pc $build_libdir/pkgconfig/
/sbin/ldconfig -n $RPM_BUILD_ROOT%{_libdir}/
@@ -456,6 +464,25 @@
mv -f $RPM_BUILD_ROOT%{_mandir}/man1/ldbsearch.1 $RPM_BUILD_ROOT%{_mandir}/man1/ldb3search.1
mv -f $RPM_BUILD_ROOT%{_mandir}/man1/ldbrename.1 $RPM_BUILD_ROOT%{_mandir}/man1/ldb3rename.1
+%if ! %enable_talloc
+rm -f $RPM_BUILD_ROOT%{_libdir}/libtalloc.so.*
+rm -f $RPM_BUILD_ROOT%{_includedir}/talloc.h
+rm -f $RPM_BUILD_ROOT%{_libdir}/libtalloc.so
+rm -f $RPM_BUILD_ROOT%{_libdir}/pkgconfig/talloc.pc
+%endif
+
+%if ! %enable_tdb
+rm -f $RPM_BUILD_ROOT%{_libdir}/libtdb.so.*
+rm -f $RPM_BUILD_ROOT%{_includedir}/tdb.h
+rm -f $RPM_BUILD_ROOT%{_libdir}/libtdb.so
+rm -f $RPM_BUILD_ROOT%{_libdir}/pkgconfig/tdb.pc
+rm -f $RPM_BUILD_ROOT%{_bindir}/tdbbackup
+rm -f $RPM_BUILD_ROOT%{_bindir}/tdbdump
+rm -f $RPM_BUILD_ROOT%{_bindir}/tdbtool
+rm -f $RPM_BUILD_ROOT%{_mandir}/man8/tdbbackup.8*
+rm -f $RPM_BUILD_ROOT%{_mandir}/man8/tdbdump.8*
+rm -f $RPM_BUILD_ROOT%{_mandir}/man8/tdbtool.8*
+%endif
%clean
rm -rf $RPM_BUILD_ROOT
@@ -633,17 +660,21 @@
%postun -n libsmbclient
/sbin/ldconfig
+%if %enable_tdb
%post -n libtdb
/sbin/ldconfig
%postun -n libtdb
/sbin/ldconfig
+%endif
+%if %enable_talloc
%post -n libtalloc
/sbin/ldconfig
%postun -n libtalloc
/sbin/ldconfig
+%endif
%files
%defattr(-,root,root)
@@ -812,6 +843,7 @@
%{_libdir}/pkgconfig/smbsharemodes.pc
%{_mandir}/man7/libsmbclient.7*
+%if %enable_talloc
%files -n libtalloc
%attr(755,root,root) %{_libdir}/libtalloc.so.*
@@ -819,7 +851,9 @@
%{_includedir}/talloc.h
%{_libdir}/libtalloc.so
%{_libdir}/pkgconfig/talloc.pc
+%endif
+%if %enable_tdb
%files -n libtdb
%attr(755,root,root) %{_libdir}/libtdb.so.*
@@ -835,6 +869,7 @@
%{_mandir}/man8/tdbbackup.8*
%{_mandir}/man8/tdbdump.8*
%{_mandir}/man8/tdbtool.8*
+%endif
%files domainjoin-gui
%{_sbindir}/netdomjoin-gui
@@ -844,6 +879,11 @@
%{_datadir}/pixmaps/samba/logo-small.png
%changelog
+* Tue Mar 3 2009 Simo Sorce <ssorce at redhat.com> - 3.3.1-0.29
+- Make the talloc and ldb packages optionsl and disable their build within
+ the samba3 package, they are now built as part of the samba4 package
+ until they will both be released as independent packages.
+
* Wed Feb 25 2009 Guenther Deschner <gdeschner at redhat.com> - 3.3.1-0.28
- Enable cluster support
More information about the fedora-extras-commits
mailing list