Group :: Development/C
RPM: lib2geom
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Name: lib2geom
Version: 1.3
Release: alt1
Epoch: 1
Summary: Easy to use 2D geometry library in C++
License: LGPLv2
Group: Development/C
Url: https://gitlab.com/inkscape/lib2geom
Packager: Vitaly Lipatov <lav at altlinux.ru>
# Source-url: https://gitlab.com/inkscape/lib2geom/-/archive/%version/lib2geom-%version.tar.bz2
Source: %name-%version.tar
BuildRequires: boost-devel cmake gcc-c++ libdouble-conversion-devel libgsl-devel libgtest-devel libgtk+3-devel
%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.
%package devel
Summary: Development files for %name
Group: Development/C
%description devel
This package contains development files required
in development of the %name-based applications.
%prep
%setup
%ifarch %e2k
# lcc 1.25.15 barfs at include/2geom/ord.h:54 as of 1.1
sed -i 's,-Werror=return-type,,' CMakeLists.txt
%endif
# fix target lib dir (NB: looks like there are no CMAKE_CXX_FLAGS there in 1.1)
sed -i "s| lib/| %_lib/|g" CMakeLists.txt
sed -i 's,^SET(CMAKE_CXX_FLAGS ",SET(CMAKE_CXX_FLAGS "%optflags -fno-inline -fpermissive ,' CMakeLists.txt
%build
cmake \
-D2GEOM_BUILD_SHARED=ON \
-DCMAKE_INSTALL_PREFIX=%_prefix \
-DCMAKE_SKIP_RPATH=ON \
.
%make_build
%install
%makeinstall_std
sed -i "s|/lib$|/%_lib|" %buildroot%_pkgconfigdir/*
%files
%doc README.md NEWS.md
%_libdir/lib2geom.so.*
%files devel
%_includedir/2geom-*/
%_pkgconfigdir/*
%_libdir/lib2geom.so
%_libdir/cmake/2Geom/
%changelog
…
Full changelog you can see here
Version: 1.3
Release: alt1
Epoch: 1
Summary: Easy to use 2D geometry library in C++
License: LGPLv2
Group: Development/C
Url: https://gitlab.com/inkscape/lib2geom
Packager: Vitaly Lipatov <lav at altlinux.ru>
# Source-url: https://gitlab.com/inkscape/lib2geom/-/archive/%version/lib2geom-%version.tar.bz2
Source: %name-%version.tar
BuildRequires: boost-devel cmake gcc-c++ libdouble-conversion-devel libgsl-devel libgtest-devel libgtk+3-devel
%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.
%package devel
Summary: Development files for %name
Group: Development/C
%description devel
This package contains development files required
in development of the %name-based applications.
%prep
%setup
%ifarch %e2k
# lcc 1.25.15 barfs at include/2geom/ord.h:54 as of 1.1
sed -i 's,-Werror=return-type,,' CMakeLists.txt
%endif
# fix target lib dir (NB: looks like there are no CMAKE_CXX_FLAGS there in 1.1)
sed -i "s| lib/| %_lib/|g" CMakeLists.txt
sed -i 's,^SET(CMAKE_CXX_FLAGS ",SET(CMAKE_CXX_FLAGS "%optflags -fno-inline -fpermissive ,' CMakeLists.txt
%build
cmake \
-D2GEOM_BUILD_SHARED=ON \
-DCMAKE_INSTALL_PREFIX=%_prefix \
-DCMAKE_SKIP_RPATH=ON \
.
%make_build
%install
%makeinstall_std
sed -i "s|/lib$|/%_lib|" %buildroot%_pkgconfigdir/*
%files
%doc README.md NEWS.md
%_libdir/lib2geom.so.*
%files devel
%_includedir/2geom-*/
%_pkgconfigdir/*
%_libdir/lib2geom.so
%_libdir/cmake/2Geom/
%changelog
…
Full changelog you can see here