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