- Ensure to link with --as-needed flag by removing SUSE_ASNEEDED=0.
- Always use the default optimization even on pre-9.2 systems. - Remove redundant configure options while adding with-relro. - Relocate the lockdir to the /var/lib/samba/lock directory. - Cleanup and enhance the pidl sub package. OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/samba?expand=0&rev=510
This commit is contained in:
parent
2a3a0f074d
commit
f9ec733ab4
@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:1d97aa9c36053d63cc61222d37c34f02a2b54c1234348515b0191a65786e7c10
|
oid sha256:0a8ca8635a788d7408600ec1fdcefddb78a22e47e30e76d1526561585594b7a7
|
||||||
size 29335
|
size 29343
|
||||||
|
@ -1,3 +1,24 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Nov 14 18:31:04 UTC 2015 - lmuelle@suse.com
|
||||||
|
|
||||||
|
- Ensure to link with --as-needed flag by removing SUSE_ASNEEDED=0.
|
||||||
|
- Always use the default optimization even on pre-9.2 systems.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Nov 14 18:10:01 UTC 2015 - lmuelle@suse.com
|
||||||
|
|
||||||
|
- Remove redundant configure options while adding with-relro.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Nov 14 17:44:24 UTC 2015 - lmuelle@suse.com
|
||||||
|
|
||||||
|
- Relocate the lockdir to the /var/lib/samba/lock directory.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Nov 14 16:59:09 UTC 2015 - lmuelle@suse.com
|
||||||
|
|
||||||
|
- Cleanup and enhance the pidl sub package.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Oct 22 22:09:19 UTC 2015 - lmuelle@suse.com
|
Thu Oct 22 22:09:19 UTC 2015 - lmuelle@suse.com
|
||||||
|
|
||||||
|
51
samba.spec
51
samba.spec
@ -144,7 +144,7 @@ BuildRequires: systemd-devel
|
|||||||
%else
|
%else
|
||||||
%define build_make_smp_mflags %{?jobs:-j%jobs}
|
%define build_make_smp_mflags %{?jobs:-j%jobs}
|
||||||
%endif
|
%endif
|
||||||
%define SOURCE_TIMESTAMP 3508
|
%define SOURCE_TIMESTAMP 3523
|
||||||
%define BRANCH %{version}
|
%define BRANCH %{version}
|
||||||
%global with_mitkrb5 1
|
%global with_mitkrb5 1
|
||||||
%global with_dc 0
|
%global with_dc 0
|
||||||
@ -355,6 +355,7 @@ Group: Development/Tools
|
|||||||
%if 0%{?suse_version} > 0
|
%if 0%{?suse_version} > 0
|
||||||
Requires: perl-base
|
Requires: perl-base
|
||||||
%endif
|
%endif
|
||||||
|
Requires: perl-Parse-Yapp
|
||||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||||
|
|
||||||
%description pidl
|
%description pidl
|
||||||
@ -1134,16 +1135,7 @@ mv VERSION VERSION.orig
|
|||||||
sed -e "s/^SAMBA_VERSION_VENDOR_SUFFIX=$/SAMBA_VERSION_VENDOR_SUFFIX=${vendor_tag}%{VENDOR}${product_suffix}/" VERSION.orig >VERSION
|
sed -e "s/^SAMBA_VERSION_VENDOR_SUFFIX=$/SAMBA_VERSION_VENDOR_SUFFIX=${vendor_tag}%{VENDOR}${product_suffix}/" VERSION.orig >VERSION
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%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
|
|
||||||
%if 0%{?suse_version} > 1110
|
|
||||||
export SUSE_ASNEEDED=0
|
|
||||||
%endif
|
|
||||||
export CFLAGS="%{optflags} -D_GNU_SOURCE ${OPTIMIZATION} -D_LARGEFILE64_SOURCE -DIDMAP_RID_SUPPORT_TRUSTED_DOMAINS"
|
|
||||||
%if 0%{?suse_version} && 0%{?suse_version} < 1141
|
%if 0%{?suse_version} && 0%{?suse_version} < 1141
|
||||||
%{?suse_update_config:%{suse_update_config -f}}
|
%{?suse_update_config:%{suse_update_config -f}}
|
||||||
%endif
|
%endif
|
||||||
@ -1153,35 +1145,24 @@ bundled_libraries_extra="libarchive"
|
|||||||
CONFIGURE_OPTIONS="\
|
CONFIGURE_OPTIONS="\
|
||||||
--prefix=%{_prefix} \
|
--prefix=%{_prefix} \
|
||||||
--localstatedir=%{_localstatedir} \
|
--localstatedir=%{_localstatedir} \
|
||||||
--sysconfdir=%{CONFIGDIR} \
|
--sysconfdir=%{_sysconfdir} \
|
||||||
--with-configdir=%{CONFIGDIR} \
|
|
||||||
--libdir=%{_libdir} \
|
--libdir=%{_libdir} \
|
||||||
--with-cachedir=%{LOCKDIR} \
|
--with-cachedir=%{LOCKDIR} \
|
||||||
--with-lockdir=%{LOCKDIR} \
|
--with-lockdir=%{LOCKDIR}/lock \
|
||||||
--with-logfilebase=%{LOGDIR} \
|
--with-logfilebase=%{LOGDIR} \
|
||||||
--mandir=%{_mandir} \
|
|
||||||
--with-modulesdir=%{_libdir}/samba \
|
--with-modulesdir=%{_libdir}/samba \
|
||||||
--disable-rpath \
|
--disable-rpath \
|
||||||
--disable-rpath-install \
|
--disable-rpath-install \
|
||||||
--enable-cups \
|
|
||||||
--enable-debug \
|
--enable-debug \
|
||||||
--enable-fhs \
|
--enable-fhs \
|
||||||
--with-acl-support \
|
|
||||||
--with-automount \
|
|
||||||
--with-ads \
|
|
||||||
--with-dnsupdate \
|
|
||||||
--with-pam \
|
--with-pam \
|
||||||
--with-pammodulesdir=%{_lib}/security \
|
--with-pammodulesdir=%{_lib}/security \
|
||||||
--with-pam_smbpass \
|
|
||||||
--with-piddir=%{PIDDIR} \
|
--with-piddir=%{PIDDIR} \
|
||||||
--with-quotas \
|
--with-relro \
|
||||||
--with-syslog \
|
|
||||||
%if 0%{?suse_version} > 1220
|
%if 0%{?suse_version} > 1220
|
||||||
--enable-avahi \
|
--enable-avahi \
|
||||||
--with-systemd \
|
--with-systemd \
|
||||||
%endif
|
%endif
|
||||||
--with-utmp \
|
|
||||||
--with-winbind \
|
|
||||||
--with-shared-modules=%{auth_modules},%{vfs_modules},%{pdb_modules},%{idmap_modules} \
|
--with-shared-modules=%{auth_modules},%{vfs_modules},%{pdb_modules},%{idmap_modules} \
|
||||||
%if %with_mitkrb5
|
%if %with_mitkrb5
|
||||||
--with-system-mitkrb5 \
|
--with-system-mitkrb5 \
|
||||||
@ -1224,7 +1205,7 @@ install -d -m 0755 -p \
|
|||||||
%{buildroot}/%{_datadir}/omc/svcinfo.d \
|
%{buildroot}/%{_datadir}/omc/svcinfo.d \
|
||||||
%{buildroot}/%{_datadir}/samba/{LDAP,templates} \
|
%{buildroot}/%{_datadir}/samba/{LDAP,templates} \
|
||||||
%{buildroot}/%{_localstatedir}/adm \
|
%{buildroot}/%{_localstatedir}/adm \
|
||||||
%{buildroot}/%{LOCKDIR}/{drivers/{WIN40,W32X86,W32MIPS,W32ALPHA,W32PPC,IA64,x64},netlogon,msg.lock,printing,private/msg.sock,profiles,winbindd_privileged} \
|
%{buildroot}/%{LOCKDIR}/{drivers/{WIN40,W32X86,W32MIPS,W32ALPHA,W32PPC,IA64,x64},netlogon,lock/msg.lock,printing,private/msg.sock,profiles,winbindd_privileged} \
|
||||||
%{buildroot}/%{LOGDIR} \
|
%{buildroot}/%{LOGDIR} \
|
||||||
%{buildroot}/%{PIDDIR} \
|
%{buildroot}/%{PIDDIR} \
|
||||||
%{buildroot}/%{_var}/adm/fillup-templates \
|
%{buildroot}/%{_var}/adm/fillup-templates \
|
||||||
@ -1245,9 +1226,6 @@ rm \
|
|||||||
%{buildroot}/%{_libdir}/samba/ldb/ldbsamba_extensions.so \
|
%{buildroot}/%{_libdir}/samba/ldb/ldbsamba_extensions.so \
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Clean out files left behind by the PIDL install.
|
|
||||||
rm -r %{buildroot}/%{perl_vendorlib}/Parse/Yapp
|
|
||||||
|
|
||||||
# utility scripts
|
# utility scripts
|
||||||
scripts="creategroup mksmbpasswd.sh"
|
scripts="creategroup mksmbpasswd.sh"
|
||||||
install -d -m 0755 examples/scripts
|
install -d -m 0755 examples/scripts
|
||||||
@ -1673,7 +1651,8 @@ fi
|
|||||||
%{_libdir}/samba/config
|
%{_libdir}/samba/config
|
||||||
%{_libdir}/samba/rpc
|
%{_libdir}/samba/rpc
|
||||||
%attr(0775,root,ntadmin) %{LOCKDIR}/drivers
|
%attr(0775,root,ntadmin) %{LOCKDIR}/drivers
|
||||||
%dir %{LOCKDIR}/msg.lock
|
%dir %{LOCKDIR}/lock
|
||||||
|
%dir %{LOCKDIR}/lock/msg.lock
|
||||||
%{LOCKDIR}/netlogon
|
%{LOCKDIR}/netlogon
|
||||||
%attr(0770,root,users) %dir %{LOCKDIR}/profiles
|
%attr(0770,root,users) %dir %{LOCKDIR}/profiles
|
||||||
%{_bindir}/smbstatus
|
%{_bindir}/smbstatus
|
||||||
@ -2025,10 +2004,14 @@ fi
|
|||||||
%files pidl
|
%files pidl
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%dir %{perl_vendorlib}/Parse
|
%dir %{perl_vendorlib}/Parse
|
||||||
%{perl_vendorlib}/Parse/Pidl*
|
%dir %{perl_vendorlib}/Parse/Pidl
|
||||||
%{_mandir}/man1/pidl*
|
%dir %{perl_vendorlib}/Parse/Yapp
|
||||||
%{_mandir}/man3/Parse::Pidl*
|
%{perl_vendorlib}/Parse/Pidl.pm*
|
||||||
%attr(755,root,root) %{_bindir}/pidl
|
%{perl_vendorlib}/Parse/Pidl/*
|
||||||
|
%{perl_vendorlib}/Parse/Yapp/*
|
||||||
|
%{_mandir}/man1/pidl.1.*
|
||||||
|
%{_mandir}/man3/Parse::Pidl::*.3pm.*
|
||||||
|
%{_bindir}/pidl
|
||||||
|
|
||||||
%files python
|
%files python
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:78e59799213107efa3c0bda729edc3d978e20ae1b8177a8754573a67adcc31a0
|
oid sha256:3219007fcf5801f63f6c8627edd44b862b12776ad795a6b60e74df41d517635a
|
||||||
size 52982
|
size 52993
|
||||||
|
Loading…
Reference in New Issue
Block a user