File libxml++.spec of Package libxml++

#
# spec file for package libxml++
#
# Copyright (c) 2011 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
BuildRequires:  gcc-c++
BuildRequires:  glibmm2-devel
BuildRequires:  libxml2-devel
License:        LGPLv2.1+
Group:          Development/Libraries/C and C++
Version:        2.34.2
Release:        1
Summary:        C++ Interface for XML Files
Source:         http://download.gnome.org/sources/libxml++/2.34/%{name}-%{version}.tar.bz2
Source1:        baselibs.conf
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.

%package -n libxml++-2_6-2
License:        LGPLv2.1+
Summary:        C++ Interface for XML Files
Group:          Development/Libraries/C and C++
Provides:       %{name} = %{version}
Obsoletes:      %{name} < %{version}

%description -n libxml++-2_6-2
libXML++ provides a C++ interface for XML files. It presently uses
libxml2 to access the XML files.

%package devel
License:        LGPLv2.1+
Summary:        C++ Interface for XML Files -- Development Files
Group:          Development/Libraries/C and C++
Requires:       libxml++-2_6-2 = %{version}
Requires:       glibmm2-devel

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

%prep
%setup -q

%build
%configure --disable-static --with-pic
make %{?jobs:-j%jobs}

%install
%makeinstall
%{__rm} -f %{buildroot}%{_libdir}/*.la
%fdupes $RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%post -n libxml++-2_6-2 -p /sbin/ldconfig

%postun -n libxml++-2_6-2 -p /sbin/ldconfig

%files -n libxml++-2_6-2
%defattr (-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS 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}/*.so
%{_datadir}/devhelp/books/libxml++-2.6/
%{_datadir}/doc/libxml++-2.6/
# Avoid BuildRequires on devhelp
%dir %{_datadir}/devhelp
%dir %{_datadir}/devhelp/books

%changelog
openSUSE Build Service is sponsored by