%define _name samba %define _version 3.0.20a %define _release 1 %define cshrcdir /usr/local/etc/cshrc.d %define cshrc %{cshrcdir}/%{_name}-%{_version}-%{_release} Summary: Samba Name: %{_name}-local Version: %{_version} Release: %{_release} License: GNU GPL Version 2 Group: System Environment/Daemons Packager: Joshua Weage Source: samba-%{version}.tar.gz URL: http://www.samba.org/ BuildPrereq: krb5-local BuildRoot: %{_tmppath}/%{_name}-%{version}-buildroot AutoReqProv: no # Override RedHat locations here %define _prefix /usr/local/%{_name}-%{version} %define _sysconfdir %{_prefix}/etc %define _localstatedir %{_prefix}/var %define _infodir %{_prefix}/info %define _mandir %{_prefix}/man %define _defaultdocdir %{_prefix}/doc %description Samba %{_version} release. %prep %setup -n %{_name}-%{version} %build cd source %configure --with-krb5=/usr/local/krb5-1.4.2 \ --with-pam \ --with-acl-support make %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT cd source %makeinstall mkdir -p $RPM_BUILD_ROOT/%{cshrcdir} echo "set path = ( %{_bindir} \$path )" > $RPM_BUILD_ROOT/%{cshrc} echo "setenv MANPATH %{_mandir}:\$MANPATH" >> $RPM_BUILD_ROOT/%{cshrc} # ldconfig automatically links to the newest version of libs, # so on RHEL3, libnss_winbind.so should be version 3 or greater. #mkdir -p $RPM_BUILD_ROOT/lib #cp nsswitch/libnss_winbind.so $RPM_BUILD_ROOT/lib/libnss_winbind.so.3 %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %{_prefix} %attr (644,root,root) %{cshrc} %changelog * Wed Oct 5 2005 Joshua Weage - 3.0.20a-1 New release - Removed config of init scripts and libraries. * Wed Jun 2 2005 Joshua Weage 3.0.14a-1 - 3.0.14a release