File exempi.spec of Package exempi

#
# spec file for package exempi (Version 2.0.0)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           exempi
Url:            http://libopenraw.freedesktop.org/
BuildRequires:  boost-devel >= 1.33.0 gcc-c++ libexpat-devel
BuildRequires:  zlib-devel
Version:        2.1.0
Release:        1
Summary:        XMP support library
License:        BSD 3-Clause
Group:          Development/Libraries/C and C++
Source0:        http://libopenraw.freedesktop.org/download/%{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM
Patch0:         exempi-rpmlint.diff
AutoReqProv:    on
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%define debug_package_requires libexempi3 = %{version}

%description
XMP parsing and IO library



Authors:
--------
    Hubert Figuiere <hub@figuiere.net>
    Adobe Systems Incorporated (XMP SDK)
    Ian Jacobi
    Jason Kivlighn

%package -n libexempi3
License:        BSD 3-Clause
Summary:        XMP support library
Group:          Development/Libraries/C and C++

%description -n libexempi3
XMP parsing and IO library



Authors:
--------
    Hubert Figuiere <hub@figuiere.net>
    Adobe Systems Incorporated (XMP SDK)
    Ian Jacobi
    Jason Kivlighn

%package -n libexempi-devel
License:        BSD 3-Clause
Summary:        XMP support library
Requires:       libexempi3 = %{version} libexpat-devel
Group:          Development/Libraries/C and C++

%description -n libexempi-devel
XMP parsing and IO library



Authors:
--------
    Hubert Figuiere <hub@figuiere.net>
    Adobe Systems Incorporated (XMP SDK)
    Ian Jacobi
    Jason Kivlighn

%prep
%setup -q
%patch0 -p1

%build
export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
%configure --disable-static
%__make %{?jobs:-j%jobs}    

%install
%makeinstall
#remove the *.la
find $RPM_BUILD_ROOT -name \*.la -exec rm {} \;

%post -n libexempi3 -p /sbin/ldconfig

%postun -n libexempi3 -p /sbin/ldconfig

%clean
rm -rf $RPM_BUILD_ROOT

%files -n libexempi3
%defattr(-,root,root)
%doc README COPYING ChangeLog
%{_libdir}/lib*.so.*

%files -n libexempi-devel
%defattr(-,root,root)
%doc README COPYING ChangeLog
%{_libdir}/lib*.so
%{_includedir}/exempi-2.0
%{_libdir}/pkgconfig/*.pc

%changelog
* Fri Aug 01 2008 ro@suse.de
- fix requires for debuginfo package
* Wed Apr 02 2008 vuntz@suse.de
- New upstream version 2.0.0:
  + Bug fdo#14614, Bug fdo#15263: endian detection in configure.
  + Bug fdo#14615: missing includes for Solaris.
* Fri Mar 14 2008 hfiguiere@suse.de
- New upstream version 1.99.9
  + Typo fix in API
  + Buffer overflow fix in GIF handler (bgo #484105)
* Fri Jan 18 2008 jpr@suse.de
- Initial checkin
openSUSE Build Service is sponsored by