source: projects/specs/trunk/lib/libx/libxml++/libxml++-vl.spec @ 6335

Revision 6335, 6.3 KB checked in by kudoh, 12 years ago (diff)

%global apiver 2.6
Name: libxml++
Version: 2.34.2
Release: 1%{?_dist_release}
Summary: C++ wrapper for the libxml2 XML parser library
Summary(ja): libxml2 XML 解析ライブラリの C++ ラッパー

Group: System Environment/Libraries?
License: LGPLv2+
URL:  http://libxmlplusplus.sourceforge.net/

Source:  http://ftp.gnome.org/pub/GNOME/sources/libxml++/2.34/libxml++-%{version}.tar.xz

BuildRoot?: %{_tmppath}/%{name}-%{version}-root
BuildRequires?: libxml2-devel >= 2.6.1
BuildRequires?: glibmm-devel >= 2.4.0
BuildRequires?: doxygen, graphviz

%description
libxml++ is a C++ wrapper for the libxml2 XML parser library. It's original
author is Ari Johnson and it is currently maintained by Christophe de Vienne
and Murray Cumming.

%package devel
Summary: Development files for %{name}
Summary(ja): %{name} の開発用ファイル
Group: Development/Libraries?
Requires: %{name} = %{version}-%{release}
Requires: pkgconfig
Requires: libxml2-devel
Requires: glibmm-devel

%description devel
This package contains the headers and libraries for libxml++ development.

%prep
%setup -q
# fix wrong end of line
sed -i s'#\r##' examples/dom_parser/example_with_namespace.xml

%build
%configure \
%if %{?_dist_release} == "vl5"

--disable-documentation \

%endif

--disable-static

make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall
find $RPM_BUILD_ROOT -name "*.la" -o -name '*.a' | xargs rm -f

# Modify temporary working directories for files section.
rm -rf _reference _examples _manual
mkdir -m 755 _reference _examples _manual

%if %{?_dist_release} != "vl5"
cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{apiver}/reference/html _reference/reference
%endif
cp -a docs/manual/html _manual/manual
cp -a examples _examples/examples
rm -rf $RPM_BUILD_ROOT%{_docdir}

# Delete non-working makefiles, object files, prebuilt binaries and
# empty files.
find _examples -type f -a \( -name Makefile\* -o -name \*.o \

-o \( -name example -a -perm +0111 \) -o -empty \) | xargs rm -f

find _examples -type d -name '*.libs' -o -name '.deps' | xargs rm -rf

%if %{?_dist_release} != "vl5"
# fix devhelp index file
sed -i "s#"$RPM_BUILD_ROOT"##g" \

$RPM_BUILD_ROOT%{_datadir}/devhelp/books/%{name}-%{apiver}/%{name}-%{apiver}.devhelp2

sed -i "s#"/%{name}-%{apiver}/reference/html"#"/%{name}-devel-%{version}/reference"#" \

$RPM_BUILD_ROOT%{_datadir}/devhelp/books/%{name}-%{apiver}/%{name}-%{apiver}.devhelp2

%endif

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr (-,root,root,-)
%doc AUTHORS COPYING NEWS README ChangeLog?
%{_libdir}/*.so.*

%files devel
%defattr (-,root,root,-)
%doc _examples/examples _manual/manual
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%dir %{_libdir}/%{name}-%{apiver}
%dir %{_libdir}/%{name}-%{apiver}/include
%{_libdir}/%{name}-%{apiver}/include/*.h
%if %{?_dist_release} != "vl5"
%doc _reference/reference
%{_datadir}/devhelp/books/%{name}-%{apiver}/%{name}-%{apiver}.devhelp2
%endif

%changelog

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