rarian-vl.spec 5.9 KB

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