File gmetadom.spec of Package gmetadom

#
# spec file for package gmetadom (Version 0.2.6)
#
# 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/
#


Url:            http://gmetadom.sourceforge.net/

Name:           gmetadom
Version:        0.2.6
Release:        4
License:        LGPL v2.1 or later
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  gcc-c++
BuildRequires:  libxslt
BuildRequires:  gdome2-devel >= 0.8.0
Source0:        %{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM gmetadom-gcc43-fixes.patch -- http://sourceforge.net/tracker/index.php?func=detail&aid=2055331&group_id=40627&atid=428476
Patch:          gmetadom-gcc43-fixes.patch
Patch1:         gmetadom-0.2.6-no_static.patch
Group:          System/Libraries
Summary:        A Collection of DOM Implementations
%define debug_package_requires libgmetadom_gdome_cpp_smart0 = %{version}-%{release}

%description
GMetaDOM is a collection of librares, each library providing a DOM
implementation. Currently available bindings are for C++ (smart
pointers) and Objective Caml.



Authors:
--------
    Luca Padovani <luca.padovani@cs.unibo.it>
    Claudio Sacerdoti Coen <sacerdot@cs.unibo.it>

%package -n libgmetadom_gdome_cpp_smart0
License:        LGPL v2.1 or later
Group:          System/Libraries
Summary:        A Collection of DOM Implementations

%description -n libgmetadom_gdome_cpp_smart0
GMetaDOM is a collection of librares, each library providing a DOM
implementation. Currently available bindings are for C++ (smart
pointers) and Objective Caml.



Authors:
--------
    Luca Padovani <luca.padovani@cs.unibo.it>
    Claudio Sacerdoti Coen <sacerdot@cs.unibo.it>

%package devel
License:        LGPL v2.1 or later
Summary:        A Collection of DOM Implementations
Requires:       libgmetadom_gdome_cpp_smart0 = %{version}
Requires:       gdome2-devel >= 0.8.0
Group:          System/Libraries

%description devel
GMetaDOM is a collection of librares, each library providing a DOM
implementation. Currently available bindings are for C++ (smart
pointers) and Objective Caml.



Authors:
--------
    Luca Padovani <luca.padovani@cs.unibo.it>
    Claudio Sacerdoti Coen <sacerdot@cs.unibo.it>

%prep
%setup -q 
%patch -p1
%patch1

%build
autoreconf -fiv
%configure --disable-static --with-pic
%{__make} %{?jobs:-j%jobs}

%install
DESTDIR=$RPM_BUILD_ROOT make install
find $RPM_BUILD_ROOT -name \*.la -exec rm {} \;

%post -n libgmetadom_gdome_cpp_smart0 -p /sbin/ldconfig

%postun -n libgmetadom_gdome_cpp_smart0 -p /sbin/ldconfig

%clean
rm -rf "$RPM_BUILD_ROOT"

%files -n libgmetadom_gdome_cpp_smart0
%defattr(-,root,root)
%{_libdir}/lib*.so.*

%files devel
%defattr(-,root,root)
%{_libdir}/pkgconfig/*.pc
%{_includedir}/%{name}
%{_libdir}/*.so

%changelog
* Thu May 28 2009 vuntz@novell.com
- Fix tag of gmetadom-gcc43-fixes.patch.
* Wed Apr 15 2009 crrodriguez@suse.de
- use --disable-static instead of removing static libraries at install
* Tue Jan 13 2009 hfiguiere@suse.de
- Initial submission.
openSUSE Build Service is sponsored by