From 94b3474eddf99b82bdf08ee849613a3ea5eaecee Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Mon, 6 May 2024 20:03:24 +0200 Subject: [PATCH] package created using the webbuild interface [release 1.4.2-1mamba;Mon May 06 2024] --- README.md | 2 ++ gl2ps.spec | 79 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 81 insertions(+) create mode 100644 gl2ps.spec diff --git a/README.md b/README.md index 16d7ff6..ac89598 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # gl2ps +An OpenGL to PostScript printing library. + diff --git a/gl2ps.spec b/gl2ps.spec new file mode 100644 index 0000000..d5af577 --- /dev/null +++ b/gl2ps.spec @@ -0,0 +1,79 @@ +Name: gl2ps +Version: 1.4.2 +Release: 1mamba +Summary: An OpenGL to PostScript printing library +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://geuz.org/gl2ps/ +Source: https://geuz.org/gl2ps/src/gl2ps-%{version}.tgz +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libXi-devel +BuildRequires: libXmu-devel +BuildRequires: libfreeglut-devel +BuildRequires: libglu-devel +BuildRequires: libglvnd-devel +BuildRequires: libpng-devel +BuildRequires: libz-devel +## AUTOBUILDREQ-END +BuildRequires: cmake +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description +An OpenGL to PostScript printing library. + +%package -n lib%{name} +Group: System/Libraries +Summary: An OpenGL to PostScript printing library + +%description -n lib%{name} +An OpenGL to PostScript printing library. +This package contains shared libraries for %{name}. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + + +%debug_package + +%prep +%setup -q + +%build +%cmake +%cmake_build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%cmake_install + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libgl2ps.so.* + +%files -n lib%{name}-devel +%defattr(-,root,root) +%{_includedir}/gl2ps.h +%{_libdir}/libgl2ps.a +%{_libdir}/libgl2ps.so +%dir %{_docdir}/gl2ps +%{_docdir}/gl2ps/* +%doc README.txt + +%changelog +* Mon May 06 2024 Silvan Calarco 1.4.2-1mamba +- package created using the webbuild interface