2021-06-29 10:45:44 +02:00
|
|
|
#
|
|
|
|
# spec file for package lib2geom
|
|
|
|
#
|
2023-03-06 07:59:19 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2021-06-29 10:45:44 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%define __builder ninja
|
2023-07-25 08:03:41 +02:00
|
|
|
%define sonum 1_3_0
|
|
|
|
%define sover 1.3.0
|
2021-06-29 10:45:44 +02:00
|
|
|
%define libname lib2geom%{sonum}
|
|
|
|
%define develname 2geom
|
2023-07-25 08:03:41 +02:00
|
|
|
%define short_version 1.3
|
2021-06-29 10:45:44 +02:00
|
|
|
Name: lib2geom
|
2023-07-25 08:03:41 +02:00
|
|
|
Version: 1.3.0
|
2021-06-29 10:45:44 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Easy to use 2D geometry library in C++
|
|
|
|
License: LGPL-2.1-only AND MPL-1.1
|
|
|
|
URL: https://gitlab.com/inkscape/%{name}
|
|
|
|
Group: System/Libraries
|
|
|
|
Source0: %{url}/-/archive/%{short_version}/%{name}-%{short_version}.tar.gz
|
|
|
|
# PATCH-FIX-OPENSUSE
|
|
|
|
Patch1: fix-pkgconfig-libdir-path.patch
|
2023-07-27 22:42:30 +02:00
|
|
|
# PATCH-FIX-UPSTREAM fix instable tests
|
|
|
|
Patch2: https://gitlab.com/inkscape/lib2geom/-/merge_requests/96.patch
|
2021-06-29 10:45:44 +02:00
|
|
|
BuildRequires: cmake >= 2.6
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: glib2
|
|
|
|
BuildRequires: gsl-devel
|
|
|
|
BuildRequires: gtest
|
|
|
|
BuildRequires: gtk3-devel
|
2023-03-06 07:59:19 +01:00
|
|
|
BuildRequires: libboost_headers-devel
|
2021-06-29 10:45:44 +02:00
|
|
|
BuildRequires: ninja
|
2023-03-06 07:59:19 +01:00
|
|
|
BuildRequires: cmake(double-conversion)
|
2021-06-29 10:45:44 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
A C++ 2D geometry library geared towards processing data
|
|
|
|
associated with vector graphics. The primary design consideration
|
|
|
|
is ease of use and clarity.
|
|
|
|
|
|
|
|
%package -n %{libname}
|
|
|
|
Summary: Easy to use 2D geometry library in C++
|
|
|
|
|
|
|
|
%description -n %{libname}
|
|
|
|
A C++ 2D geometry library geared towards processing data
|
|
|
|
associated with vector graphics. The primary design consideration
|
|
|
|
is ease of use and clarity.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: %{libname} = %{version}
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains all necessary include files and libraries
|
|
|
|
needed to develop applications that require %{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{name}-%{short_version} -p1
|
|
|
|
|
|
|
|
%build
|
2023-03-06 07:59:19 +01:00
|
|
|
%global optflags %optflags -fexcess-precision=fast
|
2021-06-29 10:45:44 +02:00
|
|
|
%cmake -Wno-dev \
|
|
|
|
-D2GEOM_BUILD_SHARED:BOOL=ON \
|
|
|
|
-D2GEOM_TOYS:BOOL=OFF \
|
|
|
|
-D2GEOM_TESTING:BOOL=ON \
|
|
|
|
-DCMAKE_SKIP_RPATH:BOOL=OFF \
|
|
|
|
-DCMAKE_SKIP_INSTALL_RPATHS:BOOL=ON \
|
|
|
|
%{nil}
|
|
|
|
|
|
|
|
%cmake_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%cmake_install
|
|
|
|
|
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%check
|
|
|
|
%ctest
|
|
|
|
|
|
|
|
%files -n %{libname}
|
|
|
|
%license COPYING-LGPL-2.1 COPYING-MPL-1.1
|
|
|
|
%doc NEWS.md README.md
|
2023-01-06 08:03:36 +01:00
|
|
|
%{_libdir}/%{name}.so.%{sover}
|
2021-06-29 10:45:44 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%dir %{_includedir}/%{develname}-%{version}/
|
|
|
|
%dir %{_includedir}/%{develname}-%{version}/%{develname}/
|
|
|
|
%{_includedir}/%{develname}-%{version}/%{develname}/numeric/
|
|
|
|
%{_includedir}/%{develname}-%{version}/%{develname}/intervaltree/
|
|
|
|
%{_includedir}/%{develname}-%{version}/%{develname}/orphan-code/
|
|
|
|
%{_includedir}/%{develname}-%{version}/%{develname}/symbolic/
|
|
|
|
%{_includedir}/%{develname}-%{version}/%{develname}/*.h
|
|
|
|
|
|
|
|
%{_libdir}/%{name}.so
|
|
|
|
%{_libdir}/pkgconfig/%{develname}.pc
|
|
|
|
%{_libdir}/cmake/2Geom/
|
|
|
|
|
|
|
|
%changelog
|