987942c
### Abstract ###
987942c
987942c
Name: rarian
7fea9a2
Version: 0.8.1
13d252d
Release: 18%{?dist}
987942c
License: LGPLv2+
987942c
Group: System Environment/Base
38b88b4
Summary: Documentation meta-data library
2bd3ed7
URL: http://rarian.freedesktop.org/
2bd3ed7
Source: http://download.gnome.org/sources/rarian/0.8/rarian-%{version}.tar.bz2
bf5b73d
Source1: scrollkeeper-omf.dtd
987942c
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
987942c
78dc39c
### Patch ###
78dc39c
78dc39c
# RH bug #453342
78dc39c
Patch1: rarian-0.8.1-categories.patch
78dc39c
987942c
### Dependencies ###
987942c
89b85df
Requires(post): libxml2
89b85df
Requires(postun): libxml2
bf5b73d
# for /usr/bin/xmlcatalog
89b85df
987942c
Requires: libxslt
bf5b73d
# for /usr/bin/xsltproc
d038b21
Requires: coreutils, util-linux, gawk
d038b21
# for basename, getopt, awk, etc
987942c
987942c
### Build Dependencies ###
987942c
987942c
BuildRequires: libxslt-devel
987942c
987942c
%description
987942c
Rarian is a documentation meta-data library that allows access to documents,
987942c
man pages and info pages.  It was designed as a replacement for scrollkeeper.
987942c
987942c
%package compat
987942c
License: GPLv2+
987942c
Group: System Environment/Base
987942c
Summary: Extra files for compatibility with scrollkeeper
987942c
Requires: rarian = %{version}-%{release}
987942c
Requires(post): rarian
f054c09
# The scrollkeeper version is arbitrary.  It just
f054c09
# needs to be greater than what we're obsoleting.
f054c09
Provides: scrollkeeper = 0.4
58e10f7
Obsoletes: scrollkeeper <= 0.3.14
987942c
987942c
%description compat
987942c
This package contains files needed to maintain backward-compatibility with
987942c
scrollkeeper.
987942c
987942c
%package devel
987942c
Group: Development/Languages
987942c
Summary: Development files for Rarian
987942c
Requires: rarian = %{version}-%{release}
987942c
Requires: pkgconfig
987942c
987942c
%description devel
987942c
This package contains files required to develop applications that use the
987942c
Rarian library ("librarian").
987942c
987942c
%prep
987942c
%setup -q
78dc39c
%patch1 -p1 -b .categories
987942c
987942c
%build
a61576b
987942c
%configure --disable-skdb-update
987942c
make %{?_smp_mflags}
987942c
987942c
%install
987942c
rm -rf $RPM_BUILD_ROOT
987942c
make install DESTDIR=$RPM_BUILD_ROOT
987942c
bf5b73d
mkdir -p $RPM_BUILD_ROOT%{_datadir}/xml/scrollkeeper/dtds
bf5b73d
cp %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/xml/scrollkeeper/dtds
bf5b73d
987942c
rm -rf $RPM_BUILD_ROOT%{_libdir}/librarian.a
987942c
rm -rf $RPM_BUILD_ROOT%{_libdir}/librarian.la
987942c
987942c
%clean
987942c
rm -rf $RPM_BUILD_ROOT
987942c
987942c
%post -p /sbin/ldconfig
987942c
987942c
%post compat
987942c
%{_bindir}/rarian-sk-update
987942c
bf5b73d
# Add OMF DTD to XML catalog.
bf5b73d
CATALOG=/etc/xml/catalog
bf5b73d
/usr/bin/xmlcatalog --noout --add "rewriteSystem" \
bf5b73d
  "http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd" \
790f6cb
  "/usr/share/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd" $CATALOG >& /dev/null || :
bf5b73d
/usr/bin/xmlcatalog --noout --add "rewriteURI" \
bf5b73d
  "http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd" \
790f6cb
  "/usr/share/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd" $CATALOG >& /dev/null || :
bf5b73d
987942c
%postun -p /sbin/ldconfig
987942c
bf5b73d
%postun compat
bf5b73d
bf5b73d
# Delete OMF DTD from XML catalog.
bf5b73d
if [ $1 = 0 ]; then
bf5b73d
  CATALOG=/etc/xml/catalog
bf5b73d
  /usr/bin/xmlcatalog --noout --del \
790f6cb
    "/usr/share/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd" $CATALOG >& /dev/null || :
bf5b73d
fi
bf5b73d
987942c
%files
987942c
%defattr(-,root,root,-)
987942c
%doc README COPYING COPYING.LIB COPYING.UTILS ChangeLog NEWS AUTHORS
987942c
%{_bindir}/rarian-example
987942c
%{_libdir}/librarian.so.*
987942c
%{_datadir}/librarian
9f3fb5d
%{_datadir}/help
987942c
987942c
%files compat
987942c
%defattr(-,root,root,-)
987942c
%{_bindir}/rarian-sk-*
987942c
%{_bindir}/scrollkeeper-*
bf5b73d
%{_datadir}/xml/scrollkeeper
987942c
987942c
%files devel
987942c
%defattr(644,root,root,755)
987942c
%{_includedir}/rarian
987942c
%{_libdir}/librarian.so
987942c
%{_libdir}/pkgconfig/rarian.pc
987942c
987942c
%changelog
13d252d
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.1-18
13d252d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
13d252d
75cb7a3
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.1-17
75cb7a3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
75cb7a3
f7350b6
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.1-16
f7350b6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
f7350b6
fe9985b
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.1-15
fe9985b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
fe9985b
e1bde11
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-14
e1bde11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
e1bde11
bf74f7c
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.8.1-13
bf74f7c
- Rebuilt for GCC 5 C++11 ABI change
bf74f7c
33ce307
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-12
33ce307
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
33ce307
7a68be3
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-11
7a68be3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
7a68be3
12e7fde
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-10
12e7fde
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
12e7fde
348943c
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-9
348943c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
348943c
4051757
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-8
4051757
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
4051757
eab0358
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-7
eab0358
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
eab0358
526991e
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-6
526991e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
526991e
46493ec
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-5
46493ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
46493ec
bbba79a
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-4
bbba79a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
bbba79a
38b88b4
* Sat Nov 22 2008 Matthew Barnes <mbarnes@redhat.com> - 0.8.1-3
38b88b4
- Shorten the summary.
38b88b4
78dc39c
* Mon Nov 10 2008 Matthew Barnes <mbarnes@redhat.com> - 0.8.1-2
78dc39c
- Add patch for RH bug #453342 (OMF category parsing).
78dc39c
7fea9a2
* Mon Sep 01 2008 Matthew Barnes <mbarnes@redhat.com> - 0.8.1-1
7fea9a2
- Update to 0.8.1
7fea9a2
2bd3ed7
* Sun May  4 2008 Matthias Clasen <mclasen@redhat.com> - 0.8.0-2
2bd3ed7
- Fix source url
2bd3ed7
790f6cb
* Mon Feb 18 2008 Matthew Barnes <mbarnes@redhat.com> - 0.8.0-1
790f6cb
- Update to 0.8.0
790f6cb
- Silence xmlcatalog commands (RH bug #433315).
790f6cb
89b85df
* Mon Feb 18 2008 Matthew Barnes <mbarnes@redhat.com> - 0.7.1-3
89b85df
- Require libxml2 in %%post and %%postun (RH bug #433268).
89b85df
bf5b73d
* Sat Feb 09 2008 Matthew Barnes <mbarnes@redhat.com> - 0.7.1-2
bf5b73d
- Install XML DTD for scrollkeeper OMF files (RH bug #431088).
bf5b73d
4a7c30e
* Tue Jan 08 2008 - Bastien Nocera <bnocera@redhat.com> - 0.7.1-1
4a7c30e
- Update to 0.7.1
4a7c30e
4e32e18
* Mon Nov 26 2007 Matthew Barnes <mbarnes@redhat.com> - 0.7.0-1
4e32e18
- Update to 0.7.0
4e32e18
9f3fb5d
* Tue Nov 06 2007 Matthew Barnes <mbarnes@redhat.com> - 0.6.0-2
9f3fb5d
- Own /usr/share/help (RH bug #363311).
9f3fb5d
01b9356
* Wed Sep 12 2007 Matthew Barnes <mbarnes@redhat.com> - 0.6.0-1
01b9356
- Update to 0.6.0
01b9356
- Remove patch for RH bug #254301 (fixed upstream).
01b9356
a61576b
* Thu Aug 30 2007 Matthew Barnes <mbarnes@redhat.com> - 0.5.8-3
a61576b
- Add patch for RH bug #254301 (rarian-sk-config --omfdir).
a61576b
4c970fe
* Wed Aug 22 2007 Matthew Barnes <mbarnes@redhat.com> - 0.5.8-2
4c970fe
- Mass rebuild
4c970fe
5fb3cb0
* Mon Aug 13 2007 Matthew Barnes <mbarnes@redhat.com> - 0.5.8-1
5fb3cb0
- Update to 0.5.8
5fb3cb0
58e10f7
* Thu Aug  9 2007 Matthias Clasen <mclasen@redhat.com> - 0.5.6-5
58e10f7
- Move Provides and Obsoletes in the same package, to
58e10f7
  avoid unnessary complications
58e10f7
d038b21
* Sat Aug  4 2007 Matthias Clasen <mclasen@redhat.com> - 0.5.6-4
d038b21
- Add a few missing Requires
d038b21
f054c09
* Thu Aug 02 2007 Matthew Barnes <mbarnes@redhat.com> - 0.5.6-3
f054c09
- Fix the Obsoletes/Provides relationship.
f054c09
987942c
* Wed Aug 01 2007 Matthew Barnes <mbarnes@redhat.com> - 0.5.6-2
987942c
- More package review feedback (#250150).
987942c
987942c
* Wed Aug 01 2007 Matthew Barnes <mbarnes@redhat.com> - 0.5.6-1
987942c
- Update to 0.5.6
987942c
987942c
* Tue Jul 31 2007 Matthew Barnes <mbarnes@redhat.com> - 0.5.4-2
987942c
- Incorporate package review suggestions.
987942c
987942c
* Mon Jul 30 2007 Matthew Barnes <mbarnes@redhat.com> - 0.5.4-1
987942c
- Initial packaging.