tinyxml-vl.spec 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. %define underscore_version 2_6_1
  2. Name: tinyxml
  3. Version: 2.6.1
  4. Release: 2%{?_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. * Sun Aug 15 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.6.1-2
  64. - added patch1 to fix incorrect entity encoding from upstream BTS
  65. * Tue Mar 23 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.6.1-1
  66. - new upstream release
  67. * Mon Mar 22 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.6.0-1
  68. - new upstream release
  69. - applied new naming policy to spec
  70. - added summary(ja)
  71. * Tue Mar 02 2010 Shu KONNO <owa@bg.wakwak.com> 2.5.3-3
  72. - rebuilt with new toolchain
  73. * Sat May 9 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.5.3-2vl5
  74. - fixed %BuildRoot
  75. - spec in UTF-8
  76. * Wed Jan 21 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.5.3-1vl5
  77. - initial build for VineSeed
  78. - import Fedora's 2.5.3-3
  79. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.5.3-3
  80. - Autorebuild for GCC 4.3
  81. * Fri Dec 14 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 2.5.3-2
  82. - Various improvements from review (bz 407571)
  83. * Fri Nov 30 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 2.5.3-1
  84. - Initial Fedora Package