From 7548424d8f163d0a46555fc02407434ee84d4be7 Mon Sep 17 00:00:00 2001 From: tigro Date: Wed, 25 Dec 2024 21:39:24 +0300 Subject: [PATCH] import lib2geom-1.4-2.el10 --- .gitignore | 1 + .lib2geom.metadata | 1 + SPECS/lib2geom.spec | 124 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 126 insertions(+) create mode 100644 .gitignore create mode 100644 .lib2geom.metadata create mode 100644 SPECS/lib2geom.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9288812 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/lib2geom-1.4.tar.bz2 diff --git a/.lib2geom.metadata b/.lib2geom.metadata new file mode 100644 index 0000000..123fcb2 --- /dev/null +++ b/.lib2geom.metadata @@ -0,0 +1 @@ +1c0d74031f2c01654ae83cdc36e0f5ad4a6287d1 SOURCES/lib2geom-1.4.tar.bz2 diff --git a/SPECS/lib2geom.spec b/SPECS/lib2geom.spec new file mode 100644 index 0000000..45889f5 --- /dev/null +++ b/SPECS/lib2geom.spec @@ -0,0 +1,124 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.2) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 2; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec + +%global forgeurl https://gitlab.com/inkscape/lib2geom +Version: 1.4 +%forgemeta + +Name: lib2geom +Release: %autorelease +Summary: Easy to use 2D geometry library in C++ + +License: LGPL-2.1-only AND MPL-1.1 +URL: %{forgeurl} +Source0: %{forgesource} + +BuildRequires: gcc-c++ +BuildRequires: cmake +BuildRequires: ninja-build +BuildRequires: boost-devel +BuildRequires: gsl-devel +BuildRequires: double-conversion-devel +BuildRequires: gtest-devel +BuildRequires: ragel + +BuildRequires: pkgconfig(gtk+-3.0) +BuildRequires: pkgconfig(glib-2.0) +BuildRequires: pkgconfig(cairo) +BuildRequires: pkgconfig(gsl) + +%description +2Geom is a C++ 2D geometry library geared towards robust processing of +computational geometry data associated with vector graphics. + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +The %{name}-devel package contains development files for %{name}. + +%prep +%forgeautosetup -p1 + +%build +%ifarch aarch64 ppc64le riscv64 s390x +export CFLAGS="%{optflags} -ffp-contract=off" +export CXXFLAGS="%{optflags} -ffp-contract=off" +%endif + +%cmake \ + -GNinja \ + -DCMAKE_BUILD_TYPE=Release \ + -D2GEOM_BUILD_SHARED=ON \ + -DCMAKE_SKIP_INSTALL_RPATH=ON \ + +%cmake_build + +%install +%cmake_install + +%check +%ifarch %{ix86} x86_64 +%ctest +#%%else +#%%ctest -E CoincidingIntersect +%endif + +%files +%license COPYING-LGPL-2.1 COPYING-MPL-1.1 +%doc README.md +%{_libdir}/lib2geom.so.1.4* + +%files devel +%dir %{_includedir}/2geom-* +%{_includedir}/2geom-*/2geom/ +%{_libdir}/cmake/2Geom/ +%{_libdir}/lib2geom.so +%{_libdir}/pkgconfig/2geom.pc + +%changelog +* Wed Dec 25 2024 Arkady L. Shane - 1.4-2 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Mon Oct 14 2024 Gwyn Ciesla - 1.4-2 +- Only run tests on x86 + +* Mon Oct 14 2024 Gwyn Ciesla - 1.4-1 +- 1.4 + +* Thu Jul 18 2024 Fedora Release Engineering - 1.3-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Apr 05 2024 topazus - 1.3-8 +- Fix testing error on non-x86; rhbz#2273660 + +* Fri Mar 29 2024 Kanak Shilledar - 1.3-7 +- add compiler flags for riscv64 + +* Thu Jan 25 2024 Fedora Release Engineering - 1.3-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 1.3-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Dec 25 2023 topazus - 1.3-4 +- disable packit on epel + +* Mon Dec 25 2023 topazus - 1.3-3 +- add packit + +* Fri Aug 11 2023 topazus - 1.3-2 +- add i686 + +* Fri Jul 28 2023 topazus - 1.3-1 +- initial import (RHBZ#2226762) +## END: Generated by rpmautospec