splix/splix.spec

75 lines
1.9 KiB
RPMSpec

Name: splix
Version: 2.0.1
Release: 1mamba
Summary: A driver for SPL printers (Samsung and several Xerox printers)
Group: System/Spooling
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://sourceforge.net/projects/splix/
Source: https://github.com/OpenPrinting/splix.git/%{version}/splix-%{version}.tar.bz2
Patch0: splix-2.0.1-deviceID.patch
Patch1: splix-2.0.1-ldflags.patch
Patch2: splix-2.0.1-use-pkg-conf.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libcups-devel
BuildRequires: libgcc
BuildRequires: libjbig-devel
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
Requires: cups
%description
A driver for SPL printers (Samsung and several Xerox printers).
%debug_package
%prep
%setup -q
# remove old PPDs (not sure why some PPDs are outside ppd/)
rm -f *.ppd
pushd ppd
# remove old PPDs
make distclean
popd
%patch 0 -p1 -b .deviceID
%patch 1 -p1 -b .ldflags
%patch 2 -p1 -b .use-pkg-conf
%build
%make_build drv
CXXFLAGS="%{optflags} -fno-strict-aliasing" \
%make_build all V=1 DRV_ONLY=1 LDFLAGS="-pie"
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall DRV_ONLY=1
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_prefix}/lib/cups/filter/pstoqpdl
%{_prefix}/lib/cups/filter/rastertoqpdl
%{_datadir}/cups/drv/splix-*.drv
%doc AUTHORS COPYING
# ChangeLog README THANKS TODO
%changelog
* Thu Nov 28 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.1-1mamba
- update to 2.0.1
* Wed Aug 16 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.0-3mamba
- rebuilt
* Mon Dec 19 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.0-2mamba
- rebuilt dynamically linked to libjbig
* Fri Oct 21 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.0-1mamba
- package created by autospec