Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Stone <michael@laptop.org>2008-09-30 22:26:52 (GMT)
committer Michael Stone <michael@laptop.org>2008-09-30 22:26:52 (GMT)
commitbf980ae4b5c5d349dbd1370b05492854c6ec2c33 (patch)
tree6459731307f926318cf5074e81aab4954dbb99d8
parentf6b9d22706d465dcdb8d2cbd4d4d1e6c9b4359e0 (diff)
rpmlint clean.
-rw-r--r--Makefile.build4
-rw-r--r--nss-rainbow.spec.in8
2 files changed, 9 insertions, 3 deletions
diff --git a/Makefile.build b/Makefile.build
index c6ee323..1976678 100644
--- a/Makefile.build
+++ b/Makefile.build
@@ -22,13 +22,13 @@ clean:
rm -f $(BINARIES) $(RAINBOW_OBJS) $(UIDS_OBJS) $(GIDS_OBJS) $(TEST_NAT_OBJS)
install:
- install -D -m 755 libnss_rainbow.so.2 $(DESTDIR)/usr/lib
+ install -D -m 0755 libnss_rainbow.so.2 $(DESTDIR)/usr/lib/libnss_rainbow.so.2
# objects
%.o: %.c
- $(CC) -g -std=gnu99 $(WARNFLAGS) $(CFLAGS) -c -o $@ $<
+ $(CC) -g -std=gnu99 -fPIC $(WARNFLAGS) $(CFLAGS) -c -o $@ $<
# linked binaries
diff --git a/nss-rainbow.spec.in b/nss-rainbow.spec.in
index 2eb162a..8770931 100644
--- a/nss-rainbow.spec.in
+++ b/nss-rainbow.spec.in
@@ -31,6 +31,12 @@ rm -rf $RPM_BUILD_ROOT
make -f Makefile.build install DESTDIR=$RPM_BUILD_ROOT
+%post -p /sbin/ldconfig
+
+
+%postun -p /sbin/ldconfig
+
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -38,7 +44,7 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc COPYING README AUTHORS
-%{_libdir}/*
+%{_libdir}/libnss_rainbow.so.2
%changelog