rarian-vl.spec 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. Name: rarian
  2. Version: 0.8.1
  3. Release: 6%{?_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: http://ftp.gnome.org/pub/gnome/sources/rarian
  9. Vendor: Project Vine
  10. Distribution: Vine Linux
  11. Source: http://ftp.gnome.org/pub/gnome/sources/rarian/0.6/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. %doc README COPYING COPYING.LIB COPYING.UTILS ChangeLog NEWS AUTHORS
  85. %{_bindir}/rarian-example
  86. %{_libdir}/librarian.so.*
  87. %{_datadir}/librarian
  88. %{_datadir}/help
  89. %files compat
  90. %defattr(-,root,root,-)
  91. %{_bindir}/rarian-sk-*
  92. %{_bindir}/scrollkeeper-*
  93. %{_datadir}/xml/scrollkeeper
  94. %files devel
  95. %defattr(644,root,root,755)
  96. %{_includedir}/rarian
  97. %{_libdir}/librarian.so
  98. %{_libdir}/pkgconfig/rarian.pc
  99. %changelog
  100. * Mon Jul 4 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.8.1-6
  101. - rebuilt with new toolchain.
  102. * Sat Aug 30 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.8.1-5
  103. - rebuilt with current environment
  104. * Thu Sep 30 2010 Shu KONNO <owa@bg.wakwak.com> 0.8.1-4
  105. - rebuilt with rpm-4.8.1 for pkg-config
  106. * Sat Mar 6 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.8.1-3
  107. - rebuilt with new toolchain
  108. - add Requires(post): xml-common to rarian-compat
  109. * Sat Feb 14 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.8.1-2
  110. - changed Group to System Environment/Libraries
  111. - changed devel subpackage Group to Development/Libraries
  112. * Tue Sep 16 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.8.1-1vl5
  113. - new upstream release
  114. - spec in UTF-8
  115. * Thu Mar 20 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.8.0-1vl5
  116. - new upstream release
  117. * Sat Mar 8 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.6.0-0vl1
  118. - initial build for Vine
  119. * Mon Feb 18 2008 Matthew Barnes <mbarnes@redhat.com> - 0.7.1-3
  120. - Require libxml2 in %%post and %%postun (RH bug #433268).
  121. * Sat Feb 09 2008 Matthew Barnes <mbarnes@redhat.com> - 0.7.1-2
  122. - Install XML DTD for scrollkeeper OMF files (RH bug #431088).
  123. * Tue Jan 08 2008 - Bastien Nocera <bnocera@redhat.com> - 0.7.1-1
  124. - Update to 0.7.1
  125. * Mon Nov 26 2007 Matthew Barnes <mbarnes@redhat.com> - 0.7.0-1
  126. - Update to 0.7.0
  127. * Tue Nov 06 2007 Matthew Barnes <mbarnes@redhat.com> - 0.6.0-2
  128. - Own /usr/share/help (RH bug #363311).
  129. * Wed Sep 12 2007 Matthew Barnes <mbarnes@redhat.com> - 0.6.0-1
  130. - Update to 0.6.0
  131. - Remove patch for RH bug #254301 (fixed upstream).
  132. * Thu Aug 30 2007 Matthew Barnes <mbarnes@redhat.com> - 0.5.8-3
  133. - Add patch for RH bug #254301 (rarian-sk-config --omfdir).
  134. * Wed Aug 22 2007 Matthew Barnes <mbarnes@redhat.com> - 0.5.8-2
  135. - Mass rebuild
  136. * Mon Aug 13 2007 Matthew Barnes <mbarnes@redhat.com> - 0.5.8-1
  137. - Update to 0.5.8
  138. * Thu Aug 9 2007 Matthias Clasen <mclasen@redhat.com> - 0.5.6-5
  139. - Move Provides and Obsoletes in the same package, to
  140. avoid unnessary complications
  141. * Sat Aug 4 2007 Matthias Clasen <mclasen@redhat.com> - 0.5.6-4
  142. - Add a few missing Requires
  143. * Thu Aug 02 2007 Matthew Barnes <mbarnes@redhat.com> - 0.5.6-3
  144. - Fix the Obsoletes/Provides relationship.
  145. * Wed Aug 01 2007 Matthew Barnes <mbarnes@redhat.com> - 0.5.6-2
  146. - More package review feedback (#250150).
  147. * Wed Aug 01 2007 Matthew Barnes <mbarnes@redhat.com> - 0.5.6-1
  148. - Update to 0.5.6
  149. * Tue Jul 31 2007 Matthew Barnes <mbarnes@redhat.com> - 0.5.4-2
  150. - Incorporate package review suggestions.
  151. * Mon Jul 30 2007 Matthew Barnes <mbarnes@redhat.com> - 0.5.4-1
  152. - Initial packaging.