]> git.pld-linux.org Git - packages/poldek.git/commitdiff
- added am patch (fixes build with automake 1.12)
authorJakub Bogusz <qboosh@pld-linux.org>
Fri, 15 Jun 2012 17:23:26 +0000 (17:23 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- explicit autotools calls instead of autoreconf, explicit files in system dirs
- support rpmcppflags
- use __rm macro where appropriate, removed one obsolete rm command
- package pc file for tndb

Changed files:
    poldek-am.patch -> 1.1
    poldek.spec -> 1.449

poldek-am.patch [new file with mode: 0644]
poldek.spec

diff --git a/poldek-am.patch b/poldek-am.patch
new file mode 100644 (file)
index 0000000..a5408cd
--- /dev/null
@@ -0,0 +1,50 @@
+--- poldek-0.30/conf/Makefile.am.orig  2012-03-20 21:41:46.000000000 +0100
++++ poldek-0.30/conf/Makefile.am       2012-06-15 18:19:28.195427542 +0200
+@@ -25,7 +25,7 @@
+       $(SHELL) $(top_srcdir)/doc/conf-xml2.sh conf $(top_srcdir)/doc/poldek.conf.xml poldek
+ install-data-local: $(GENCONFIGS)
+-       $(mkdir_p) $(DESTDIR)$(sysconfdir)/$(PACKAGE)/repos.d
++       $(MKDIR_P) $(DESTDIR)$(sysconfdir)/$(PACKAGE)/repos.d
+        for a in $(CONFIGS); do \
+               $(INSTALL_DATA) $(srcdir)/$$a $(DESTDIR)$(sysconfdir)/$(PACKAGE); \
+        done
+--- poldek-0.30/doc/Makefile.am.orig   2012-03-20 21:41:46.000000000 +0100
++++ poldek-0.30/doc/Makefile.am        2012-06-15 18:18:42.875429444 +0200
+@@ -69,7 +69,7 @@
+       xmlto --skip-validation -m $(srcdir)/NEWS.xsl -m $(srcdir)/manual-web.xsl xhtml-nochunks NEWS.docb.tmp && mv NEWS.docb.html $@
+ $(MANUAL_XHTMLDIR): $(abs_builddir)/manual.xml.xhtml.tmp
+-      $(mkdir_p) $(MANUAL_XHTMLDIR)
++      $(MKDIR_P) $(MANUAL_XHTMLDIR)
+       rm -f $(MANUAL_XHTMLDIR)/*.*
+       xmlto --skip-validation -m $(srcdir)/manual.xsl -o $(MANUAL_XHTMLDIR) xhtml $<
+ # remove empty indexterm's (I'm docbook novice)
+@@ -78,7 +78,7 @@
+ # as above but with manual-web.xsl
+ manual-web: $(abs_builddir)/manual.xml.xhtml.tmp
+-      $(mkdir_p) manual-web
++      $(MKDIR_P) manual-web
+       rm -f manual-web/*.*
+       xmlto --skip-validation -m $(srcdir)/manual.xsl -m $(srcdir)/manual-web.xsl -o manual-web xhtml $<
+ # remove empty indexterm's (I'm docbook novice)
+@@ -108,7 +108,7 @@
+       -rm -f core *.o *.bak *~ *% *\# TAGS gmon.out \#* *\# poldek.html *.tmp
+ install-exec-hook:
+-      $(mkdir_p) "$(DESTDIR)$(infodir)"
++      $(MKDIR_P) "$(DESTDIR)$(infodir)"
+       $(INSTALL_DATA) $(srcdir)/poldek.info $(DESTDIR)$(infodir)
+ uninstall-hook:
+--- poldek-0.30/configure.ac.orig      2012-03-20 21:41:46.000000000 +0100
++++ poldek-0.30/configure.ac   2012-06-15 18:19:58.392092942 +0200
+@@ -53,6 +53,7 @@
+ AC_C_INLINE
+ AC_PROG_INSTALL
+ AC_PROG_LN_S
++AC_PROG_MKDIR_P
+ AC_CHECK_PROG(POD2MAN, pod2man, pod2man)
+ AM_GNU_GETTEXT([external])
+ AM_GNU_GETTEXT_VERSION(0.11.5)
index a7e2e3a380f71d3d58599b5763617edc8b3013cb..a757453d25732d2447b67e7059ad5fa0fe383940 100644 (file)
@@ -45,6 +45,7 @@ Patch1:               %{name}-config.patch
 Patch2:                %{name}-size-type.patch
 Patch3:                %{name}-Os-fail-workaround.patch
 Patch4:                %{name}-git.patch
+Patch5:                %{name}-am.patch
 URL:           http://poldek.pld-linux.org/
 BuildRequires: autoconf
 BuildRequires: automake
@@ -207,8 +208,9 @@ Moduły języka Python dla poldka.
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
+%patch5 -p1
 
-rm -f m4/libtool.m4 m4/lt*.m4
+%{__rm} m4/libtool.m4 m4/lt*.m4
 
 # cleanup backups after patching
 find . '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
@@ -222,13 +224,19 @@ chmod u+x ./configure ./doc/conf-xml2.sh
 %{__automake}
 cd tndb
 %{__libtoolize}
-autoreconf -i
+%{__aclocal}
+%{__autoheader}
+%{__autoconf}
+%{__automake}
 cd ../trurlib
 %{__libtoolize}
-autoreconf -i
+%{__aclocal}
+%{__autoheader}
+%{__autoconf}
+%{__automake}
 cd ..
 
-CPPFLAGS="-std=gnu99"
+CPPFLAGS="%{rpmcppflags} -std=gnu99"
 %configure \
        %{?with_static:--enable-static --disable-shared} \
        %{!?with_imode:--disable-imode} \
@@ -250,7 +258,7 @@ install -d $RPM_BUILD_ROOT{%{_sysconfdir}/%{name}/repos.d,/var/cache/%{name}}
        libdir=%{py_sitedir}
 %endif
 
-%{?with_static:rm -f $RPM_BUILD_ROOT%{_bindir}/rpmvercmp}
+%{?with_static:%{__rm} $RPM_BUILD_ROOT%{_bindir}/rpmvercmp}
 
 %ifarch i486 i686 ppc sparc alpha athlon
        %define         _ftp_arch       %{_target_cpu}
@@ -329,7 +337,7 @@ cp -p %{SOURCE7} $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
 %endif
 
 # sources we don't package
-rm -f $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/{rh,pld,fedora,centos}-source.conf
+%{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/{rh,fedora,centos}-source.conf
 # include them in %doc
 rm -rf configs
 cp -a conf configs
@@ -337,7 +345,7 @@ rm -f configs/Makefile*
 
 %if %{with python}
 %py_postclean
-rm -f $RPM_BUILD_ROOT%{py_sitedir}/_poldekmod.la
+%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/_poldekmod.la
 %endif
 
 %find_lang %{name}
@@ -445,10 +453,12 @@ fi
 %dir %{_sysconfdir}/%{name}/repos.d
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*.conf
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/repos.d/*.conf
-%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_bindir}/ipoldek
+%attr(755,root,root) %{_bindir}/poldek
+%attr(755,root,root) %{_bindir}/rpmvercmp
 %dir %{_libdir}/%{name}
 %attr(755,root,root) %{_libdir}/%{name}/*
-%{_mandir}/man1/%{name}*
+%{_mandir}/man1/%{name}*.1*
 %lang(pl) %{_mandir}/pl/man1/%{name}*
 %{_infodir}/poldek.info*
 %if %{with imode}
@@ -474,13 +484,28 @@ fi
 
 %files devel
 %defattr(644,root,root,755)
-%{!?with_static:%attr(755,root,root) %{_libdir}/lib*.so}
-%{_libdir}/lib*.la
-%{_includedir}/*
+%if %{without static}
+%attr(755,root,root) %{_libdir}/libpoclidek.so
+%attr(755,root,root) %{_libdir}/libpoldek.so
+%attr(755,root,root) %{_libdir}/libtndb.so
+%attr(755,root,root) %{_libdir}/libtrurl.so
+%attr(755,root,root) %{_libdir}/libvfile.so
+%endif
+%{_libdir}/libpoclidek.la
+%{_libdir}/libpoldek.la
+%{_libdir}/libtndb.la
+%{_libdir}/libtrurl.la
+%{_libdir}/libvfile.la
+%{_includedir}/poldek
+%{_includedir}/tndb
+%{_includedir}/trurl
+%{_includedir}/vfile
+%{_pkgconfigdir}/tndb.pc
 
 %files static
 %defattr(644,root,root,755)
-%{_libdir}/lib*.a
+%{_libdir}/libtndb.a
+%{_libdir}/libtrurl.a
 
 %if %{with python}
 %files -n python-poldek
This page took 0.043736 seconds and 4 git commands to generate.