gl2ps/gl2ps.spec

80 lines
1.9 KiB
RPMSpec

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 <silvan.calarco@mambasoft.it>
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 <silvan.calarco@mambasoft.it> 1.4.2-1mamba
- package created using the webbuild interface