File liblicense.spec of Package liblicense

Name: liblicense
Version: 0.8
Release: 1
License: LGPL
Group: Development/Libraries
Source: %{name}-%{version}.tar.bz2
# should work with 1.99.5 to 1.99.7
BuildRequires: libexempi-devel >= 1.99.9
%if %suse_version >= 1030  
BuildRequires: libraptor-devel >= 1.0
%else
BuildRequires: raptor-devel >= 1.0
%endif
BuildRequires: gcc-c++
BuildRequires: gnome-common
BuildRequires: sqlite-devel
BuildRequires: taglib-devel
BuildRequires: libgsf-devel
BuildRequires: id3lib-devel
Buildrequires: flac-devel
BuildRequires: ruby-devel >= 1.8.0
BuildRequires: python-devel
BuildRequires: gettext
Requires: ruby
Requires: python
Url: http://www.creativecommons.org/project/Liblicense
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Summary: Content License Library

%description
The liblicense package contains the library, bindings, CLI utilities and license files.

%package devel
Summary:       Content License Library
Requires:      %{name} = %{version}
Group:         Development/Libraries/C and C++

%description devel
The liblicense package contains the library, bindings, CLI utilities and license files.
(Development files)

%prep
%setup -n liblicense-%{version}
%configure  --disable-static

%build
make %{?jobs:-j%jobs}    
# make check currently fail...
#make %{?jobs:-j%jobs} check    

%install
make DESTDIR=$RPM_BUILD_ROOT install
# remove .a and .la from dynamic modules
find $RPM_BUILD_ROOT -name \*.la -exec rm {} \;

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc COPYING
%{_prefix}/bin
%{_prefix}/share
%{_libdir}/*.so.*
%{_libdir}/%{name}/%{version}/
%{_libdir}/python*/site-packages/liblicense/
%{_libdir}/ruby/site_ruby/

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

%changelog
* Thu Jun 12 2008 - hfiguiere@novell.com
- Fix some badness
- Split -devel
* Sat Jan 26 2008 Hubert Figuiere <hub@figuiere.net>
- add a patch for exempi api breakage
* Tue Jan 15 2008 Hubert Figuiere <hub@figuiere.net>
- upgrade to 0.5 and then 0.5.1
* Mon Nov 12 2007 Hubert Figuiere <hub@figuiere.net>
- add patch liblicense-factory-fixes.diff to fix build breakage
  in factory.
* Wed Nov 07 2007 Hubert Figuiere <hub@figuiere.net>
- added patch liblicense-exempi-api.diff for new version of Exempi.
- force dependency on Exempi 1.99.5
- make and make check during build.
* Tue Nov 06 2007 Hubert Figuiere <hub@figuiere.net>
- use configure macro
- use macro for files path to install
* Mon Nov 05 2007 Hubert Figuiere <hub@figuiere.net>
- package for SUSE
* Wed Aug 22 2007 Scott Shawcroft <scott.shawcroft@gmail.com> - 0.4-1
- liblicense 0.4
* Mon Jul 30 2007 Scott Shawcroft <scott.shawcroft@gmail.com> - 0.3-1
- initial liblicense rpm
openSUSE Build Service is sponsored by