]> git.pld-linux.org Git - packages/perl-Text-BibTeX.git/blame - perl-Text-BibTeX.spec
- rebuild with perl 5.30.0
[packages/perl-Text-BibTeX.git] / perl-Text-BibTeX.spec
CommitLineData
2df546c3
JB
1#
2# Conditional build:
3%bcond_without tests # unit tests
4#
5%define pdir Text
6%define pnam BibTeX
7%include /usr/lib/rpm/macros.perl
8Summary: Text::BibTeX - Perl library for reading, parsing and processing BibTeX files
9Summary(pl.UTF-8): Text::BibTeX - biblioteka Perla do odczytu, analizy i przetwarzania plików BibTeXa
10Name: perl-Text-BibTeX
11Version: 0.88
776de1ad 12Release: 3
2df546c3
JB
13# same as perl
14License: GPL v1+ or Artistic
15Group: Development/Languages/Perl
16Source0: http://www.cpan.org/modules/by-module/Text/%{pdir}-%{pnam}-%{version}.tar.gz
17# Source0-md5: 361aad5cf400764e35d1ade3b609bb60
18Patch0: %{name}-mansect.patch
9cff03b1 19Patch1: %{name}-libdir.patch
2df546c3
JB
20URL: http://www.gerg.ca/software/btOOL/
21BuildRequires: perl-Capture-Tiny >= 0.06
22BuildRequires: perl-Config-AutoConf >= 0.16
23BuildRequires: perl-ExtUtils-CBuilder >= 0.27
24BuildRequires: perl-ExtUtils-LibBuilder >= 0.02
25BuildRequires: perl-Module-Build >= 0.3603
26BuildRequires: perl-devel >= 1:5.8.0
27BuildRequires: rpm-perlprov >= 4.1-13
28%if %{with tests}
29BuildRequires: perl-Scalar-List-Utils >= 1.42
30BuildRequires: perl-Unicode-Normalize
31%endif
32Requires: btparse = %{version}-%{release}
33BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35%description
36Text::BibTeX is a Perl library for reading, parsing, and processing
37BibTeX files. It is the Perl half of btOOL, a pair of libraries for
38dealing with BibTeX data.
39
40%description -l pl.UTF-8
41Text::BibTeX to biblioteka Perla do odczytu, analizy i przetwarzania
42plików BibTeXa. Jest to perlowa połowa projektu btOOL - pary bibliotek
43do obsługi danych BibTeXa.
44
45%package -n btparse
46Summary: C library to parse BibTeX files
47Summary(pl.UTF-8): Biblioteka C do analizy plików BibTeXa
48Group: Libraries
49
50%description -n btparse
51btparse is the C component of btOOL, a pair of libraries for parsing
52and processing BibTeX files. Its primary use is as the back-end to
53Text::BibTeX library for Perl (the other half of btOOL), but there's
54nothing to prevent you from writing C programs using btparse - or from
55writing extensions to other high-level languages using btparse as a
56back-end.
57
58%description -n btparse -l pl.UTF-8
59btparse to część C narzędzia btOOL - pary bibliotek do analizy i
60przetwarzania plików BibTeX. Głównym zastosowaniem jest backend dla
61biblioteki Text::BibTeX dla Perla (drugiej połówki narzędzia btOOL),
62ale nic nie stoi na przeszkodzie pisaniu programów w C
63wykorzystujących btparse albo rozszerzeń dla innych wysokopoziomowych
64języków z wykorzystaniem btparse jako backendu.
65
66%package -n btparse-devel
67Summary: Header files for btparse library
68Summary(pl.UTF-8): Pliki nagłówkowe biblioteki btparse
69Group: Development/Libraries
70Requires: btparse = %{version}-%{release}
71Obsoletes: btparse-static < %{version}
72
73%description -n btparse-devel
74Header files for btparse library.
75
76%description -n btparse-devel -l pl.UTF-8
77Pliki nagłówkowe biblioteki btparse.
78
79%prep
80%setup -q -n %{pdir}-%{pnam}-%{version}
81%patch0 -p1
9cff03b1 82%patch1 -p1
2df546c3
JB
83
84%build
9cff03b1 85LIBDIR=%{_libdir} \
2df546c3
JB
86%{__perl} Build.PL \
87 --config cc="%{__cc}" \
88 --config optimize="%{rpmcflags}" \
89 installdirs=vendor
90./Build
91
92%{?with_tests:./Build test}
93
94%install
95rm -rf $RPM_BUILD_ROOT
96
97./Build install \
98 destdir=$RPM_BUILD_ROOT
99
100%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Text/BibTeX/BibTeX.bs
101
102%clean
103rm -rf $RPM_BUILD_ROOT
104
105%post -n btparse -p /sbin/ldconfig
106%postun -n btparse -p /sbin/ldconfig
107
108%files
109%defattr(644,root,root,755)
110%doc Changes README
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*
117
118%files -n btparse
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
124
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*
This page took 0.089123 seconds and 4 git commands to generate.