tidy-vl.spec 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. %define libname libtidy
  2. %define snap 20091203
  3. Name: tidy
  4. Summary: Utility to clean up and pretty print HTML/XHTML/XML
  5. Version: 0.99.0
  6. Release: 1.%{snap}%{?_dist_release}
  7. Group: Applications/Text
  8. License: W3C
  9. URL: http://tidy.sourceforge.net/
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  11. Source0: tidy-%{snap}cvs.tar.gz
  12. Source10: tidy-cvs_checkout.sh
  13. BuildRequires: libtool
  14. BuildRequires: doxygen
  15. BuildRequires: libxslt
  16. Requires: %{libname}%{?_isa} = %{version}-%{release}
  17. %description
  18. When editing HTML it's easy to make mistakes. Wouldn't it be nice if
  19. there was a simple way to fix these mistakes automatically and tidy up
  20. sloppy editing into nicely layed out markup? Well now there is! Dave
  21. Raggett's HTML TIDY is a free utility for doing just that. It also
  22. works great on the atrociously hard to read markup generated by
  23. specialized HTML editors and conversion tools, and can help you
  24. identify where you need to pay further attention on making your pages
  25. more accessible to people with disabilities.
  26. #'
  27. %package -n %{libname}
  28. Summary: Shared libraries for %{name}
  29. Group: System Environment/Libraries
  30. %description -n %{libname}
  31. %{summary}.
  32. %package -n %{libname}-devel
  33. Summary: Development files for %{name}
  34. Group: Development/Libraries
  35. Obsoletes: tidy-devel < 0.99.0-10
  36. Provides: tidy-devel = %{version}-%{release}
  37. Requires: %{libname}%{?_isa} = %{version}-%{release}
  38. %description -n %{libname}-devel
  39. %{summary}.
  40. %prep
  41. %setup -q -n %{name}
  42. # htmldocs included in cvs checkout
  43. #setup -q -n %{name} -T -D -b1
  44. sh build/gnuauto/setup.sh
  45. %build
  46. %configure \
  47. --disable-static \
  48. --disable-dependency-tracking
  49. %__make %{?_smp_mflags}
  50. # api docs
  51. doxygen htmldoc/doxygen.cfg
  52. # make doc steps gleaned from build/gmake/Makefile
  53. pushd htmldoc
  54. ../console/tidy -xml-config > tidy-config.xml
  55. ../console/tidy -xml-help > tidy-help.xml
  56. xsltproc -o tidy.1 tidy1.xsl tidy-help.xml
  57. xsltproc -o quickref.html quickref-html.xsl tidy-config.xml
  58. popd
  59. %install
  60. %__rm -rf $RPM_BUILD_ROOT
  61. %__make install DESTDIR=$RPM_BUILD_ROOT
  62. %__install -p -m644 -D htmldoc/tidy.1 $RPM_BUILD_ROOT%{_mandir}/man1/tidy.1
  63. ## Unpackaged files
  64. %__rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
  65. %clean
  66. %__rm -rf $RPM_BUILD_ROOT
  67. %post -n %{libname} -p /sbin/ldconfig
  68. %postun -n %{libname} -p /sbin/ldconfig
  69. %files
  70. %defattr(-,root,root,-)
  71. %doc htmldoc/*.html htmldoc/*.css htmldoc/*.gif
  72. %{_bindir}/tab2space
  73. %{_bindir}/tidy
  74. %{_mandir}/man1/tidy.1*
  75. %files -n %{libname}
  76. %defattr(-,root,root,-)
  77. %{_libdir}/libtidy-0.99.so.0*
  78. %files -n %{libname}-devel
  79. %defattr(-,root,root,-)
  80. %doc htmldoc/api/*
  81. %{_includedir}/*.h
  82. %{_libdir}/libtidy.so
  83. %changelog
  84. * Mon Aug 23 2010 Munehiro Yamamoto <munepi@vinelinux.org> - 0.99.0-1.20091203
  85. - initial build based on Fedora development
  86. * Thu Dec 03 2009 Rex Dieter <rdieter@fedoraproject.org> - 0.99.0-20.20091203
  87. - 20091203 snapshot
  88. - spec housecleaning
  89. - Tidy erroniously removes whitespace, causing mangled text (#481350)
  90. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99.0-19.20070615
  91. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  92. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99.0-18.20070615
  93. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  94. * Mon Feb 11 2008 Rex Dieter <rdieter@fedoraproject.org> 0.99.0-17.20070615
  95. - respin (gcc43)
  96. * Sat Aug 25 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.99.0-16.20070615
  97. - respin (BuildID)
  98. * Sat Aug 11 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.99.0-15.20070615
  99. - License: W3C
  100. * Tue Jul 31 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.99.0-14.20070615
  101. - BR: libtool (again)
  102. * Mon Jul 09 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.99.0-13.20070615
  103. - 2007-06-15 snapshot
  104. * Wed Feb 28 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.99.0-12.20070228
  105. - 2007-02-28 snapshot
  106. * Tue Aug 29 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.99.0-11.20051025
  107. - fc6 respin
  108. * Wed Jul 12 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.99.0-10.20051025
  109. - fc6 respin
  110. * Wed Mar 1 2006 Rex Dieter <rexdieter[AT]users.sf.net>
  111. - fc5: gcc/glibc respin
  112. * Fri Jan 20 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.99.0-9.20051025
  113. - libtidy returns to be multilib friendly
  114. * Wed Oct 26 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.99.0-8.20051025
  115. - Update to 051025 and docs to 051020
  116. * Tue Aug 9 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.99.0-7.20050803
  117. - -devel: Provides: libtidy-devel (#165452)
  118. * Tue Aug 9 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.99.0-6.20050803
  119. - cleanup doc generation
  120. - add/restore missing docs (manpage, quickref.html)
  121. * Mon Aug 8 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.99.0-5.20050803
  122. - Update to 050803 and docs to 050705
  123. - simplify (fedora.us bug #2071)
  124. - drop missing manpage
  125. * Sun May 22 2005 Jeremy Katz <katzj@redhat.com> - 0.99.0-4.20041214
  126. - rebuild on all arches
  127. * Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
  128. - rebuilt
  129. * Thu Dec 16 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-2.20041214
  130. - Update to 041214 and docs to 041206.
  131. - Build with dependency tracking disabled.
  132. * Sun Oct 3 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.2.20040916
  133. - Update to 040916 and docs to 040810.
  134. * Fri Aug 13 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.2.20040811
  135. - Update to 040811, patches applied upstream.
  136. * Wed Jul 28 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.2.20040720
  137. - Update to 040720.
  138. - Add partial fix (still incorrect for XHTML 1.1) for usemap handling.
  139. * Mon Jul 5 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.2.20040704
  140. - Update to 040704.
  141. * Fri Jun 25 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.2.20040622
  142. - Update to 040622.
  143. * Sat Jun 5 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.2.20040603
  144. - Update to 040603.
  145. * Sat May 15 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.2.20040514
  146. - Update to 040514.
  147. * Sun May 2 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.2.20040318
  148. - Update docs to 040317, and generate API docs ourselves.
  149. * Fri Mar 19 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.1.20040318
  150. - Update to 040318.
  151. * Tue Mar 16 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.1.20040315
  152. - Update to 040315.
  153. * Mon Mar 15 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.1.20040314
  154. - Update to 040314.
  155. * Sun Mar 14 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.1.20040313
  156. - Update to 040313.
  157. * Sun Feb 8 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.1.20040205
  158. - Update to 040205.
  159. * Wed Feb 4 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.1.20040202
  160. - Update to 040202.
  161. * Sun Feb 1 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.1.20040130
  162. - Update to 040130.
  163. * Sun Jan 25 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.1.20040124
  164. - Update to 040124.
  165. - Honor optflags more closely.
  166. * Sun Jan 11 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.1.20040110
  167. - Update to 040110.
  168. * Thu Jan 8 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.1.20040106
  169. - Update to 040106.
  170. * Tue Jan 6 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.1.20040104
  171. - Update to 040104.
  172. * Sun Nov 2 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.1.20031101
  173. - Update to 031101.
  174. * Thu Oct 30 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.1.20031029
  175. - Update to 031029.
  176. * Fri Oct 3 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.1.20031002
  177. - Update to 031002.
  178. * Sat Sep 27 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.1.20030926
  179. - Update to 030926.
  180. * Wed Sep 3 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.1.20030901
  181. - Update to 030901.
  182. * Sat Aug 16 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.1.20030815
  183. - Update to 030815.
  184. * Sat Aug 2 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.1.20030801
  185. - Update to 030801.
  186. * Mon Jul 21 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.1.20030716
  187. - First build.