File libbasegfx0.spec of Package basegfx

#
# spec file for libbasegfx
#
%define _version 0.0.1
%define _release 1
%define _libname libbasegfx0

Name:           %{_libname}
BuildRequires:  boost-devel gcc-c++
License:        GNU Lesser General Public License (LGPL)
Version:        %{_version}.%{_release}
Summary: 		Algorithms and data types for graphics
Release: 		%{_release}
Source:         basegfx-%{_version}.tar.gz
Group: 			System/Libraries
URL: 			http://gitorious.org/basegfx
BuildRoot:      %{_tmppath}/%{name}-%{version}-build  

%description
The basegfx library is a spin-off from one of OpenOffice.org’s core
libraries, and provides algorithms and data types for graphics
(e.g. polygons, vectors, matrices, and the like). It features things
as a general polygon clipper, 2D and 3D software rasterizers, and
support for svg.

%package devel  
License:        GNU Lesser General Public License (LGPL)
Summary: 		Algorithms and data types for graphics
Group: 			Development/Libraries/C and C++
Requires:       %{_libname} = %version
  
%description devel  
The basegfx library is a spin-off from one of OpenOffice.org’s core
libraries, and provides algorithms and data types for graphics
(e.g. polygons, vectors, matrices, and the like). It features things
as a general polygon clipper, 2D and 3D software rasterizers, and
support for svg.

This package contains the basegfx development files

%prep  
%setup -n basegfx-%{_version}

%build
./configure --prefix=/usr --includedir=/usr/include/basegfx --libdir=%{_libdir}
make %{?jobs:-j%jobs}

%install
make DESTDIR=$RPM_BUILD_ROOT install-strip

%clean
rm -rf $RPM_BUILD_ROOT

%post -n %{_libname} -p /sbin/ldconfig  
%postun -n %{_libname} -p /sbin/ldconfig  

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

%files devel
%defattr(-,root,root)
%doc README
%{_libdir}/*.so
%{_libdir}/*.a
%{_libdir}/*.la
%{_includedir}/basegfx

%changelog
* Sun Oct 4 2009 thb@openoffice.org 0.0.1
- initial packaging
openSUSE Build Service is sponsored by