⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 samba2.spec

📁 samba-3.0.22.tar.gz 编译smb服务器的源码
💻 SPEC
📖 第 1 页 / 共 5 页
字号:
# Note that this file exists in Mandrake packaging cvs (as samba.spec)# and samba cvs (as packaging/Mandrake/samba2.spec.tmpl).# Keep in mind that any changes should take both locations into account# Considerable effort has gone into making this possible, so that only# one spec file is maintained, please don't break it.# It should be possible, without any changes to this file, to build# binary packages on most recent Mandrake releases:# 1)from official source releases, using 'cd packaging/Mandrake; sh makerpms.sh'# 2)from cvs snapshots, using 'cd packaging/Mandrake; sh makerpms-cvs.sh <ver>'# 3)using official source releases and updated Mandrake packaging, by#   'rpm -ba samba.spec'# As such, any sources or patches used in a build from a samba release or# cvs should be submitted for inclusion in samba cvs.%define pkg_name	samba%define ver 		3.0.8%define drel		1%define	subrel		1%define vscanver 	0.3.5%define libsmbmajor 	0%{?!mdkversion: %define mdkversion %(perl -pe '/(\d+)\.(\d)\.?(\d)?/; $_="$1$2".($3||0)' /etc/mandrake-release)}%define rel		%(case `hostname` in (n?.mandrakesoft.com) echo %drel;;(*) echo $[%drel-1].%subrel.$[%mdkversion/10];;esac)mdk%{?_with_stable_on_cluster: %define rel %(echo $[%{drel}-1].%subrel.$[%{mdkversion}/10]mdk)}%{?_with_official: %define rel %drel}%{!?lib: %global lib lib}%{!?mklibname: %global mklibname(ds) %lib%{1}%{?2:%{2}}%{?3:_%{3}}%{-s:-static}%{-d:-devel}}%define libname %mklibname smbclient %libsmbmajor# Version and release replaced by samba-team at release from samba cvs%define pversion 3.0.13%define prelease 1#Check to see if p(version|release) has been replaced (1 if replaced)%define have_pversion %(if [ "%pversion" = `echo "pversion" |tr '[:lower:]' '[:upper:]'` ];then echo 0; else echo 1; fi)%define have_prelease %(if [ "%prelease" = `echo "prelease" |tr '[:lower:]' '[:upper:]'` ];then echo 0; else echo 1; fi)%if %have_pversion%define source_ver 	%{pversion}# Don't abort for stupid reasons on builds from tarballs:%global	_unpackaged_files_terminate_build	0%global	_missing_doc_files_terminate_build	0%else%define source_ver 	%{ver}%endif# We might have a prerelease:%define have_pre %(echo %source_ver|awk '{p=0} /[a-z,A-Z][a-z,A-Z]/ {p=1} {print p}')%if %have_pre%define pre_ver %(perl -e '$name="%source_ver"; print ($name =~ /(.*?)[a-z]/);')%define pre_pre %(echo %source_ver|sed -e 's/%pre_ver//g')%endif# Check to see if we are running a build from a tarball release from samba.org# (%have_pversion) If so, disable vscan, unless explicitly requested# (--with vscan).%define build_vscan 	1%if %have_pversion%define build_vscan 	0%{?_with_vscan: %define build_vscan 1}%endif# We now do detection of the Mandrake release we are building on:%define build_mdk82 %(if [ `awk '{print $4}' /etc/mandrake-release` = 8.2 ];then echo 1; else echo 0; fi)%define build_mdk81 %(if [ `awk '{print $4}' /etc/mandrake-release` = 8.1 ];then echo 1; else echo 0; fi)%define build_mdk80 %(if [ `awk '{print $4}' /etc/mandrake-release` = 8.0 ];then echo 1; else echo 0; fi)%define build_mdk72 %(if [ `awk '{print $4}' /etc/mandrake-release` = 7.2 ];then echo 1; else echo 0; fi)%define build_non_default 0# Default options%define build_alternatives	0%define build_system	0%define build_acl 	1%define build_winbind 	1%define build_wins 	1%define build_ldap 	0%define build_ads	1%define build_scanners	0# CUPS supports functionality for 'printcap name = cups' (9.0 and later):%define build_cupspc	0# %_{pre,postun}_service are provided by rpm-helper in 9.0 and later%define have_rpmhelper	1# Set defaults for each version%if %mdkversion >= 1000%define build_system	1%endif%if %mdkversion >= 920%define build_alternatives	1%endif%if %mdkversion >= 910%define build_cupspc	1%endif%if %build_mdk82%define have_rpmhelper	0%endif%if %build_mdk81%define build_winbind	0%define build_wins	0%define have_rpmhelper	0%endif%if %build_mdk80%define build_acl	0%define build_winbind	0%define build_wins	0%define build_ads	0%define have_rpmhelper	1%endif%if %build_mdk72%define build_acl	0%define build_winbind	0%define build_wins	0%define build_ads	0%define have_rpmhelper	1%endif# Allow commandline option overrides (borrowed from Vince's qmail srpm):# To use it, do rpm [-ba|--rebuild] --with 'xxx'# Check if the rpm was built with the defaults, otherwise we inform the user%define build_non_default 0%{?_with_system: %global build_system 1}%{?_without_system: %global build_system 0}%{?_with_acl: %global build_acl 1}%{?_with_acl: %global build_non_default 1}%{?_without_acl: %global build_acl 0}%{?_without_acl: %global build_non_default 1}%{?_with_winbind: %global build_winbind 1}%{?_with_winbind: %global build_non_default 1}%{?_without_winbind: %global build_winbind 0}%{?_without_winbind: %global build_non_default 1}%{?_with_wins: %global build_wins 1}%{?_with_wins: %global build_non_default 1}%{?_without_wins: %global build_wins 0}%{?_without_wins: %global build_non_default 1}%{?_with_ldap: %global build_ldap 1}%{?_with_ldap: %global build_non_default 1}%{?_without_ldap: %global build_ldap 0}%{?_without_ldap: %global build_non_default 1}%{?_with_ads: %global build_ads 1}%{?_with_ads: %global build_non_default 1}%{?_without_ads: %global build_ads 0}%{?_without_ads: %global build_non_default 1}%{?_with_scanners: %global build_scanners 1}%{?_with_scanners: %global build_non_default 1}%{?_without_scanners: %global build_scanners 0}%{?_without_scanners: %global build_non_default 1}%{?_with_vscan: %global build_vscan 1}%{?_with_vscan: %global build_non_default 1}%{?_without_vscan: %global build_vscan 0}%{?_without_vscan: %global build_non_default 1}# As if that weren't enough, we're going to try building with antivirus# support as an option also%global build_clamav 	0%global build_fprot 	0%global build_fsav 	0%global build_icap 	0%global build_kaspersky 0%global build_mks 	0%global build_nai 	0%global build_openav	0%global build_sophos 	0%global build_symantec 	0%global build_trend	0%if %build_vscan# These we build by default%global build_clamav 	1%global build_icap 	1%endif%if %build_vscan && %build_scanners# These scanners are built if scanners are selected# symantec requires their library present and must be selected # individually%global build_fprot 	1%global build_fsav 	1%global build_kaspersky 1%global build_mks 	1%global build_nai 	1%global build_openav	1%global build_sophos 	1%global build_trend 	1%endif%if %build_vscan%{?_with_fprot: %{expand: %%global build_fprot 1}}%{?_with_kaspersky: %{expand: %%global build_kaspersky 1}}%{?_with_mks: %{expand: %%global build_mks 1}}%{?_with_openav: %{expand: %%global build_openav 1}}%{?_with_sophos: %{expand: %%global build_sophos 1}}#%{?_with_symantec: %{expand: %%global build_symantec 1}}%{?_with_trend: %{expand: %%global build_trend 1}}%global vscandir samba-vscan-%{vscanver}%endif%global vfsdir examples.bin/VFS#Standard texts for descriptions:%define message_bugzilla() %(echo -e -n "Please file bug reports for this package at Mandrake bugzilla \\n(http://qa.mandrakesoft.com) under the product name %{1}")%define message_system %(echo -e -n "NOTE: These packages of samba-%{version}, are provided, parallel installable\\nwith samba-2.2.x, to allow easy migration from samba-2.2.x to samba-%{version},\\nbut are not officially supported")#check gcc version to disable some optimisations on gcc-3.3.1%define gcc331 %(gcc -dumpversion|awk '{if ($1>3.3) print 1; else print 0}')#Define sets of binaries that we can use in globs and loops:%global commonbin net,ntlm_auth,rpcclient,smbcacls,smbcquotas,smbpasswd,smbtree,testparm,testprns%global serverbin 	editreg,pdbedit,profiles,smbcontrol,smbstatus,tdbbackup,tdbdump%global serversbin nmbd,samba,smbd,mkntpwd%global clientbin 	findsmb,nmblookup,smbclient,smbmnt,smbmount,smbprint,smbspool,smbtar,smbumount,smbget%global client_bin 	mount.cifs%global client_sbin 	mount.smb,mount.smbfs%global testbin 	debug2html,smbtorture,msgtest,masktest,locktest,locktest2,nsstest,vfstest%ifarch alpha%define build_expsam xml%else%define build_expsam mysql,xml,pgsql%endif#Workaround missing macros in 8.x:%{!?perl_vendorlib: %{expand: %%global perl_vendorlib %{perl_sitearch}/../}}# Determine whether this is the system samba or not.%if %build_system%define samba_major	%{nil}%else%define samba_major	3%endif# alternatives_major is %{nil} if we aren't system and not using alternatives%if !%build_system || %build_alternatives%define alternative_major 3%else%define alternative_major %{nil}%endifSummary: Samba SMB server.Name: %{pkg_name}%{samba_major}%if %have_preVersion: %{pre_ver}%elseVersion: %{source_ver}%endif%if %have_prelease && !%have_preRelease: 0.%{prelease}.%{rel}%endif%if %have_prelease && %have_preRelease: 0.%{pre_pre}.%{rel}%endif%if !%have_prelease && !%have_preRelease: %{rel}%endif%if !%have_prelease && %have_preRelease: 0.%{pre_pre}.%{rel}%endifLicense: GPLGroup: System/ServersSource: ftp://samba.org/pub/samba/samba-%{source_ver}.tar.bz2URL:	http://www.samba.orgSource1: samba.logSource3: samba.xinetdSource4: swat_48.png.bz2Source5: swat_32.png.bz2Source6: swat_16.png.bz2Source7: README.%{name}-mandrake-rpm%if %build_vscanSource8: samba-vscan-%{vscanver}.tar.bz2%endif%if %build_vscan && %mdkversion >= 920BuildRequires: file-devel%endifSource10: samba-print-pdf.sh.bz2Source11: smb-migrate.bz2Patch1: smbw.patch.bz2Patch4: samba-3.0-smbmount-sbin.patch.bz2Patch5:	samba-3.0.2a-smbldap-config.patch.bz2%if !%have_pversion# Version specific patches: current versionPatch7: samba-3.0.5-lib64.patch.bz2Patch9:	samba-3.0.6-smbmount-unixext.patch.bz2Patch11: samba-3.0.7-mandrake-packaging.patch.bz2%else# Version specific patches: upcoming versionPatch8:	samba-3.0.6-revert-libsmbclient-move.patch.bz2%endif# Limbo patches (applied to prereleases, but not preleases, ie destined for# samba CVS)%if %have_pversion && %have_pre%endifRequires: pam >= 0.64, samba-common = %{version}BuildRequires: pam-devel readline-devel libncurses-devel popt-develBuildRequires: libxml2-devel postgresql-devel%ifnarch alphaBuildRequires: mysql-devel%endif%if %build_aclBuildRequires: libacl-devel%endif%if %build_mdk72BuildRequires: cups-devel%elseBuildRequires: libcups-devel%endifBuildRequires: libldap-devel%if %build_adsBuildRequires: libldap-devel krb5-devel%endifBuildRoot: %{_tmppath}/%{name}-%{version}-rootPrefix: /usrPrereq: /sbin/chkconfig /bin/mktemp /usr/bin/killallPrereq: fileutils sed /bin/grep%descriptionSamba provides an SMB server which can be used to providenetwork services to SMB (sometimes called "Lan Manager")clients, including various versions of MS Windows, OS/2,and other Linux machines. Samba also provides some SMBclients, which complement the built-in SMB filesystemin Linux. Samba uses NetBIOS over TCP/IP (NetBT) protocolsand does NOT need NetBEUI (Microsoft Raw NetBIOS frame)protocol.Samba-3.0 features working NT Domain Control capability andincludes the SWAT (Samba Web Administration Tool) thatallows samba's smb.conf file to be remotely managed using yourfavourite web browser. For the time being this is beingenabled on TCP port 901 via xinetd. SWAT is now included init's own subpackage, samba-swat.Please refer to the WHATSNEW.txt document for fixup information.This binary release includes encrypted password support.Please read the smb.conf file and ENCRYPTION.txt in thedocs directory for implementation details.%if %have_pversion%message_bugzilla samba3%endif %if !%build_system%message_system%endif%if %build_non_defaultWARNING: This RPM was built with command-line options. Pleasesee README.%{name}-mandrake-rpm in the documentation formore information.%endif%package serverURL:	http://www.samba.orgSummary: Samba (SMB) server programs.Requires: %{name}-common = %{version}%if %have_rpmhelperPreReq:		rpm-helper%endifGroup: Networking/Other%if %build_systemProvides: sambaObsoletes: sambaProvides:  samba-server-ldapObsoletes: samba-server-ldapProvides:  samba3-serverObsoletes: samba3-server%else#Provides: samba-server%endif%description serverSamba-server provides a SMB server which can be used to providenetwork services to SMB (sometimes called "Lan Manager")clients. Samba uses NetBIOS over TCP/IP (NetBT) protocolsand does NOT need NetBEUI (Microsoft Raw NetBIOS frame)protocol.Samba-3.0 features working NT Domain Control capability andincludes the SWAT (Samba Web Administration Tool) thatallows samba's smb.conf file to be remotely managed using yourfavourite web browser. For the time being this is beingenabled on TCP port 901 via xinetd. SWAT is now included init's own subpackage, samba-swat.Please refer to the WHATSNEW.txt document for fixup information.This binary release includes encrypted password support.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -