[packages/perl-Text-BibTeX] - new; now replaced standalone btparse library

qboosh qboosh at pld-linux.org
Thu May 30 20:13:44 CEST 2019


commit 2df546c300eb92a93b10543b4608bbcaeef3e937
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu May 30 20:14:26 2019 +0200

    - new; now replaced standalone btparse library

 perl-Text-BibTeX-mansect.patch |  26 +++++++++
 perl-Text-BibTeX.spec          | 127 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 153 insertions(+)
---
diff --git a/perl-Text-BibTeX.spec b/perl-Text-BibTeX.spec
new file mode 100644
index 0000000..69a9fe6
--- /dev/null
+++ b/perl-Text-BibTeX.spec
@@ -0,0 +1,127 @@
+#
+# Conditional build:
+%bcond_without	tests	# unit tests
+#
+%define		pdir	Text
+%define		pnam	BibTeX
+%include	/usr/lib/rpm/macros.perl
+Summary:	Text::BibTeX - Perl library for reading, parsing and processing BibTeX files
+Summary(pl.UTF-8):	Text::BibTeX - biblioteka Perla do odczytu, analizy i przetwarzania plików BibTeXa
+Name:		perl-Text-BibTeX
+Version:	0.88
+Release:	1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/Text/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	361aad5cf400764e35d1ade3b609bb60
+Patch0:		%{name}-mansect.patch
+URL:		http://www.gerg.ca/software/btOOL/
+BuildRequires:	perl-Capture-Tiny >= 0.06
+BuildRequires:	perl-Config-AutoConf >= 0.16
+BuildRequires:	perl-ExtUtils-CBuilder >= 0.27
+BuildRequires:	perl-ExtUtils-LibBuilder >= 0.02
+BuildRequires:	perl-Module-Build >= 0.3603
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl-Scalar-List-Utils >= 1.42
+BuildRequires:	perl-Unicode-Normalize
+%endif
+Requires:	btparse = %{version}-%{release}
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Text::BibTeX is a Perl library for reading, parsing, and processing
+BibTeX files. It is the Perl half of btOOL, a pair of libraries for
+dealing with BibTeX data.
+
+%description -l pl.UTF-8
+Text::BibTeX to biblioteka Perla do odczytu, analizy i przetwarzania
+plików BibTeXa. Jest to perlowa połowa projektu btOOL - pary bibliotek
+do obsługi danych BibTeXa.
+
+%package -n btparse
+Summary:	C library to parse BibTeX files
+Summary(pl.UTF-8):	Biblioteka C do analizy plików BibTeXa
+Group:		Libraries
+
+%description -n btparse
+btparse is the C component of btOOL, a pair of libraries for parsing
+and processing BibTeX files. Its primary use is as the back-end to
+Text::BibTeX library for Perl (the other half of btOOL), but there's
+nothing to prevent you from writing C programs using btparse - or from
+writing extensions to other high-level languages using btparse as a
+back-end.
+
+%description -n btparse -l pl.UTF-8
+btparse to część C narzędzia btOOL - pary bibliotek do analizy i
+przetwarzania plików BibTeX. Głównym zastosowaniem jest backend dla
+biblioteki Text::BibTeX dla Perla (drugiej połówki narzędzia btOOL),
+ale nic nie stoi na przeszkodzie pisaniu programów w C
+wykorzystujących btparse albo rozszerzeń dla innych wysokopoziomowych
+języków z wykorzystaniem btparse jako backendu.
+
+%package -n btparse-devel
+Summary:	Header files for btparse library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki btparse
+Group:		Development/Libraries
+Requires:	btparse = %{version}-%{release}
+Obsoletes:	btparse-static < %{version}
+
+%description -n btparse-devel
+Header files for btparse library.
+
+%description -n btparse-devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki btparse.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+%patch0 -p1
+
+%build
+%{__perl} Build.PL \
+	--config cc="%{__cc}" \
+	--config optimize="%{rpmcflags}" \
+	installdirs=vendor
+./Build
+
+%{?with_tests:./Build test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+./Build install \
+	destdir=$RPM_BUILD_ROOT
+
+%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Text/BibTeX/BibTeX.bs
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-n btparse -p /sbin/ldconfig
+%postun	-n btparse -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorarch}/Text/BibTeX.pm
+%{perl_vendorarch}/Text/BibTeX
+%dir %{perl_vendorarch}/auto/Text/BibTeX
+%attr(755,root,root) %{perl_vendorarch}/auto/Text/BibTeX/BibTeX.so
+%{_mandir}/man3/Text::BibTeX.3pm*
+%{_mandir}/man3/Text::BibTeX::*.3pm*
+
+%files -n btparse
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/biblex
+%attr(755,root,root) %{_bindir}/bibparse
+%attr(755,root,root) %{_bindir}/dumpnames
+%attr(755,root,root) %{_libdir}/libbtparse.so
+
+%files -n btparse-devel
+%defattr(644,root,root,755)
+%{_includedir}/btparse.h
+%{_mandir}/man3/bt_*.3*
+%{_mandir}/man3/btparse.3*
+%{_mandir}/man3/btool_faq.3*
diff --git a/perl-Text-BibTeX-mansect.patch b/perl-Text-BibTeX-mansect.patch
new file mode 100644
index 0000000..6311f0a
--- /dev/null
+++ b/perl-Text-BibTeX-mansect.patch
@@ -0,0 +1,26 @@
+--- Text-BibTeX-0.88/inc/MyBuilder.pm.orig	2019-04-29 17:02:41.000000000 +0200
++++ Text-BibTeX-0.88/inc/MyBuilder.pm	2019-05-29 21:34:25.982590575 +0200
+@@ -177,18 +177,18 @@
+     my $version = $self->notes('btparse_version');
+     for my $pod (@$pods) {
+         my $man = $pod;
+-        $man =~ s!.pod!.1!;
+-        $man =~ s!btparse/doc!blib/bindoc!;   ## FIXME - path
++        $man =~ s!.pod!.3!;
++        $man =~ s!btparse/doc!blib/libdoc!;   ## FIXME - path
+         next if $self->up_to_date($pod, $man);
+         ## FIXME
+-        `pod2man --section=1 --center="btparse" --release="btparse, version $version" $pod $man`;
++        `pod2man --section=3 --center="btparse" --release="btparse, version $version" $pod $man`;
+     }
+ 
+     my $pod = 'btool_faq.pod';
+-    my $man = catfile('blib','bindoc','btool_faq.1');
++    my $man = catfile('blib','libdoc','btool_faq.3');
+     unless ($self->up_to_date($pod, $man)) {
+         ## FIXME
+-        `pod2man --section=1 --center="btparse" --release="btparse, version $version" $pod $man`;
++        `pod2man --section=3 --center="btparse" --release="btparse, version $version" $pod $man`;
+     }
+ }
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Text-BibTeX.git/commitdiff/2df546c300eb92a93b10543b4608bbcaeef3e937



More information about the pld-cvs-commit mailing list