diff options
author | Karolin Seeger <kseeger@samba.org> | 2009-10-16 16:00:26 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2009-10-16 16:00:26 +0200 |
commit | 79c2c61b99eb7c47c8bfbbb479d9d2197d1ad1fb (patch) | |
tree | 993b4a6287b5fa78210c4c9fc96ddd087a9db570 /packaging/RHEL | |
parent | fef032fac781d24f0a75f7690c205b38ed1e65b9 (diff) | |
download | samba-79c2c61b99eb7c47c8bfbbb479d9d2197d1ad1fb.tar.gz samba-79c2c61b99eb7c47c8bfbbb479d9d2197d1ad1fb.tar.bz2 samba-79c2c61b99eb7c47c8bfbbb479d9d2197d1ad1fb.zip |
s3:packaging: Fix building RHEL packages.
Fix bug #6721.
Thanks to Eero Volotinen <eero.volotinen@medicel.com> for providing the patch!
Karolin
Diffstat (limited to 'packaging/RHEL')
-rw-r--r-- | packaging/RHEL/makerpms.sh.tmpl | 4 | ||||
-rw-r--r-- | packaging/RHEL/samba.spec.tmpl | 25 |
2 files changed, 23 insertions, 6 deletions
diff --git a/packaging/RHEL/makerpms.sh.tmpl b/packaging/RHEL/makerpms.sh.tmpl index 5b377bda57..93d2d82692 100644 --- a/packaging/RHEL/makerpms.sh.tmpl +++ b/packaging/RHEL/makerpms.sh.tmpl @@ -40,8 +40,8 @@ case $RPMVER in esac pushd . -cd ../../source -if [ -f Makefile ]; then +cd ../../source3 +if [ -f Makefile ]; then make distclean fi popd diff --git a/packaging/RHEL/samba.spec.tmpl b/packaging/RHEL/samba.spec.tmpl index 15deecd75a..4d27b1a9a8 100644 --- a/packaging/RHEL/samba.spec.tmpl +++ b/packaging/RHEL/samba.spec.tmpl @@ -174,8 +174,7 @@ if [ ${CC_MAJOR} -ge 3 ]; then fi -make CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE" %{?_smp_mflags} \ - all modules pam_smbpass +make all modules pam_smbpass # Remove some permission bits to avoid to many dependencies cd .. @@ -210,8 +209,8 @@ make DESTDIR=$RPM_BUILD_ROOT \ cd .. # NSS winbind support -install -m 755 source3/nsswitch/libnss_winbind.so $RPM_BUILD_ROOT/%{_libarch}/libnss_winbind.so.2 -install -m 755 source3/nsswitch/libnss_wins.so $RPM_BUILD_ROOT/%{_libarch}/libnss_wins.so.2 +install -m 755 nsswitch/libnss_winbind.so $RPM_BUILD_ROOT/%{_libarch}/libnss_winbind.so.2 +install -m 755 nsswitch/libnss_wins.so $RPM_BUILD_ROOT/%{_libarch}/libnss_wins.so.2 ( cd $RPM_BUILD_ROOT/%{_libarch}; ln -sf libnss_winbind.so.2 libnss_winbind.so; ln -sf libnss_wins.so.2 libnss_wins.so ) @@ -440,6 +439,24 @@ fi %attr(755,root,root) /%{_libarch}/security/pam_winbind.so %attr(755,root,root) /%{_libarch}/security/pam_smbpass.so /usr/share/locale/de/LC_MESSAGES/pam_winbind.mo +/usr/share/locale/ar/LC_MESSAGES/pam_winbind.mo +/usr/share/locale/cs/LC_MESSAGES/pam_winbind.mo +/usr/share/locale/da/LC_MESSAGES/pam_winbind.mo +/usr/share/locale/es/LC_MESSAGES/pam_winbind.mo +/usr/share/locale/fi/LC_MESSAGES/pam_winbind.mo +/usr/share/locale/fr/LC_MESSAGES/pam_winbind.mo +/usr/share/locale/hu/LC_MESSAGES/pam_winbind.mo +/usr/share/locale/it/LC_MESSAGES/pam_winbind.mo +/usr/share/locale/ja/LC_MESSAGES/pam_winbind.mo +/usr/share/locale/ko/LC_MESSAGES/pam_winbind.mo +/usr/share/locale/nb/LC_MESSAGES/pam_winbind.mo +/usr/share/locale/nl/LC_MESSAGES/pam_winbind.mo +/usr/share/locale/pl/LC_MESSAGES/pam_winbind.mo +/usr/share/locale/pt_BR/LC_MESSAGES/pam_winbind.mo +/usr/share/locale/ru/LC_MESSAGES/pam_winbind.mo +/usr/share/locale/sv/LC_MESSAGES/pam_winbind.mo +/usr/share/locale/zh_CN/LC_MESSAGES/pam_winbind.mo +/usr/share/locale/zh_TW/LC_MESSAGES/pam_winbind.mo %{_includedir}/libsmbclient.h %{_libarchdir}/libsmbclient.* |