File libxml++.spec of Package libxml++
#
# spec file for package libxml++ (Version 2.26.1)
#
# Copyright (c) 2009 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: LGPL v2.1 or later
Group: Development/Libraries/C and C++
Version: 2.26.1
Release: 1
Summary: C++ Interface for XML Files
Source: %{name}-%{version}.tar.bz2
Url: http://sourceforge.net/projects/libxmlplusplus/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Patch: libxml++-2.24.0-pkgconfig-requires-private.patch
%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} 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
%patch
%build
#ACLOCAL="aclocal -I scripts" autoreconf -f -i -v
%configure --disable-static --with-pic\
--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
%{__rm} -f %{buildroot}%{_libdir}/*.la
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/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}/*.so
%doc %{_docdir}/%{name}/docs
%changelog