tinyxml-vl.spec 3.5 KB

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