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