]> git.pld-linux.org Git - packages/pwdb.git/commitdiff
- adjusted pld patch to build with libtirpc+libnsl 1.x; release 3 auto/th/pwdb-0.62-3
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 30 Aug 2020 08:52:51 +0000 (10:52 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 30 Aug 2020 08:52:51 +0000 (10:52 +0200)
pwdb-pld.patch
pwdb.spec

index b4c5c24d77645976b28cfcb005993c85bf035a33..e6c52dca59c883776882a14088a66c4be9a84558 100644 (file)
@@ -1,6 +1,6 @@
 --- /dev/null  Tue May  5 22:32:27 1998
 +++ pwdb-0.55/defs/pld.defs    Sat Jan 23 12:44:53 1999
-@@ -0,0 +1,22 @@
+@@ -0,0 +1,23 @@
 +#
 +# Standard defines file for PLD Linux
 +
 +CONFIGED=$(PPFIX)/etc
 +LIBDIR=$(PREFIX)/lib
 +SECUREDIR=$(LIBDIR)/security
++NIS_LIBS=-lnsl -ltirpc
+--- pwdb-0.62/libpwdb/Makefile.orig    1999-04-10 11:31:20.000000000 +0200
++++ pwdb-0.62/libpwdb/Makefile 2020-08-30 10:45:36.598419348 +0200
+@@ -50,7 +50,7 @@
+ $(LIBDYNAME): $(LIBOBJ)
+-      $(LD) -soname $(LIBSONAME) -x -shared -o $(LIBFILENAME) $(LIBOBJ) -lcrypt -lnsl -lc
++      $(LD) -soname $(LIBSONAME) -x -shared -o $(LIBFILENAME) $(LIBOBJ) $(NIS_LIBS) -lcrypt -lc
+       @ln -sf $(LIBFILENAME) $@
+ $(LIBSTATIC): $(LIBOBJ)
+--- pwdb-0.62/Makefile.orig    2002-02-01 02:58:29.000000000 +0100
++++ pwdb-0.62/Makefile 2020-08-30 10:50:57.880012149 +0200
+@@ -96,6 +96,7 @@
+ export AR                     # build a static library
+ export RANLIB                 # reorder a static library
+ export LOADLIBES              # libraries needed for application linking
++export NIS_LIBS
+ #
+ # where to install things
+--- pwdb-0.62/examples/Makefile.orig   1998-10-07 01:57:04.000000000 +0200
++++ pwdb-0.62/examples/Makefile        2020-08-30 10:51:36.819801194 +0200
+@@ -15,19 +15,19 @@
+ all:  ${PROGS} ../libpwdb/libpwdb.a
+ posix: posix.o ../libpwdb/libpwdb.a
+-      $(CC) -o $@ $< ../libpwdb/libpwdb.a -lnsl
++      $(CC) -o $@ $< ../libpwdb/libpwdb.a $(NIS_LIBS)
+ tpwdb: tpwdb.o ../libpwdb/libpwdb.a
+-      ${CC} -g -o $@ $< ../libpwdb/libpwdb.a -lnsl
++      ${CC} -g -o $@ $< ../libpwdb/libpwdb.a $(NIS_LIBS)
+ radtest: radtest.o ../libpwdb/libpwdb.a
+-      ${CC} -g -o $@ $< ../libpwdb/libpwdb.a -lnsl
++      ${CC} -g -o $@ $< ../libpwdb/libpwdb.a $(NIS_LIBS)
+ gentest: gentest.o ../libpwdb/libpwdb.a
+-      ${CC} -g -o $@ $< ../libpwdb/libpwdb.a -lnsl
++      ${CC} -g -o $@ $< ../libpwdb/libpwdb.a $(NIS_LIBS)
+ grouptest: grouptest.o ../libpwdb/libpwdb.a 
+-      ${CC} -g -o $@ $< ../libpwdb/libpwdb.a -lnsl
++      ${CC} -g -o $@ $< ../libpwdb/libpwdb.a $(NIS_LIBS)
+ clean:
+       rm -f ${PROGS} *.o *~
index 579853b023b8a10f62f47ac4299da1fa7d3cddb6..88b4ca2e1e7313805761605951b470d0cb181664 100644 (file)
--- a/pwdb.spec
+++ b/pwdb.spec
@@ -5,12 +5,15 @@ Summary(pl.UTF-8):    Biblioteka danych o użytkownikach
 Summary(tr.UTF-8):     Parola veri tabanı arşivi
 Name:          pwdb
 Version:       0.62
-Release:       2
+Release:       3
 License:       BSD or GPL
 Group:         Base
 Source0:       http://pkgs.fedoraproject.org/repo/pkgs/compat-pwdb/pwdb-0.62.tar.gz/1a1fd0312040ef37aa741d09465774b4/%{name}-%{version}.tar.gz
 # Source0-md5: 1a1fd0312040ef37aa741d09465774b4
 Patch0:                %{name}-pld.patch
+BuildRequires: libnsl-devel
+BuildRequires: libtirpc-devel
+BuildRequires: pkgconfig
 BuildRequires: sgml-tools
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -80,7 +83,7 @@ ln -sf defs/pld.defs default.defs
 
 %{__make} \
        CC="%{__cc}" \
-       OPTIMIZE="%{rpmcflags}"
+       OPTIMIZE="%{rpmcflags} $(pkg-config --cflags libtirpc libnsl)"
 
 %{__make} -C doc
 
@@ -94,7 +97,7 @@ install -d $RPM_BUILD_ROOT{%{_sysconfdir},/%{_lib},%{_includedir}/pwdb,%{_libdir
 
 cp -p conf/pwdb.conf $RPM_BUILD_ROOT%{_sysconfdir}/pwdb.conf
 
-mv -f $RPM_BUILD_ROOT/%{_lib}/libpwdb.a $RPM_BUILD_ROOT%{_libdir}
+%{__mv} $RPM_BUILD_ROOT/%{_lib}/libpwdb.a $RPM_BUILD_ROOT%{_libdir}
 
 %{__rm} $RPM_BUILD_ROOT/%{_lib}/libpwdb.so
 ln -sf /%{_lib}/libpwdb.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libpwdb.so
This page took 0.144243 seconds and 4 git commands to generate.