File libxml++.spec of Package libxml++

#
# spec file for package libxml++ (Version 2.24.0)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           libxml++
BuildRequires:  fdupes gcc-c++ glibmm2-devel libxml2-devel update-desktop-files
License:        LGPL v2.1 or later
Group:          Development/Libraries/C and C++
AutoReqProv:    on
Version:        2.24.0
Release:        1
Summary:        C++ Interface for XML Files
Source:         %{name}-%{version}.tar.bz2
Url:            http://sourceforge.net/projects/libxmlplusplus/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
libXML++ provides a C++ interface for XML files. It presently uses
libxml2 to access the XML files.



Authors:
--------
    Ari Johnson <ari@lusis.org>

%package devel
License:        LGPL v2.1 or later
Summary:        Include Files and Libraries mandatory for Development.
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version} libsigc++2-devel libstdc++-devel libxml2-devel glibmm2-devel

%description devel
This package contains all necessary include files and libraries needed
to develop applications that require these.



Authors:
--------
    Ari Johnson <ari@lusis.org>

%prep
%setup -q

%build
ACLOCAL="aclocal -I scripts" autoreconf -f -i
%configure\
    --libexecdir=%{_prefix}/lib/%name
make docdir=%{_docdir}/%{name}/docs %{?jobs:-j%jobs}

%install
make install docdir=%{_docdir}/%{name}/docs DESTDIR=$RPM_BUILD_ROOT
cp AUTHORS COPYING ChangeLog NEWS README $RPM_BUILD_ROOT%{_docdir}/%{name}
%fdupes $RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%post
%run_ldconfig

%postun
%run_ldconfig

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

%files devel
%defattr (-, root, root)
%{_includedir}/libxml++-2.6
%dir %{_libdir}/libxml++-2.6
%dir %{_libdir}/libxml++-2.6/include
%{_libdir}/libxml++-2.6/include/*.h
%{_libdir}/pkgconfig/*.pc
%{_libdir}/*.*a
%{_libdir}/*.so
%doc %{_docdir}/%{name}/docs

%changelog
* Fri Oct 03 2008 mboman@suse.de
- Update to version 2.24.0:
  + Added Schema and SchemaValidator classes, demonstrated in
  examples/schemavalidation. bgo#312216
  + Element: Added add_child_text() with a previous_node parameter, for
  adding between existing nodes. Added add_child_text_before() too.
  + Node: Added add_child() with a previous_node parameter, for adding
  between existing nodes. Added add_child_before() too.
  + SaxParser: added parse_chunk_raw().
* Sun Aug 24 2008 mboman@novell.com
- Upgraded to version 2.23.3:
  * Attribute: Return the correct value even when using a namespace.
  bgo#547689
  * Fixed MSVC++ Windows build.
  * SaxParser: added parse_chunk_raw().
  * examples: sax_parser: Catch convert errors when printing an exception to
  std:cout, though libxml++/libxml should always supply valid UTF-8.
  * Added Schema and SchemaValidator classes, demonstrated in
  examples/schemavalidation. bgo#312216.
  * Element: Added add_child_text() with a previous_node parameter, for
  adding between existing nodes. Added add_child_text_before() too.
  * Node: Added add_child() with a previous_node parameter, for adding
  between existing nodes. Added add_child_before() too.
* Thu Apr 03 2008 hpj@suse.de
- Upgraded to version 2.22.0:
  * Document: Fix a memory leak, by calling xmlCleanupParser
  in the destructor.
  * Build: Fix the build with gcc 4.3 pre-releases.
- Removed libxml++-include-memory.patch, now in upstream.
* Wed Nov 21 2007 maw@suse.de
- Add libxml++-include-memory.patch
- Use %%fdupes.
* Wed Sep 19 2007 sbrabec@suse.cz
- Updated to version 2.20.0:
  * Element: Added get_attribute_value(), to get a simple text
  value for an attribute.
  * Added an experimental --enable-api-exceptions configure option,
  to allow libxml++ to build without exceptions.
* Fri Apr 13 2007 maw@suse.de
- Update to version 2.18.0
- Fixes for bugzilla.gnome.org #380110, #351867, #361950, #351215,
  and #351876.
* Fri Jan 12 2007 sbrabec@suse.cz
- Spec file cleanup.
* Sat Dec 16 2006 maw@suse.de
- Move to /usr
* Tue Nov 28 2006 sbrabec@suse.cz
- Require new package name glibmm2-devel.
* Wed Nov 01 2006 meissner@suse.de
- use RPM_OPT_FLAGS
* Tue Sep 19 2006 jhargadon@suse.de
- update to version 2.14.0
- Improved ContentNode documentation
- Added find() overload that takes namespaces to register during the search,
  using xmlXPathRegisterNs(). Bug #323935
- set_namespace(): When creating a default namespace, avoid the
  "The namespace () has not been declared" warning, by passing 0 to
  xmlSearchNs() instead of an empty string. Bug #318186
- Build: Fix buildir!=srcdir builds. Bug #319863.
- Tutorial: Mention pkg-config
- Reference: Grammar fixes and a small fix for find
* Fri Mar 24 2006 ro@suse.de
- re-enable autoreconf to fix build on ppc64 and s390x
* Mon Feb 27 2006 aj@suse.de
- Reduce BuildRequires.
* Thu Jan 26 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Sat Nov 05 2005 gekker@suse.de
- Initial import of package into autobuild, version 2.12.0