90d4652
Name:           bibutils
f286058
Version:        5.0
1139ec7
Release:        4%{?dist}
90d4652
Summary:        Bibliography conversion tools
acabb17
License:        GPLv2
90d4652
URL:            http://sourceforge.net/p/bibutils/home/Bibutils/
90d4652
Source0:        http://downloads.sourceforge.net/%{name}/%{name}_%{version}_src.tgz
f286058
Patch0:         bibutils-5.0-install-LIBTARGETIN.patch
90d4652
90d4652
BuildRequires:  libxslt
90d4652
BuildRequires:  docbook-style-xsl
90d4652
90d4652
%description
90d4652
The bibutils package converts between various bibliography
90d4652
formats using a common MODS-format XML intermediate.
90d4652
90d4652
90d4652
%package libs
90d4652
Summary:        Bibutils library
90d4652
License:        GPL+
90d4652
90d4652
%description libs
90d4652
Bibutils library.
90d4652
90d4652
90d4652
%package devel
90d4652
Summary:        Development files for bibutils
90d4652
Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
90d4652
License:        GPL+
90d4652
90d4652
%description devel
90d4652
Bibutils development files.
90d4652
f286058
90d4652
%prep
90d4652
%setup -q -n %{name}_%{version}
f286058
%patch0 -p1 -b .orig
90d4652
90d4652
90d4652
%build
90d4652
./configure --install-dir %{buildroot}%{_bindir} --install-lib %{buildroot}%{_libdir} --dynamic
506c0b8
make DISTRO_CFLAGS="%{optflags}"
90d4652
90d4652
xsltproc -o bibutils.1 --nonet %{_datadir}/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl bibutils.dbk
90d4652
90d4652
90d4652
%install
90d4652
mkdir -p %{buildroot}%{_bindir} %{buildroot}%{_libdir}
90d4652
make install
90d4652
90d4652
mkdir -p %{buildroot}%{_includedir}/%{name}
90d4652
cp -p lib/*.h %{buildroot}%{_includedir}/%{name}
90d4652
mkdir -p %{buildroot}%{_libdir}/pkgconfig 
90d4652
cp -p lib/%{name}.pc %{buildroot}%{_libdir}/pkgconfig
90d4652
sed -i -e 's!\\!!g' -e 's!libdir=${prefix}/lib!libdir=%{_libdir}!' -e 's!${includedir}!${includedir}/%{name}!' %{buildroot}%{_libdir}/pkgconfig/%{name}.pc
90d4652
mkdir -p %{buildroot}%{_mandir}/man1
90d4652
cp -p %{name}.1 %{buildroot}%{_mandir}/man1
90d4652
90d4652
for i in $(cd %{buildroot}%{_bindir}; ls *); do
90d4652
  ln -s bibutils.1 %{buildroot}%{_mandir}/man1/$i.1
90d4652
done
90d4652
90d4652
90d4652
%post libs -p /sbin/ldconfig
90d4652
90d4652
%postun libs -p /sbin/ldconfig
90d4652
90d4652
90d4652
%files
90d4652
%doc Copying ChangeLog
90d4652
%{_bindir}/*
90d4652
%{_mandir}/man1/*.1*
90d4652
90d4652
90d4652
%files libs
90d4652
%{_libdir}/libbibutils.so.*
90d4652
90d4652
90d4652
%files devel
90d4652
%{_includedir}/%{name}
90d4652
%{_libdir}/libbibutils.so
90d4652
%{_libdir}/pkgconfig/%{name}.pc
90d4652
90d4652
90d4652
%changelog
1139ec7
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.0-4
1139ec7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
1139ec7
3ef3c19
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.0-3
3ef3c19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
3ef3c19
6e7d0cd
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.0-2
6e7d0cd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
6e7d0cd
f286058
* Wed Jun  5 2013 Jens Petersen <petersen@redhat.com> - 5.0-1
f286058
- update to 5.0
f286058
506c0b8
* Mon Jan 28 2013 Jens Petersen <petersen@redhat.com> - 4.17-1
506c0b8
- update to 4.17
506c0b8
- patch and use upstream's Makefile
506c0b8
acabb17
* Thu Jan 10 2013 Jens Petersen <petersen@redhat.com> - 4.16-1
acabb17
- update to 4.16
acabb17
- update License to only GPLv2
acabb17
- no longer needs csh to build
acabb17
90d4652
* Thu Oct  4 2012 Jens Petersen <petersen@redhat.com> - 4.15-4
90d4652
- tcsh provides csh so no need to patch configure for tcsh
90d4652
- change license to GPL+ for the code and GPLv2 for the manpage
90d4652
90d4652
* Tue Oct  2 2012 Jens Petersen <petersen@redhat.com> - 4.15-3
90d4652
- improve summary and description (#861922)
90d4652
- build and install docbook manpage which is GPLv2+ (#861922)
90d4652
- use _isa (#861922)
90d4652
90d4652
* Tue Oct  2 2012 Jens Petersen <petersen@redhat.com> - 4.15-2
90d4652
- BR tcsh
90d4652
90d4652
* Mon Oct  1 2012 Jens Petersen <petersen@redhat.com> - 4.15-1
90d4652
- initial packaging