libxml++-vl.spec 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. %global apiver 2.6
  2. Name: libxml++
  3. Version: 2.32.0
  4. Release: 1%{?_dist_release}
  5. Summary: C++ wrapper for the libxml2 XML parser library
  6. Summary(ja): libxml2 XML 解析ライブラリの C++ ラッパー
  7. Group: System Environment/Libraries
  8. License: LGPLv2+
  9. URL: http://libxmlplusplus.sourceforge.net/
  10. Source: http://ftp.gnome.org/pub/GNOME/sources/libxml++/2.32/libxml++-%{version}.tar.bz2
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildRequires: libxml2-devel >= 2.6.1
  13. BuildRequires: glibmm-devel >= 2.4.0
  14. BuildRequires: doxygen, graphviz
  15. %description
  16. libxml++ is a C++ wrapper for the libxml2 XML parser library. It's original
  17. author is Ari Johnson and it is currently maintained by Christophe de Vienne
  18. and Murray Cumming.
  19. %package devel
  20. Summary: Development files for %{name}
  21. Summary(ja): %{name} の開発用ファイル
  22. Group: Development/Libraries
  23. Requires: %{name} = %{version}-%{release}
  24. Requires: pkgconfig
  25. Requires: libxml2-devel
  26. Requires: glibmm-devel
  27. %description devel
  28. This package contains the headers and libraries for libxml++ development.
  29. %prep
  30. %setup -q
  31. # fix wrong end of line
  32. sed -i s'#\r##' examples/dom_parser/example_with_namespace.xml
  33. %build
  34. %configure \
  35. %if %{?_dist_release} == "vl5"
  36. --disable-documentation \
  37. %endif
  38. --disable-static
  39. make %{?_smp_mflags}
  40. %install
  41. rm -rf $RPM_BUILD_ROOT
  42. %makeinstall
  43. find $RPM_BUILD_ROOT -name "*.la" -o -name '*.a' | xargs rm -f
  44. # Modify temporary working directories for files section.
  45. rm -rf _reference _examples _manual
  46. mkdir -m 755 _reference _examples _manual
  47. %if %{?_dist_release} != "vl5"
  48. cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{apiver}/reference/html _reference/reference
  49. %endif
  50. cp -a docs/manual/html _manual/manual
  51. cp -a examples _examples/examples
  52. rm -rf $RPM_BUILD_ROOT%{_docdir}
  53. # Delete non-working makefiles, object files, prebuilt binaries and
  54. # empty files.
  55. find _examples -type f -a \( -name Makefile\* -o -name \*.o \
  56. -o \( -name example -a -perm +0111 \) -o -empty \) | xargs rm -f
  57. find _examples -type d -name '*.libs' -o -name '.deps' | xargs rm -rf
  58. %if %{?_dist_release} != "vl5"
  59. # fix devhelp index file
  60. sed -i "s#"$RPM_BUILD_ROOT"##g" \
  61. $RPM_BUILD_ROOT%{_datadir}/devhelp/books/%{name}-%{apiver}/%{name}-%{apiver}.devhelp2
  62. sed -i "s#"/%{name}-%{apiver}/reference/html"#"/%{name}-devel-%{version}/reference"#" \
  63. $RPM_BUILD_ROOT%{_datadir}/devhelp/books/%{name}-%{apiver}/%{name}-%{apiver}.devhelp2
  64. %endif
  65. %post -p /sbin/ldconfig
  66. %postun -p /sbin/ldconfig
  67. %clean
  68. rm -rf $RPM_BUILD_ROOT
  69. %files
  70. %defattr (-,root,root,-)
  71. %doc AUTHORS COPYING NEWS README ChangeLog
  72. %{_libdir}/*.so.*
  73. %files devel
  74. %defattr (-,root,root,-)
  75. %doc _examples/examples _manual/manual
  76. %{_includedir}/*
  77. %{_libdir}/*.so
  78. %{_libdir}/pkgconfig/*
  79. %dir %{_libdir}/%{name}-%{apiver}
  80. %dir %{_libdir}/%{name}-%{apiver}/include
  81. %{_libdir}/%{name}-%{apiver}/include/*.h
  82. %if %{?_dist_release} != "vl5"
  83. %doc _reference/reference
  84. %{_datadir}/devhelp/books/%{name}-%{apiver}/%{name}-%{apiver}.devhelp2
  85. %endif
  86. %changelog
  87. * Thu Jan 27 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.32.0-1
  88. - new upstream release
  89. - fixed spec file for Vine Linux 5
  90. - added Japanese summary
  91. * Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.0-3
  92. - rebuild with rpm-4.8.1 for pkg-config file
  93. * Thu Sep 9 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.30.0-2
  94. - Initial build for VineLinux
  95. * Fri Apr 09 2010 Haïkel Guémar <hguemar@gmail.com> - 2.30.0-1
  96. - Update to upstream 2.30.0
  97. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.26.0-2
  98. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  99. * Sun Apr 12 2009 Denis Leroy <denis@poolshark.org> - 2.26.0-1
  100. - Update to upstream 2.26.0 (to match Gnome release)
  101. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.24.2-2
  102. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  103. * Thu Jan 15 2009 Denis Leroy <denis@poolshark.org> - 2.24.2-1
  104. - Update to 2.24.2 (memleak fixes)
  105. - Fixed Gnome FTP URL
  106. * Fri Aug 29 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 2.23.2-2
  107. - Include unowned directories
  108. * Tue Aug 5 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.23.2-1
  109. - update to 2.23.2
  110. * Tue May 13 2008 Denis Leroy <denis@poolshark.org>
  111. - Removed unneeded example binaries from devel package
  112. * Thu Mar 13 2008 Denis Leroy <denis@poolshark.org> - 2.22.0-1
  113. - Update to upstream 2.22.0
  114. - GCC 4.3 patch upstreamed
  115. * Sun Feb 17 2008 Denis Leroy <denis@poolshark.org> - 2.20.0-2
  116. - Added patch for gcc 4.3 rebuild
  117. * Thu Sep 20 2007 Denis Leroy <denis@poolshark.org> - 2.20.0-1
  118. - Update to new 2.20 stable branch
  119. * Thu Aug 16 2007 Denis Leroy <denis@poolshark.org> - 2.18.2-2
  120. - Update to upstream 2.18.2 (mem leak fix)
  121. - Fixed License tag
  122. * Wed Jul 25 2007 Jesse Keating <jkeating@redhat.com> - 2.18.1-2
  123. - Rebuild for RH #249435
  124. * Tue Jul 24 2007 Denis Leroy <denis@poolshark.org> - 2.18.1-1
  125. - Update to version 2.18.1
  126. * Sun Sep 03 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 2.14.0-1.1
  127. - FC6 rebuild
  128. * Tue May 02 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 2.14.0-1
  129. - Version 2.14.0
  130. * Mon Feb 13 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 2.12.0-2.1
  131. - FC5 Rebuild
  132. * Thu Jan 26 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 2.12.0-2
  133. - Rebuilt to address RH #178592
  134. * Thu Sep 08 2005 Konstantin Ryabitsev <icon@linux.duke.edu> - 2.12.0-1
  135. - Version 2.12.0
  136. - Use --disable-static for configure.
  137. * Thu Jul 21 2005 Konstantin Ryabitsev <icon@linux.duke.edu> - 2.10.0-1
  138. - Version 2.10.0
  139. - Rearrange and conform to new FE standards
  140. - Buildrequire glibmm24-devel
  141. - Add devel requires to -devel
  142. * Sun May 22 2005 Jeremy Katz <katzj@redhat.com> - 0.26.0-5
  143. - rebuild on all arches
  144. * Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
  145. - rebuilt
  146. * Tue Nov 04 2003 Panu Matilainen <pmatilai@welho.com> - 0:0:26.0-0.fdr.3
  147. - remove empty .libs directories
  148. * Mon Nov 3 2003 Michael Schwendt <mschwendt[AT]users.sf.net> - 0:0.26.0-0.fdr.2
  149. - buildrequires graphviz
  150. - devel package requires main package and pkgconfig
  151. - own %%_includedir/libxml++-1.0
  152. - clean up examples tree
  153. * Tue Oct 21 2003 Panu Matilainen <pmatilai@welho.com>
  154. - Initial Fedora packaging