rarian-vl.spec 5.6 KB

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