diff --git a/README.md b/README.md index cd23223..bdd1c35 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # lib2geom +Easy to use 2D geometry library in C++. + diff --git a/lib2geom.spec b/lib2geom.spec new file mode 100644 index 0000000..677c270 --- /dev/null +++ b/lib2geom.spec @@ -0,0 +1,75 @@ +Name: lib2geom +Version: 1.1 +Release: 1mamba +Summary: Easy to use 2D geometry library in C++ +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://gitlab.com/inkscape/lib2geom +Source: https://gitlab.com/inkscape/lib2geom.git/%{version}/lib2geom-%{version}.tar.bz2 +License: LGPL, MPL 1.1 +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libcairo-devel +BuildRequires: libdouble-conversion-devel +BuildRequires: libgcc +BuildRequires: libglib-devel +BuildRequires: libgsl-devel +BuildRequires: libstdc++6-devel +## AUTOBUILDREQ-END +BuildRequires: cmake + +%description +Easy to use 2D geometry library in C++. + +%package devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description devel +This package contains libraries and header files for developing applications that use %{name}. + +%debug_package + +%prep +%setup -q +sed -i "s|lib/pkgconfig|%{_lib}/pkgconfig|" CMakeLists.txt + +%build +%cmake -d build \ + -D2GEOM_BUILD_SHARED=ON + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall -C build + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/lib2geom.so.* +%doc COPYING-LGPL-2.1 COPYING-MPL-1.1 + +%files devel +%defattr(-,root,root) +%dir %{_includedir}/2geom-* +%dir %{_includedir}/2geom-*/2geom +%{_includedir}/2geom-*/2geom/* +%{_libdir}/lib2geom.so +%dir %{_libdir}/cmake/2Geom +%{_libdir}/cmake/2Geom/2Geom*.cmake +%{_libdir}/pkgconfig/2geom.pc +%doc README.md README.win32.md + +%changelog +* Tue May 25 2021 Silvan Calarco 1.1-1mamba +- package created using the webbuild interface