File lib2geom3_0.spec of Package 2geom
#
# spec file for lib2geom
#
%define _version 0.3
%define _release 0
%define _libname lib2geom
%define _abiversion 3_0
Name: %{_libname}%{_abiversion}
BuildRequires: boost-devel cmake gcc-c++ gsl-devel glib2-devel ragel6 gtk2-devel
#BuildRequires: boost-devel cmake gcc-c++ gsl-devel glib2-devel gtk2-devel
License: LGPL,MPL
Version: %{_version}.%{_release}
Summary: A robust computational geometry library
Release: %{_release}
Group: System/Libraries
Url: http://lib2geom.sourceforge.net/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
#BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Packager: Thorsten Behrens <thb@openoffice.org>
Source: %{_libname}-%{_version}.tar.gz
%description
lib2geom (2Geom in private life) was initially a library developed for
Inkscape but will provide a robust computational geometry framework for
any application. It is not a rendering library, instead concentrating
on high level algorithms such as computing arc length, clipping
polygons and the like.
%package devel
Summary: Development files for %name
Group: Development/Libraries/C and C++
Requires: %{_libname}%{_abiversion} = %version
%description devel
This package contains development files required
in development of the %name-based applications.
%prep
%setup -q -n %{_libname}-%{_version}
%build
# fix target lib dir
sed -i -e ' s/ lib/ %_lib/g' src/2geom/CMakeLists.txt
cmake \
-D 2GEOM_BUILD_SHARED=ON \
-D 2GEOM_TOYS=OFF \
-D 2GEOM_LPE_TOYS=OFF \
-D CMAKE_INSTALL_PREFIX=%_prefix \
-D MAKE_SKIP_RPATH:BOOL=OFF \
.
make %{?jobs:-j%jobs}
%install
make DESTDIR=$RPM_BUILD_ROOT install
strip $RPM_BUILD_ROOT/usr/%{_lib}/%{_libname}.so.*
%post -n %{_libname}%{_abiversion} -p /sbin/ldconfig
%postun -n %{_libname}%{_abiversion} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root)
%doc HACKING.txt TODO
%{_includedir}/2geom-0.3/
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%changelog
* Sun Feb 07 2010 Thorsten Behrens <thb@openoffice.org> 20100207-thb
- hacked into shape for buildservice
* Tue Nov 04 2008 Vitaly Lipatov <lav@altlinux.ru> 20081103-alt1
- new version (20081103)
* Sat May 31 2008 Vitaly Lipatov <lav@altlinux.ru> 20080530-alt1
- new version 20080530 (with rpmrb script)
* Mon Mar 31 2008 Vitaly Lipatov <lav@altlinux.ru> 20080331-alt1
- initial build for ALT Linux Sisyphus