[913] | 1 | --- /home/scripts-build/rpmbuild/SPECS/nss-ldapd.spec 2008-08-13 12:48:42.000000000 -0400 |
---|
| 2 | +++ ./nss-ldapd.spec 2008-12-31 19:30:37.000000000 -0500 |
---|
| 3 | @@ -11,16 +11,17 @@ |
---|
[912] | 4 | # norootforbuild |
---|
| 5 | |
---|
| 6 | Name: nss-ldapd |
---|
| 7 | -BuildRequires: db-devel krb5-devel openldap2-devel |
---|
| 8 | +BuildRequires: db4-devel krb5-devel openldap-devel autoconf automake libtool |
---|
[913] | 9 | +Conflicts: nss_ldap |
---|
[912] | 10 | License: LGPL v2.1 or later |
---|
| 11 | Group: Productivity/Networking/LDAP/Clients |
---|
| 12 | Autoreqprov: on |
---|
| 13 | Version: 0.6.4 |
---|
| 14 | -Release: 2.4 |
---|
[950] | 15 | +Release: 3.1.scripts.%{scriptsversion} |
---|
[912] | 16 | Summary: NSS LDAP Daemon and Module |
---|
| 17 | URL: http://ch.tudelft.nl/~arthur/nss-ldapd/ |
---|
| 18 | Source: nss-ldapd-%{version}.tar.bz2 |
---|
| 19 | -Source1: rc.nslcd |
---|
| 20 | +Patch1000: rc.nslcd.patch |
---|
| 21 | BuildRoot: %{_tmppath}/%{name}-%{version}-build |
---|
| 22 | |
---|
| 23 | %description |
---|
[913] | 24 | @@ -34,11 +35,9 @@ |
---|
[912] | 25 | West Consulting <info@west.nl> |
---|
| 26 | Arthur de Jong <arthur@ch.tudelft.nl> |
---|
| 27 | |
---|
| 28 | -%debug_package |
---|
| 29 | - |
---|
| 30 | %prep |
---|
| 31 | %setup -q |
---|
| 32 | -cp -v %{S:1} . |
---|
| 33 | +%patch1000 -p0 -b .rc |
---|
| 34 | |
---|
| 35 | %build |
---|
| 36 | %{?suse_update_config:%{suse_update_config -f}} |
---|
[913] | 37 | @@ -58,7 +57,6 @@ |
---|
[912] | 38 | mkdir -p $RPM_BUILD_ROOT/etc/init.d/ |
---|
| 39 | mkdir -p $RPM_BUILD_ROOT/usr/sbin/ |
---|
| 40 | install -m 755 rc.nslcd $RPM_BUILD_ROOT/etc/init.d/nslcd |
---|
| 41 | -ln -sf ../../etc/init.d/nslcd $RPM_BUILD_ROOT/usr/sbin/rcnslcd |
---|
| 42 | make DESTDIR=$RPM_BUILD_ROOT install |
---|
| 43 | mkdir -p $RPM_BUILD_ROOT/var/run/nslcd |
---|
| 44 | install -m 644 man/nss-ldapd.conf.5 $RPM_BUILD_ROOT/usr/share/man/man5 |
---|
[913] | 45 | @@ -70,13 +68,8 @@ |
---|
| 46 | %post |
---|
| 47 | /sbin/ldconfig |
---|
| 48 | |
---|
| 49 | -%preun |
---|
| 50 | -%stop_on_removal nslcd |
---|
| 51 | - |
---|
| 52 | %postun |
---|
| 53 | /sbin/ldconfig |
---|
| 54 | -%restart_on_update nslcd |
---|
| 55 | -%insserv_cleanup |
---|
| 56 | |
---|
| 57 | %files |
---|
| 58 | %defattr(-,root,root) |
---|
| 59 | @@ -86,11 +79,14 @@ |
---|
[912] | 60 | %doc %{_mandir}/man8/* |
---|
| 61 | %config(noreplace) /etc/nss-ldapd.conf |
---|
| 62 | %config /etc/init.d/nslcd |
---|
| 63 | -/usr/sbin/rcnslcd |
---|
| 64 | %dir /var/run/nslcd |
---|
| 65 | /usr/sbin/nslcd |
---|
| 66 | |
---|
| 67 | %changelog |
---|
| 68 | +* Wed Dec 31 2008 <quentin@mit.edu> - 0.6.4-3.0 |
---|
| 69 | +- add init script for Fedora |
---|
| 70 | +* Wed Dec 31 2008 <quentin@mit.edu> - 0.6.4-2.4 |
---|
| 71 | +- port from openSUSE to Fedora |
---|
| 72 | * Wed Aug 6 2008 rhafer@suse.de |
---|
| 73 | - rename init script to nslcd to match the name of the daemon |
---|
| 74 | binary |
---|