rarian-vl.spec 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. Name: rarian
  2. Version: 0.8.1
  3. Release: 4%{?_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. * Thu Sep 30 2010 Shu KONNO <owa@bg.wakwak.com> 0.8.1-4
  99. - rebuilt with rpm-4.8.1 for pkg-config
  100. * Sat Mar 6 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.8.1-3
  101. - rebuilt with new toolchain
  102. - add Requires(post): xml-common to rarian-compat
  103. * Sat Feb 14 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.8.1-2
  104. - changed Group to System Environment/Libraries
  105. - changed devel subpackage Group to Development/Libraries
  106. * Tue Sep 16 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.8.1-1vl5
  107. - new upstream release
  108. - spec in UTF-8
  109. * Thu Mar 20 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.8.0-1vl5
  110. - new upstream release
  111. * Sat Mar 8 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.6.0-0vl1
  112. - initial build for Vine
  113. * Mon Feb 18 2008 Matthew Barnes <mbarnes@redhat.com> - 0.7.1-3
  114. - Require libxml2 in %%post and %%postun (RH bug #433268).
  115. * Sat Feb 09 2008 Matthew Barnes <mbarnes@redhat.com> - 0.7.1-2
  116. - Install XML DTD for scrollkeeper OMF files (RH bug #431088).
  117. * Tue Jan 08 2008 - Bastien Nocera <bnocera@redhat.com> - 0.7.1-1
  118. - Update to 0.7.1
  119. * Mon Nov 26 2007 Matthew Barnes <mbarnes@redhat.com> - 0.7.0-1
  120. - Update to 0.7.0
  121. * Tue Nov 06 2007 Matthew Barnes <mbarnes@redhat.com> - 0.6.0-2
  122. - Own /usr/share/help (RH bug #363311).
  123. * Wed Sep 12 2007 Matthew Barnes <mbarnes@redhat.com> - 0.6.0-1
  124. - Update to 0.6.0
  125. - Remove patch for RH bug #254301 (fixed upstream).
  126. * Thu Aug 30 2007 Matthew Barnes <mbarnes@redhat.com> - 0.5.8-3
  127. - Add patch for RH bug #254301 (rarian-sk-config --omfdir).
  128. * Wed Aug 22 2007 Matthew Barnes <mbarnes@redhat.com> - 0.5.8-2
  129. - Mass rebuild
  130. * Mon Aug 13 2007 Matthew Barnes <mbarnes@redhat.com> - 0.5.8-1
  131. - Update to 0.5.8
  132. * Thu Aug 9 2007 Matthias Clasen <mclasen@redhat.com> - 0.5.6-5
  133. - Move Provides and Obsoletes in the same package, to
  134. avoid unnessary complications
  135. * Sat Aug 4 2007 Matthias Clasen <mclasen@redhat.com> - 0.5.6-4
  136. - Add a few missing Requires
  137. * Thu Aug 02 2007 Matthew Barnes <mbarnes@redhat.com> - 0.5.6-3
  138. - Fix the Obsoletes/Provides relationship.
  139. * Wed Aug 01 2007 Matthew Barnes <mbarnes@redhat.com> - 0.5.6-2
  140. - More package review feedback (#250150).
  141. * Wed Aug 01 2007 Matthew Barnes <mbarnes@redhat.com> - 0.5.6-1
  142. - Update to 0.5.6
  143. * Tue Jul 31 2007 Matthew Barnes <mbarnes@redhat.com> - 0.5.4-2
  144. - Incorporate package review suggestions.
  145. * Mon Jul 30 2007 Matthew Barnes <mbarnes@redhat.com> - 0.5.4-1
  146. - Initial packaging.