summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-06-06 22:56:03 +0000
committerGerald Carter <jerry@samba.org>2003-06-06 22:56:03 +0000
commit11c0ac65669dabc15e73cd2b18dca3b9e4bd3997 (patch)
tree69fb10f377e539c400355eee8f4ef5b2cd888975 /packaging
parent93867b77735c3d729793cf10fd3bed43022e6e06 (diff)
downloadsamba-11c0ac65669dabc15e73cd2b18dca3b9e4bd3997.tar.gz
samba-11c0ac65669dabc15e73cd2b18dca3b9e4bd3997.tar.bz2
samba-11c0ac65669dabc15e73cd2b18dca3b9e4bd3997.zip
pMandrake/samba2.spec.tmplackaging updates (Buchan)
(This used to be commit 73aca1443a0cc6affbe24f869309b119b9556785)
Diffstat (limited to 'packaging')
-rw-r--r--packaging/Mandrake/samba2.spec.tmpl34
-rw-r--r--packaging/RedHat/makerpms.sh.tmpl11
2 files changed, 26 insertions, 19 deletions
diff --git a/packaging/Mandrake/samba2.spec.tmpl b/packaging/Mandrake/samba2.spec.tmpl
index b679f97be1..4d60267398 100644
--- a/packaging/Mandrake/samba2.spec.tmpl
+++ b/packaging/Mandrake/samba2.spec.tmpl
@@ -466,22 +466,23 @@ IP addresses.
%message_system
%endif
-%if %{?_without_debug:0}%{!?_without_debug:1}
-%package debug
+%if %{?_without_test:0}%{!?_without_test:1}
+%package test
URL: http://www.samba.org
Summary: Debugging and benchmarking tools for samba
Group: System/Servers
Requires: %{name}-common = %{version}
%endif
-%if %build_system && %{?_without_debug:0}%{!?_without_debug:1}
-Provides: samba3-debug
-Obsoletes: samba3-debug
+%if %build_system && %{?_without_test:0}%{!?_without_test:1}
+Provides: samba3-test samba3-debug
+Obsoletes: samba3-test samba3-debug
%else
-Provides: samba-debug
+Provides: samba-test samba3-debug
+Obsoletes: samba3-debug
%endif
-%if %{?_without_debug:0}%{!?_without_debug:1}
+%if %{?_without_test:0}%{!?_without_test:1}
-%description debug
+%description test
This package provides tools for benchmarking samba, and debugging
the correct operation of tools against smb servers.
%endif
@@ -806,6 +807,7 @@ CFLAGS="$RPM_OPT_FLAGS"
--with-acl-support \
%endif
--disable-mysqltest \
+ --with-expsam=mysql,xml \
--program-suffix=%{samba_major}
# --with-manpages-langs=en,ja,pl \
#%if !%build_system
@@ -821,7 +823,7 @@ make proto_exists
# torture target broken in alpha22 (only on 9.0?)
#make CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE" \
# all libsmbclient smbfilter wins modules %{!?_without_debug: torture debug2html}
-%make all libsmbclient smbfilter wins modules %{!?_without_debug: torture debug2html}
+%make all libsmbclient smbfilter wins modules %{!?_without_test: torture debug2html}
#%make all libsmbclient debug2html smbfilter wins torture modules
# Build VFS modules (experimental)
#cd ../%vfsdir
@@ -937,7 +939,7 @@ done
# Make link for wins and winbind resolvers
( cd $RPM_BUILD_ROOT/%{_lib}; ln -s libnss_wins%{samba_major}.so libnss_wins%{samba_major}.so.2; ln -s libnss_winbind%{samba_major}.so libnss_winbind%{samba_major}.so.2)
-%if %{?_without_debug:0}%{!?_without_debug:1}
+%if %{?_without_test:0}%{!?_without_test:1}
# Debugging stuff (broken in alpha22)
for i in smbtorture msgtest masktest locktest locktest2 nsstest vfstest debug2html;do
install -m755 source/bin/$i $RPM_BUILD_ROOT/%{_bindir}
@@ -1405,8 +1407,8 @@ fi
%attr(755,root,root) /%{_lib}/libnss_wins%{samba_major}.so*
%endif
-%if %{?_without_debug:0}%{!?_without_debug:1}
-%files debug
+%if %{?_without_test:0}%{!?_without_test:1}
+%files test
%defattr(-,root,root)
%{_bindir}/debug2html%{samba_major}
%{_bindir}/smbtorture%{samba_major}
@@ -1503,6 +1505,10 @@ fi
%endif
%changelog
+* Fri Jun 06 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha24.2mdk
+- Rename debug package to test and other fixes for rpm-4.2
+- prepare for beta1
+
* Wed Apr 30 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha24.1mdk
- Remove some files removed upstream
- In builds from source, don't terminate on missing docs or unpackaged files
@@ -1645,7 +1651,7 @@ fi
- addtosmbpass seems to have returned for now, but make_* have disappeared!
* Fri Dec 14 2001 Buchan Milne <bgmilne@cae.co.za> 3.0alpha6-0.0mdk
-- DESTDIR patch for Makefile.in (p23), remove a lot of %install scripts
+- DESTDIR patch for Makefile.in (p23), remove a lot of %%install scripts
this forces move of smbcontrol and smbmnt to %{prefix}/bin
removed --with-pam_smbpass as it doesn't compile.
@@ -1754,7 +1760,7 @@ fi
- cleanup /var/lib/samba/codepage/src
* Tue Aug 21 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-7mdk
-- moved codepage generation to %install and codepage dir to /var/lib/samba
+- moved codepage generation to %%install and codepage dir to /var/lib/samba
* Tue Aug 21 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-6mdk
- /lib/* was in both samba and samba-common
diff --git a/packaging/RedHat/makerpms.sh.tmpl b/packaging/RedHat/makerpms.sh.tmpl
index 5daf508de8..dc82033b06 100644
--- a/packaging/RedHat/makerpms.sh.tmpl
+++ b/packaging/RedHat/makerpms.sh.tmpl
@@ -43,13 +43,14 @@ case $RPMVER in
echo Building for RPM v3.x
sed -e "s/MANDIR_MACRO/\%\{prefix\}\/man/g" < samba.spec > $SPECFILE
;;
- 4.1*)
- echo Building for RPM v4.1
- RPM="rpmbuild"
+ 4.0*)
+ ## catch rpm v4.0.x first
+ echo Building for RPM v4.0
sed -e "s/MANDIR_MACRO/\%\{_mandir\}/g" < samba.spec > $SPECFILE
;;
- 4*)
- echo Building for RPM v4.x
+ 4.*)
+ echo Building for RPM v4.1 or later
+ RPM="rpmbuild"
sed -e "s/MANDIR_MACRO/\%\{_mandir\}/g" < samba.spec > $SPECFILE
;;
*)