tinyxml-vl.spec 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. %define underscore_version 2_6_1
  2. Name: tinyxml
  3. Version: 2.6.1
  4. Release: 3%{?_dist_release}
  5. Summary: A simple, small, C++ XML parser
  6. Summary(ja): シンプルで小さな C++ XML パーサー
  7. Group: System Environment/Libraries
  8. License: zlib
  9. URL: http://www.grinninglizard.com/tinyxml/
  10. Source0: http://downloads.sourceforge.net/%{name}/%{name}_%{underscore_version}.tar.gz
  11. Patch0: tinyxml-2.5.3-stl.patch
  12. Patch1: entity.patch
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. %description
  15. TinyXML is a simple, small, C++ XML parser that can be easily integrating
  16. into other programs. Have you ever found yourself writing a text file parser
  17. every time you needed to save human readable data or serialize objects?
  18. TinyXML solves the text I/O file once and for all.
  19. (Or, as a friend said, ends the Just Another Text File Parser problem.)
  20. %package devel
  21. Summary: Development files for %{name}
  22. Summary(ja): %{name} の開発ファイル
  23. Group: Development/Libraries
  24. Requires: %{name} = %{version}-%{release}
  25. %description devel
  26. The %{name}-devel package contains libraries and header files for
  27. developing applications that use %{name}.
  28. %prep
  29. %setup -q -n %{name}
  30. %patch0 -p1 -b .stl
  31. %patch1
  32. touch -r tinyxml.h.stl tinyxml.h
  33. %build
  34. # Not really designed to be build as lib, DYI
  35. for i in tinyxml.cpp tinystr.cpp tinyxmlerror.cpp tinyxmlparser.cpp; do
  36. g++ $RPM_OPT_FLAGS -fPIC -o $i.o -c $i
  37. done
  38. g++ $RPM_OPT_FLAGS -shared -o lib%{name}.so.0.%{version} \
  39. -Wl,-soname,lib%{name}.so.0 *.cpp.o
  40. %install
  41. rm -rf $RPM_BUILD_ROOT
  42. # Not really designed to be build as lib, DYI
  43. mkdir -p $RPM_BUILD_ROOT%{_libdir}
  44. mkdir -p $RPM_BUILD_ROOT%{_includedir}
  45. install -m 755 lib%{name}.so.0.%{version} $RPM_BUILD_ROOT%{_libdir}
  46. ln -s lib%{name}.so.0.%{version} $RPM_BUILD_ROOT%{_libdir}/lib%{name}.so.0
  47. ln -s lib%{name}.so.0.%{version} $RPM_BUILD_ROOT%{_libdir}/lib%{name}.so
  48. install -p -m 644 %{name}.h $RPM_BUILD_ROOT%{_includedir}
  49. %clean
  50. rm -rf $RPM_BUILD_ROOT
  51. %post -p /sbin/ldconfig
  52. %postun -p /sbin/ldconfig
  53. %files
  54. %defattr(-,root,root,-)
  55. %doc changes.txt readme.txt
  56. %{_libdir}/*.so.*
  57. %files devel
  58. %defattr(-,root,root,-)
  59. %doc docs/*
  60. %{_includedir}/*
  61. %{_libdir}/*.so
  62. %changelog
  63. * Wed Sep 29 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.6.1-3
  64. - rebuilt with rpm-4.8.1 for pkg-config
  65. * Sun Aug 15 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.6.1-2
  66. - added patch1 to fix incorrect entity encoding from upstream BTS
  67. * Tue Mar 23 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.6.1-1
  68. - new upstream release
  69. * Mon Mar 22 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.6.0-1
  70. - new upstream release
  71. - applied new naming policy to spec
  72. - added summary(ja)
  73. * Tue Mar 02 2010 Shu KONNO <owa@bg.wakwak.com> 2.5.3-3
  74. - rebuilt with new toolchain
  75. * Sat May 9 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.5.3-2vl5
  76. - fixed %BuildRoot
  77. - spec in UTF-8
  78. * Wed Jan 21 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.5.3-1vl5
  79. - initial build for VineSeed
  80. - import Fedora's 2.5.3-3
  81. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.5.3-3
  82. - Autorebuild for GCC 4.3
  83. * Fri Dec 14 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 2.5.3-2
  84. - Various improvements from review (bz 407571)
  85. * Fri Nov 30 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 2.5.3-1
  86. - Initial Fedora Package