[bibutils] import (#861922)
Jens Petersen
petersen at fedoraproject.org
Fri Oct 19 07:16:00 UTC 2012
commit 90d4652d0d3762816a1e3e40780aadd4dc020248
Author: Jens Petersen <petersen at redhat.com>
Date: Fri Oct 19 16:15:53 2012 +0900
import (#861922)
.gitignore | 1 +
bibutils-bin-cflags.patch | 11 ++++
bibutils-fix-docbook-tag.patch | 12 +++++
bibutils-lib-symlink.patch | 14 +++++
bibutils.spec | 106 ++++++++++++++++++++++++++++++++++++++++
sources | 1 +
6 files changed, 145 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..64e7bff 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/bibutils_4.15_src.tgz
diff --git a/bibutils-bin-cflags.patch b/bibutils-bin-cflags.patch
new file mode 100644
index 0000000..24e4ef9
--- /dev/null
+++ b/bibutils-bin-cflags.patch
@@ -0,0 +1,11 @@
+diff -u bibutils_4.15/bin/Makefile.dynamic\~ bibutils_4.15/bin/Makefile.dynamic
+--- bibutils_4.15/bin/Makefile.dynamic~ 2012-10-01 19:18:23.970736534 +0900
++++ bibutils_4.15/bin/Makefile.dynamic 2012-10-01 19:23:09.782351650 +0900
+@@ -4,7 +4,6 @@
+ # dynamic linkage version
+ #
+
+-CFLAGS = -I ../lib
+ LDFLAGS = -L ../lib
+ LDLIBS = -lbibutils
+
diff --git a/bibutils-fix-docbook-tag.patch b/bibutils-fix-docbook-tag.patch
new file mode 100644
index 0000000..4df613f
--- /dev/null
+++ b/bibutils-fix-docbook-tag.patch
@@ -0,0 +1,12 @@
+diff -u bibutils_4.15/bibutils.dbk\~ bibutils_4.15/bibutils.dbk
+--- bibutils_4.15/bibutils.dbk~ 2012-09-27 09:12:03.000000000 +0900
++++ bibutils_4.15/bibutils.dbk 2012-10-02 15:25:55.227180480 +0900
+@@ -293,7 +293,7 @@
+ <emphasis role="bold">biblatex2xml</emphasis> converts a biblatex
+ (not to be confused with bibtex) formatted reference file to an
+ MODS XML-intermediate bibliography file.
+- </param>
++ </para>
+ <programlisting>biblatex2xml biblatex_file.bib > outputfile.xml</programlisting>
+ </refsect2>
+ <refsect2 id="copac2xml" xreflabel="copac2xml">
diff --git a/bibutils-lib-symlink.patch b/bibutils-lib-symlink.patch
new file mode 100644
index 0000000..b4f22b3
--- /dev/null
+++ b/bibutils-lib-symlink.patch
@@ -0,0 +1,14 @@
+diff -u bibutils_4.15/lib/Makefile.dynamic\~ bibutils_4.15/lib/Makefile.dynamic
+--- bibutils_4.15/lib/Makefile.dynamic~ 2012-09-27 09:12:03.000000000 +0900
++++ bibutils_4.15/lib/Makefile.dynamic 2012-10-01 18:30:04.659484494 +0900
+@@ -45,8 +45,8 @@
+ echo INSTALLING LIBRARIES TO $(LIBINSTALLDIR)
+ mkdir -p $(LIBINSTALLDIR)
+ cp $(SOFULL) $(LIBINSTALLDIR)
+- ln -sf $(LIBINSTALLDIR)/$(SOFULL) $(LIBINSTALLDIR)/libbibutils.so
+- ln -sf $(LIBINSTALLDIR)/$(SOFULL) $(LIBINSTALLDIR)/$(SONAME)
++ ln -sf $(SOFULL) $(LIBINSTALLDIR)/libbibutils.so
++ ln -sf $(SOFULL) $(LIBINSTALLDIR)/$(SONAME)
+
+ clean:
+ /bin/rm -f *.o core
diff --git a/bibutils.spec b/bibutils.spec
new file mode 100644
index 0000000..52f1fd0
--- /dev/null
+++ b/bibutils.spec
@@ -0,0 +1,106 @@
+Name: bibutils
+Version: 4.15
+Release: 4%{?dist}
+Summary: Bibliography conversion tools
+# manpage is GPLv2 though source files only state GPL
+License: GPL+ and GPLv2
+URL: http://sourceforge.net/p/bibutils/home/Bibutils/
+Source0: http://downloads.sourceforge.net/%{name}/%{name}_%{version}_src.tgz
+
+BuildRequires: tcsh
+BuildRequires: libxslt
+BuildRequires: docbook-style-xsl
+Patch1: bibutils-lib-symlink.patch
+Patch2: bibutils-bin-cflags.patch
+Patch3: bibutils-fix-docbook-tag.patch
+
+%description
+The bibutils package converts between various bibliography
+formats using a common MODS-format XML intermediate.
+
+
+%package libs
+Summary: Bibutils library
+License: GPL+
+
+%description libs
+Bibutils library.
+
+
+%package devel
+Summary: Development files for bibutils
+Requires: %{name}-libs%{?_isa} = %{version}-%{release}
+License: GPL+
+
+%description devel
+Bibutils development files.
+
+%prep
+%setup -q -n %{name}_%{version}
+%patch1 -p1 -b .orig
+%patch2 -p1 -b .orig
+%patch3 -p1 -b .orig
+
+
+%build
+./configure --install-dir %{buildroot}%{_bindir} --install-lib %{buildroot}%{_libdir} --dynamic
+export CFLAGS="-I../lib %{optflags}"
+make -C lib
+make -C bin
+
+xsltproc -o bibutils.1 --nonet %{_datadir}/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl bibutils.dbk
+
+
+%install
+mkdir -p %{buildroot}%{_bindir} %{buildroot}%{_libdir}
+make install
+
+mkdir -p %{buildroot}%{_includedir}/%{name}
+cp -p lib/*.h %{buildroot}%{_includedir}/%{name}
+mkdir -p %{buildroot}%{_libdir}/pkgconfig
+cp -p lib/%{name}.pc %{buildroot}%{_libdir}/pkgconfig
+sed -i -e 's!\\!!g' -e 's!libdir=${prefix}/lib!libdir=%{_libdir}!' -e 's!${includedir}!${includedir}/%{name}!' %{buildroot}%{_libdir}/pkgconfig/%{name}.pc
+mkdir -p %{buildroot}%{_mandir}/man1
+cp -p %{name}.1 %{buildroot}%{_mandir}/man1
+
+for i in $(cd %{buildroot}%{_bindir}; ls *); do
+ ln -s bibutils.1 %{buildroot}%{_mandir}/man1/$i.1
+done
+
+
+%post libs -p /sbin/ldconfig
+
+%postun libs -p /sbin/ldconfig
+
+
+%files
+%doc Copying ChangeLog
+%{_bindir}/*
+%{_mandir}/man1/*.1*
+
+
+%files libs
+%{_libdir}/libbibutils.so.*
+
+
+%files devel
+%{_includedir}/%{name}
+%{_libdir}/libbibutils.so
+%{_libdir}/pkgconfig/%{name}.pc
+
+
+%changelog
+* Thu Oct 4 2012 Jens Petersen <petersen at redhat.com> - 4.15-4
+- tcsh provides csh so no need to patch configure for tcsh
+- change license to GPL+ for the code and GPLv2 for the manpage
+
+* Tue Oct 2 2012 Jens Petersen <petersen at redhat.com> - 4.15-3
+- improve summary and description (#861922)
+- build and install docbook manpage which is GPLv2+ (#861922)
+- use _isa (#861922)
+
+* Tue Oct 2 2012 Jens Petersen <petersen at redhat.com> - 4.15-2
+- BR tcsh
+
+* Mon Oct 1 2012 Jens Petersen <petersen at redhat.com> - 4.15-1
+- initial packaging
diff --git a/sources b/sources
index e69de29..208a758 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+b13a26ae79aabf5fc0007d1bf3a4eeb3 bibutils_4.15_src.tgz
More information about the scm-commits
mailing list