update to 20150102

don't exclude files provided by foomatic-db but do the reverse thing [release 20150102-1mamba;Fri Jan 02 2015]
This commit is contained in:
Silvan Calarco 2024-01-05 22:30:01 +01:00
parent 0bcc466a33
commit 5a84415775

View File

@ -1,7 +1,7 @@
# TODO: this package has to be splitted in foo2zjs, foo2hp, foo2xqx, foo2lava, foo2qpdl, foo2slx, foo2hiperc and foo2oak # TODO: this package has to be splitted in foo2zjs, foo2hp, foo2xqx, foo2lava, foo2qpdl, foo2slx, foo2hiperc and foo2oak
Name: foo2zjs Name: foo2zjs
Version: 20141008 Version: 20150102
Release: 1mamba Release: 1mamba
Summary: A linux printer driver for ZjStream protocol Summary: A linux printer driver for ZjStream protocol
Group: System/Spooling Group: System/Spooling
@ -40,7 +40,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: glibc-devel BuildRequires: glibc-devel
BuildRequires: libcups-devel BuildRequires: libcups-devel
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: foomatic-db #BuildRequires: foomatic-db
#BuildRequires: foomatic-filters #BuildRequires: foomatic-filters
BuildRequires: vim BuildRequires: vim
Requires(post):foomatic Requires(post):foomatic
@ -54,16 +54,16 @@ unzip -qoj %{S:8} "*.icm"
unzip -qoj %{S:9} "*.icm" unzip -qoj %{S:9} "*.icm"
%patch0 -p1 %patch0 -p1
%patch1 -p1 %patch1 -p1
sed -i "s|/etc/hotplug/usb/|/%{_lib}/udev/foo2zjs/|" hplj10xx.rules sed -i "s|/etc/hotplug/usb/|/lib/udev/foo2zjs/|" hplj10xx.rules
%build %build
%make \ %make -j1 \
CC=%{_host}-gcc \ CC=%{_host}-gcc \
USBDIR=/lib/udev/foo2zjs/ USBDIR=/lib/udev/foo2zjs/
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
mkdir -p %{buildroot}{%{_bindir},/%{_lib}/udev/foo2zjs} mkdir -p %{buildroot}{%{_bindir},/lib/udev/foo2zjs}
#mkdir -p %{buildroot}%{_datadir}/ppd #mkdir -p %{buildroot}%{_datadir}/ppd
mkdir -p %{buildroot}%{_datadir}/foomatic/db/source/driver mkdir -p %{buildroot}%{_datadir}/foomatic/db/source/driver
mkdir -p %{buildroot}%{_datadir}/foomatic/db/source/printer mkdir -p %{buildroot}%{_datadir}/foomatic/db/source/printer
@ -77,10 +77,13 @@ mkdir -p %{buildroot}/lib/udev/rules.d
UDEVDIR=%{buildroot}/lib/udev/rules.d/ \ UDEVDIR=%{buildroot}/lib/udev/rules.d/ \
USBDIR=%{buildroot}/lib/udev/foo2zjs/ USBDIR=%{buildroot}/lib/udev/foo2zjs/
rpm -ql foomatic-db | grep foomatic/db/source | \ #rpm -ql foomatic-db | grep foomatic/db/source | \
while read line; do #while read line; do
[ -e %{buildroot}/$line ] && rm -f %{buildroot}/$line || true # if [ -e %{buildroot}/$line ]; then
done # echo "Deleting $line provided by foomatic-db"
# rm -f %{buildroot}/$line || true
# fi
#done
%clean %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
@ -152,6 +155,10 @@ fi
# ChangeLog README README.in # ChangeLog README README.in
%changelog %changelog
* Fri Jan 02 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 20150102-1mamba
- update to 20150102
- don't exclude files provided by foomatic-db but do the reverse thing
* Thu Nov 06 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 20141008-1mamba * Thu Nov 06 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 20141008-1mamba
- update to 20141008 - update to 20141008