Blame SPECS/bibutils.spec

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