| 1 | Name: rarian |
|---|
| 2 | Version: 0.8.1 |
|---|
| 3 | Release: 7%{?_dist_release} |
|---|
| 4 | License: LGPLv2+ |
|---|
| 5 | Group: System Environment/Libraries |
|---|
| 6 | Summary: Rarian is a documentation meta-data library |
|---|
| 7 | Summary(ja): Rarian 文書メタデータライブラリ |
|---|
| 8 | URL: https://ftp.gnome.org/pub/gnome/sources/rarian |
|---|
| 9 | |
|---|
| 10 | Vendor: Project Vine |
|---|
| 11 | Distribution: Vine Linux |
|---|
| 12 | |
|---|
| 13 | Source: https://ftp.gnome.org/pub/gnome/sources/rarian/0.8/rarian-%{version}.tar.bz2 |
|---|
| 14 | Source1: scrollkeeper-omf.dtd |
|---|
| 15 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 16 | |
|---|
| 17 | ### Dependencies ### |
|---|
| 18 | |
|---|
| 19 | Requires(post): libxml2 |
|---|
| 20 | Requires(postun): libxml2 |
|---|
| 21 | # for /usr/bin/xmlcatalog |
|---|
| 22 | |
|---|
| 23 | Requires: libxslt |
|---|
| 24 | # for /usr/bin/xsltproc |
|---|
| 25 | Requires: coreutils, util-linux, gawk |
|---|
| 26 | # for basename, getopt, awk, etc |
|---|
| 27 | |
|---|
| 28 | ### Build Dependencies ### |
|---|
| 29 | BuildRequires: libxslt-devel |
|---|
| 30 | |
|---|
| 31 | %description |
|---|
| 32 | Rarian is a documentation meta-data library that allows access to documents, |
|---|
| 33 | man pages and info pages. It was designed as a replacement for scrollkeeper. |
|---|
| 34 | |
|---|
| 35 | %package compat |
|---|
| 36 | License: GPLv2+ |
|---|
| 37 | Group: System Environment/Base |
|---|
| 38 | Summary: Extra files for compatibility with scrollkeeper |
|---|
| 39 | Requires: rarian = %{version}-%{release} |
|---|
| 40 | Requires(post): rarian, xml-common |
|---|
| 41 | # The scrollkeeper version is arbitrary. It just |
|---|
| 42 | # needs to be greater than what we're obsoleting. |
|---|
| 43 | Provides: scrollkeeper = 0.4 |
|---|
| 44 | Obsoletes: scrollkeeper <= 0.3.14 |
|---|
| 45 | |
|---|
| 46 | %description compat |
|---|
| 47 | This package contains files needed to maintain backward-compatibility with |
|---|
| 48 | scrollkeeper. |
|---|
| 49 | |
|---|
| 50 | %package devel |
|---|
| 51 | Group: Development/Libraries |
|---|
| 52 | Summary: Development files for Rarian |
|---|
| 53 | Summary(ja): Rarian 用開発ファイル |
|---|
| 54 | Requires: rarian = %{version}-%{release} |
|---|
| 55 | Requires: pkgconfig |
|---|
| 56 | |
|---|
| 57 | %description devel |
|---|
| 58 | This package contains files required to develop applications that use the |
|---|
| 59 | Rarian library ("librarian"). |
|---|
| 60 | |
|---|
| 61 | %prep |
|---|
| 62 | %setup -q |
|---|
| 63 | |
|---|
| 64 | %build |
|---|
| 65 | |
|---|
| 66 | %configure --disable-skdb-update |
|---|
| 67 | make %{?_smp_mflags} |
|---|
| 68 | |
|---|
| 69 | %install |
|---|
| 70 | rm -rf $RPM_BUILD_ROOT |
|---|
| 71 | make install DESTDIR=$RPM_BUILD_ROOT |
|---|
| 72 | |
|---|
| 73 | mkdir -p $RPM_BUILD_ROOT%{_datadir}/xml/scrollkeeper/dtds |
|---|
| 74 | cp %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/xml/scrollkeeper/dtds |
|---|
| 75 | |
|---|
| 76 | rm -rf $RPM_BUILD_ROOT%{_libdir}/librarian.a |
|---|
| 77 | rm -rf $RPM_BUILD_ROOT%{_libdir}/librarian.la |
|---|
| 78 | |
|---|
| 79 | %clean |
|---|
| 80 | rm -rf $RPM_BUILD_ROOT |
|---|
| 81 | |
|---|
| 82 | %post -p /sbin/ldconfig |
|---|
| 83 | |
|---|
| 84 | %post compat |
|---|
| 85 | %{_bindir}/rarian-sk-update |
|---|
| 86 | |
|---|
| 87 | # Add OMF DTD to XML catalog. |
|---|
| 88 | CATALOG=/etc/xml/catalog |
|---|
| 89 | /usr/bin/xmlcatalog --noout --add "rewriteSystem" \ |
|---|
| 90 | "http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd" \ |
|---|
| 91 | "%{_datadir}/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd" $CATALOG |
|---|
| 92 | /usr/bin/xmlcatalog --noout --add "rewriteURI" \ |
|---|
| 93 | "http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd" \ |
|---|
| 94 | "%{_datadir}/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd" $CATALOG |
|---|
| 95 | |
|---|
| 96 | %postun -p /sbin/ldconfig |
|---|
| 97 | |
|---|
| 98 | %postun compat |
|---|
| 99 | |
|---|
| 100 | # Delete OMF DTD from XML catalog. |
|---|
| 101 | if [ $1 = 0 ]; then |
|---|
| 102 | CATALOG=/etc/xml/catalog |
|---|
| 103 | /usr/bin/xmlcatalog --noout --del \ |
|---|
| 104 | "%{_datadir}/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd" $CATALOG |
|---|
| 105 | fi |
|---|
| 106 | |
|---|
| 107 | %files |
|---|
| 108 | %defattr(-,root,root,-) |
|---|
| 109 | %license COPYING COPYING.LIB COPYING.UTILS |
|---|
| 110 | %doc README ChangeLog NEWS AUTHORS |
|---|
| 111 | %{_bindir}/rarian-example |
|---|
| 112 | %{_libdir}/librarian.so.* |
|---|
| 113 | %{_datadir}/librarian |
|---|
| 114 | %{_datadir}/help |
|---|
| 115 | |
|---|
| 116 | %files compat |
|---|
| 117 | %defattr(-,root,root,-) |
|---|
| 118 | %{_bindir}/rarian-sk-* |
|---|
| 119 | %{_bindir}/scrollkeeper-* |
|---|
| 120 | %{_datadir}/xml/scrollkeeper |
|---|
| 121 | |
|---|
| 122 | %files devel |
|---|
| 123 | %defattr(644,root,root,755) |
|---|
| 124 | %{_includedir}/rarian |
|---|
| 125 | %{_libdir}/librarian.so |
|---|
| 126 | %{_libdir}/pkgconfig/rarian.pc |
|---|
| 127 | |
|---|
| 128 | %changelog |
|---|
| 129 | * Sun Mar 29 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.8.1-7 |
|---|
| 130 | - rebuilt with current environment. |
|---|
| 131 | |
|---|
| 132 | * Mon Jul 4 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.8.1-6 |
|---|
| 133 | - rebuilt with new toolchain. |
|---|
| 134 | |
|---|
| 135 | * Sat Aug 30 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.8.1-5 |
|---|
| 136 | - rebuilt with current environment |
|---|
| 137 | |
|---|
| 138 | * Thu Sep 30 2010 Shu KONNO <owa@bg.wakwak.com> 0.8.1-4 |
|---|
| 139 | - rebuilt with rpm-4.8.1 for pkg-config |
|---|
| 140 | |
|---|
| 141 | * Sat Mar 6 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.8.1-3 |
|---|
| 142 | - rebuilt with new toolchain |
|---|
| 143 | - add Requires(post): xml-common to rarian-compat |
|---|
| 144 | |
|---|
| 145 | * Sat Feb 14 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.8.1-2 |
|---|
| 146 | - changed Group to System Environment/Libraries |
|---|
| 147 | - changed devel subpackage Group to Development/Libraries |
|---|
| 148 | |
|---|
| 149 | * Tue Sep 16 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.8.1-1vl5 |
|---|
| 150 | - new upstream release |
|---|
| 151 | - spec in UTF-8 |
|---|
| 152 | |
|---|
| 153 | * Thu Mar 20 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.8.0-1vl5 |
|---|
| 154 | - new upstream release |
|---|
| 155 | |
|---|
| 156 | * Sat Mar 8 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.6.0-0vl1 |
|---|
| 157 | - initial build for Vine |
|---|
| 158 | |
|---|
| 159 | * Mon Feb 18 2008 Matthew Barnes <mbarnes@redhat.com> - 0.7.1-3 |
|---|
| 160 | - Require libxml2 in %%post and %%postun (RH bug #433268). |
|---|
| 161 | |
|---|
| 162 | * Sat Feb 09 2008 Matthew Barnes <mbarnes@redhat.com> - 0.7.1-2 |
|---|
| 163 | - Install XML DTD for scrollkeeper OMF files (RH bug #431088). |
|---|
| 164 | |
|---|
| 165 | * Tue Jan 08 2008 - Bastien Nocera <bnocera@redhat.com> - 0.7.1-1 |
|---|
| 166 | - Update to 0.7.1 |
|---|
| 167 | |
|---|
| 168 | * Mon Nov 26 2007 Matthew Barnes <mbarnes@redhat.com> - 0.7.0-1 |
|---|
| 169 | - Update to 0.7.0 |
|---|
| 170 | |
|---|
| 171 | * Tue Nov 06 2007 Matthew Barnes <mbarnes@redhat.com> - 0.6.0-2 |
|---|
| 172 | - Own /usr/share/help (RH bug #363311). |
|---|
| 173 | |
|---|
| 174 | * Wed Sep 12 2007 Matthew Barnes <mbarnes@redhat.com> - 0.6.0-1 |
|---|
| 175 | - Update to 0.6.0 |
|---|
| 176 | - Remove patch for RH bug #254301 (fixed upstream). |
|---|
| 177 | |
|---|
| 178 | * Thu Aug 30 2007 Matthew Barnes <mbarnes@redhat.com> - 0.5.8-3 |
|---|
| 179 | - Add patch for RH bug #254301 (rarian-sk-config --omfdir). |
|---|
| 180 | |
|---|
| 181 | * Wed Aug 22 2007 Matthew Barnes <mbarnes@redhat.com> - 0.5.8-2 |
|---|
| 182 | - Mass rebuild |
|---|
| 183 | |
|---|
| 184 | * Mon Aug 13 2007 Matthew Barnes <mbarnes@redhat.com> - 0.5.8-1 |
|---|
| 185 | - Update to 0.5.8 |
|---|
| 186 | |
|---|
| 187 | * Thu Aug 9 2007 Matthias Clasen <mclasen@redhat.com> - 0.5.6-5 |
|---|
| 188 | - Move Provides and Obsoletes in the same package, to |
|---|
| 189 | avoid unnessary complications |
|---|
| 190 | |
|---|
| 191 | * Sat Aug 4 2007 Matthias Clasen <mclasen@redhat.com> - 0.5.6-4 |
|---|
| 192 | - Add a few missing Requires |
|---|
| 193 | |
|---|
| 194 | * Thu Aug 02 2007 Matthew Barnes <mbarnes@redhat.com> - 0.5.6-3 |
|---|
| 195 | - Fix the Obsoletes/Provides relationship. |
|---|
| 196 | |
|---|
| 197 | * Wed Aug 01 2007 Matthew Barnes <mbarnes@redhat.com> - 0.5.6-2 |
|---|
| 198 | - More package review feedback (#250150). |
|---|
| 199 | |
|---|
| 200 | * Wed Aug 01 2007 Matthew Barnes <mbarnes@redhat.com> - 0.5.6-1 |
|---|
| 201 | - Update to 0.5.6 |
|---|
| 202 | |
|---|
| 203 | * Tue Jul 31 2007 Matthew Barnes <mbarnes@redhat.com> - 0.5.4-2 |
|---|
| 204 | - Incorporate package review suggestions. |
|---|
| 205 | |
|---|
| 206 | * Mon Jul 30 2007 Matthew Barnes <mbarnes@redhat.com> - 0.5.4-1 |
|---|
| 207 | - Initial packaging. |
|---|