3 %bcond_without tests # unit tests
7 %include /usr/lib/rpm/macros.perl
8 Summary: Text::BibTeX - Perl library for reading, parsing and processing BibTeX files
9 Summary(pl.UTF-8): Text::BibTeX - biblioteka Perla do odczytu, analizy i przetwarzania plików BibTeXa
10 Name: perl-Text-BibTeX
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/Text/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 361aad5cf400764e35d1ade3b609bb60
18 Patch0: %{name}-mansect.patch
19 Patch1: %{name}-libdir.patch
20 URL: http://www.gerg.ca/software/btOOL/
21 BuildRequires: perl-Capture-Tiny >= 0.06
22 BuildRequires: perl-Config-AutoConf >= 0.16
23 BuildRequires: perl-ExtUtils-CBuilder >= 0.27
24 BuildRequires: perl-ExtUtils-LibBuilder >= 0.02
25 BuildRequires: perl-Module-Build >= 0.3603
26 BuildRequires: perl-devel >= 1:5.8.0
27 BuildRequires: rpm-perlprov >= 4.1-13
29 BuildRequires: perl-Scalar-List-Utils >= 1.42
30 BuildRequires: perl-Unicode-Normalize
32 Requires: btparse = %{version}-%{release}
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 Text::BibTeX is a Perl library for reading, parsing, and processing
37 BibTeX files. It is the Perl half of btOOL, a pair of libraries for
38 dealing with BibTeX data.
40 %description -l pl.UTF-8
41 Text::BibTeX to biblioteka Perla do odczytu, analizy i przetwarzania
42 plików BibTeXa. Jest to perlowa połowa projektu btOOL - pary bibliotek
43 do obsługi danych BibTeXa.
46 Summary: C library to parse BibTeX files
47 Summary(pl.UTF-8): Biblioteka C do analizy plików BibTeXa
50 %description -n btparse
51 btparse is the C component of btOOL, a pair of libraries for parsing
52 and processing BibTeX files. Its primary use is as the back-end to
53 Text::BibTeX library for Perl (the other half of btOOL), but there's
54 nothing to prevent you from writing C programs using btparse - or from
55 writing extensions to other high-level languages using btparse as a
58 %description -n btparse -l pl.UTF-8
59 btparse to część C narzędzia btOOL - pary bibliotek do analizy i
60 przetwarzania plików BibTeX. Głównym zastosowaniem jest backend dla
61 biblioteki Text::BibTeX dla Perla (drugiej połówki narzędzia btOOL),
62 ale nic nie stoi na przeszkodzie pisaniu programów w C
63 wykorzystujących btparse albo rozszerzeń dla innych wysokopoziomowych
64 języków z wykorzystaniem btparse jako backendu.
66 %package -n btparse-devel
67 Summary: Header files for btparse library
68 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki btparse
69 Group: Development/Libraries
70 Requires: btparse = %{version}-%{release}
71 Obsoletes: btparse-static < %{version}
73 %description -n btparse-devel
74 Header files for btparse library.
76 %description -n btparse-devel -l pl.UTF-8
77 Pliki nagłówkowe biblioteki btparse.
80 %setup -q -n %{pdir}-%{pnam}-%{version}
87 --config cc="%{__cc}" \
88 --config optimize="%{rpmcflags}" \
92 %{?with_tests:./Build test}
95 rm -rf $RPM_BUILD_ROOT
98 destdir=$RPM_BUILD_ROOT
100 %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Text/BibTeX/BibTeX.bs
103 rm -rf $RPM_BUILD_ROOT
105 %post -n btparse -p /sbin/ldconfig
106 %postun -n btparse -p /sbin/ldconfig
109 %defattr(644,root,root,755)
111 %{perl_vendorarch}/Text/BibTeX.pm
112 %{perl_vendorarch}/Text/BibTeX
113 %dir %{perl_vendorarch}/auto/Text/BibTeX
114 %attr(755,root,root) %{perl_vendorarch}/auto/Text/BibTeX/BibTeX.so
115 %{_mandir}/man3/Text::BibTeX.3pm*
116 %{_mandir}/man3/Text::BibTeX::*.3pm*
119 %defattr(644,root,root,755)
120 %attr(755,root,root) %{_bindir}/biblex
121 %attr(755,root,root) %{_bindir}/bibparse
122 %attr(755,root,root) %{_bindir}/dumpnames
123 %attr(755,root,root) %{_libdir}/libbtparse.so
125 %files -n btparse-devel
126 %defattr(644,root,root,755)
127 %{_includedir}/btparse.h
128 %{_mandir}/man3/bt_*.3*
129 %{_mandir}/man3/btparse.3*
130 %{_mandir}/man3/btool_faq.3*