File btparse.spec of Package btparse

Name:		btparse
Version:	0.35
Release:	3
Summary:	Library for parsing and processing BibTeX files
Group:		Productivity/Office/Other
Source:		http://www.cpan.org/authors/Greg_Ward/%{name}-%{version}.tar.bz2
Patch:		%{name}-implicit-fortify-decl.patch
BuildRequires:	gcc make
License:	GPL v2 or later
BuildRoot:	%{_tmppath}/%{name}-%{version}-build

%description
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 the
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.  There's even copious documentation on using the library in
the "doc" directory.

Authors:
--------
	Greg Ward <gward@python.net>

%package devel
Summary:	Library for parsing and processing BibTeX files
Group:		Development/System/Libraries
Requires:	lib%{name}0 = %{version} %{name} = %{version}

%description devel
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 the
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.  There's even copious documentation on using the library in
the "doc" directory.

Authors:
--------
	Greg Ward <gward@python.net>

%package -n lib%{name}0
Summary:	Development files for lib%{name}0
Group:		System/Libraries

%description -n lib%{name}0
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 the
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.  There's even copious documentation on using the library in
the "doc" directory.

Authors:
--------
	Greg Ward <gward@python.net>

%prep
%setup -q
%patch

%build
%configure
make

%install
%makeinstall
%__rm $RPM_BUILD_ROOT%{_libdir}/lib%{name}.*a

%post -n lib%{name}0 -p /sbin/ldconfig

%postun -n lib%{name}0 -p /sbin/ldconfig

%files
%defattr(-,root,root)
%{_bindir}/bibparse
%{_mandir}/man3/bt_*
%{_mandir}/man3/%{name}.*

%files -n lib%{name}0
%defattr(-,root,root)
%{_libdir}/lib%{name}.so.*

%files devel
%defattr(-,root,root)
%{_libdir}/lib%{name}.so
%{_includedir}/%{name}.h
%{_libdir}/pkgconfig/%{name}.pc

%changelog
openSUSE Build Service is sponsored by