Accepting request 181698 from network:samba:STABLE
- Use SLE as product prefix for SUSE Linux Enterprise, oS for openSUSE, and OBS for any other operating system to define the vendor string while build. - Remove ldapsmb from the main spec file. OBS-URL: https://build.opensuse.org/request/show/181698 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/samba?expand=0&rev=134
This commit is contained in:
commit
5e2318b7d1
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7602f956f07f7d8f95352679bc0393f2d3a731be2d85334a1b703a7ff498cdb0
|
||||
size 44588
|
@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e822e6f9d6ddc1a8b0c3ea9ce851410d425d778bf7efb8c59a11883ef90981a6
|
||||
size 37801
|
||||
oid sha256:a63d4e18c45a619eb5590eb5a9c591ab21c9fce0adf9082b6f442daa2b382545
|
||||
size 37281
|
||||
|
@ -129,11 +129,10 @@ BuildRequires: libtevent-devel
|
||||
%else
|
||||
%define build_make_smp_mflags %{?jobs:-j%jobs}
|
||||
%endif
|
||||
%define SOURCE_TIMESTAMP 3027
|
||||
%define SOURCE_TIMESTAMP 3030
|
||||
%define BRANCH %{version}
|
||||
Version: 3.6.16
|
||||
Release: 0
|
||||
%define ldapsmb_ver 1.34b
|
||||
Url: http://www.samba.org/
|
||||
License: GPL-3.0+
|
||||
Summary: Samba Documentation
|
||||
@ -149,7 +148,6 @@ Source: http://samba.org/samba/ftp/samba-%{version}%{samba_ver_suffix}.t
|
||||
Source1: vendor-files.tar.bz2
|
||||
Source2: patches.tar.bz2
|
||||
Source4: baselibs.conf
|
||||
Source11: http://www.samba.org/~gd/ldapsmb/ldapsmb-%{ldapsmb_ver}.tar.bz2
|
||||
# Choose some features / extra packages here
|
||||
############################################
|
||||
%define make_devel 0
|
||||
@ -160,7 +158,6 @@ BuildRequires: ccache
|
||||
# requires: docbook-utils docbook-xsl-stylesheets docbook_4 freetype2 ghostscript-fonts-std ghostscript-library ghostscript-x11 libxslt sgml-skel te_etex te_latex te_pdf tetex xmlcharent
|
||||
%define make_doc 0
|
||||
%define make_utils 0
|
||||
%define make_ldapsmb 1
|
||||
%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1120
|
||||
%define cifs_init_script cifs
|
||||
%else
|
||||
@ -210,10 +207,6 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
# samba-doc nowadays is part the main samba spec file
|
||||
%if 0%{?suse_version} && 0%{?suse_version} < 1111
|
||||
%setup -n samba-%{samba_ver_full} -q
|
||||
# ldapsmb
|
||||
%if %{make_ldapsmb}
|
||||
%setup -T -D -a 11 -n samba-%{samba_ver_full} -q
|
||||
%endif
|
||||
# patches
|
||||
%setup -T -D -a 2 -n samba-%{samba_ver_full} -q
|
||||
for patch in $( patches/tools/guards %{guards_symbols} <patches/series); do
|
||||
@ -258,15 +251,12 @@ product_version="${major_version}.${minor_version}"
|
||||
product_suffix=""
|
||||
if test "%{VENDOR}" != "UL"; then
|
||||
if test 0%{?sles_version} -gt 0; then
|
||||
product_suffix="-SLES%{sles_version}"
|
||||
product_suffix="-SLE_%{sles_version}"
|
||||
elif test 0%{?suse_version} -gt 0; then
|
||||
product_suffix="-SL${product_version}"
|
||||
product_suffix="-oS${product_version}"
|
||||
else
|
||||
product_suffix="-OBS"
|
||||
fi
|
||||
case "%{?suse_version}" in
|
||||
1010|1110) product_suffix="-CODE${major_version}" ;;
|
||||
esac
|
||||
fi
|
||||
# Add the build architecture
|
||||
test "%{_build_arch}" != "" && \
|
||||
|
@ -1,3 +1,14 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 1 17:34:32 UTC 2013 - lmuelle@suse.com
|
||||
|
||||
- Use SLE as product prefix for SUSE Linux Enterprise, oS for openSUSE, and
|
||||
OBS for any other operating system to define the vendor string while build.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 28 16:49:31 UTC 2013 - lmuelle@suse.com
|
||||
|
||||
- Remove ldapsmb from the main spec file.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 26 13:55:13 UTC 2013 - lmuelle@suse.com
|
||||
|
||||
|
55
samba.spec
55
samba.spec
@ -129,11 +129,10 @@ BuildRequires: libtevent-devel
|
||||
%else
|
||||
%define build_make_smp_mflags %{?jobs:-j%jobs}
|
||||
%endif
|
||||
%define SOURCE_TIMESTAMP 3027
|
||||
%define SOURCE_TIMESTAMP 3030
|
||||
%define BRANCH %{version}
|
||||
Version: 3.6.16
|
||||
Release: 0
|
||||
%define ldapsmb_ver 1.34b
|
||||
License: GPL-3.0+
|
||||
Url: http://www.samba.org/
|
||||
Group: Productivity/Networking/Samba
|
||||
@ -152,7 +151,6 @@ Source: http://samba.org/samba/ftp/samba-%{version}%{samba_ver_suffix}.t
|
||||
Source1: vendor-files.tar.bz2
|
||||
Source2: patches.tar.bz2
|
||||
Source4: baselibs.conf
|
||||
Source11: http://www.samba.org/~gd/ldapsmb/ldapsmb-%{ldapsmb_ver}.tar.bz2
|
||||
PreReq: /usr/bin/getent
|
||||
PreReq: /usr/sbin/groupadd
|
||||
PreReq: coreutils
|
||||
@ -167,7 +165,6 @@ BuildRequires: ccache
|
||||
# requires: docbook-utils docbook-xsl-stylesheets docbook_4 freetype2 ghostscript-fonts-std ghostscript-library ghostscript-x11 libxslt sgml-skel te_etex te_latex te_pdf tetex xmlcharent
|
||||
%define make_doc 0
|
||||
%define make_utils 0
|
||||
%define make_ldapsmb 1
|
||||
%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1120
|
||||
%define cifs_init_script cifs
|
||||
%else
|
||||
@ -645,26 +642,6 @@ develop programs which make use of the tevent programming interface.
|
||||
Source Timestamp: %{SOURCE_TIMESTAMP}
|
||||
Branch: %{BRANCH}
|
||||
|
||||
%endif
|
||||
|
||||
%if %{make_ldapsmb}
|
||||
|
||||
%package -n ldapsmb
|
||||
Version: 1.34b
|
||||
Release: 0
|
||||
License: GPL-2.0+
|
||||
Summary: Tool to administer Samba's LDAP backend
|
||||
Group: Productivity/Networking/Samba
|
||||
Requires: perl-ldap
|
||||
|
||||
%description -n ldapsmb
|
||||
This tool aims to simplify the administration of a Samba Domain
|
||||
Controller that uses the ldapsam passdb backend.
|
||||
|
||||
Source Timestamp: %{SOURCE_TIMESTAMP}
|
||||
Branch: %{BRANCH}
|
||||
|
||||
|
||||
%endif
|
||||
|
||||
%prep
|
||||
@ -680,10 +657,6 @@ grep "^VERSION = '%{libtdb_ver}'$" lib/tdb/wscript || \
|
||||
grep "^VERSION = '%{libtevent_ver}'$" lib/tevent/wscript || \
|
||||
exit 1
|
||||
%endif
|
||||
# ldapsmb
|
||||
%if %{make_ldapsmb}
|
||||
%setup -T -D -a 11 -n samba-%{samba_ver_full} -q
|
||||
%endif
|
||||
# patches
|
||||
%setup -T -D -a 2 -n samba-%{samba_ver_full} -q
|
||||
for patch in $( patches/tools/guards %{guards_symbols} <patches/series); do
|
||||
@ -728,15 +701,12 @@ product_version="${major_version}.${minor_version}"
|
||||
product_suffix=""
|
||||
if test "%{VENDOR}" != "UL"; then
|
||||
if test 0%{?sles_version} -gt 0; then
|
||||
product_suffix="-SLES%{sles_version}"
|
||||
product_suffix="-SLE_%{sles_version}"
|
||||
elif test 0%{?suse_version} -gt 0; then
|
||||
product_suffix="-SL${product_version}"
|
||||
product_suffix="-oS${product_version}"
|
||||
else
|
||||
product_suffix="-OBS"
|
||||
fi
|
||||
case "%{?suse_version}" in
|
||||
1010|1110) product_suffix="-CODE${major_version}" ;;
|
||||
esac
|
||||
fi
|
||||
# Add the build architecture
|
||||
test "%{_build_arch}" != "" && \
|
||||
@ -814,13 +784,6 @@ CONFIGURE_OPTIONS_DEVEL="--enable-debug --enable-developer"
|
||||
make samba3-idl
|
||||
make %{build_make_smp_mflags} \
|
||||
all bin/smbfilter
|
||||
%if %{make_ldapsmb}
|
||||
pushd ../ldapsmb-%{ldapsmb_ver}
|
||||
./autogen.sh
|
||||
rm ldapsmb
|
||||
make %{build_make_smp_mflags} all doc
|
||||
popd
|
||||
%endif
|
||||
popd
|
||||
|
||||
%if 0%{?suse_version} && 0%{?suse_version} < 1211
|
||||
@ -1112,10 +1075,6 @@ install -m 0755 source3/bin/locktest %{buildroot}/%{_bindir}/locktest
|
||||
install -m 0755 source3/bin/nsstest %{buildroot}/%{_bindir}/nsstest
|
||||
install -m 0755 source3/bin/vfstest %{buildroot}/%{_bindir}/vfstest
|
||||
%endif
|
||||
%if %{make_ldapsmb}
|
||||
install -m 0700 ldapsmb-%{ldapsmb_ver}/ldapsmb %{buildroot}/%{_sbindir}/
|
||||
cp -a ldapsmb-%{ldapsmb_ver}/ldapsmb.5 %{buildroot}/%{_mandir}/man5
|
||||
%endif
|
||||
# cups SMB support
|
||||
mkdir -p %{buildroot}/%{cups_lib_dir}/backend/
|
||||
touch %{buildroot}/%{cups_lib_dir}/backend/smb
|
||||
@ -1718,12 +1677,4 @@ fi
|
||||
|
||||
%endif
|
||||
|
||||
%if %{make_ldapsmb}
|
||||
|
||||
%files -n ldapsmb
|
||||
%defattr(-,root,root)
|
||||
%{_sbindir}/ldapsmb
|
||||
%{_mandir}/man5/ldapsmb.5.*
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a8c9f5ec0257aa3ef316b262cd33e8d4e2cf32dac57fcc007656322ea6e0e9a7
|
||||
size 53643
|
||||
oid sha256:8710e02e7058c37f8d49040c6d7e3a2c25a353fac11fbf85a35f0e6ab9772ee3
|
||||
size 53568
|
||||
|
Loading…
Reference in New Issue
Block a user