|
|
@ -1,26 +1,30 @@
|
|
|
|
Name: pnm2ppa
|
|
|
|
Name: pnm2ppa
|
|
|
|
Summary: Drivers for printing to HP PPA printers
|
|
|
|
Summary: Drivers for printing to HP PPA printers
|
|
|
|
Epoch: 1
|
|
|
|
Epoch: 1
|
|
|
|
Version: 1.04
|
|
|
|
Version: 1.13
|
|
|
|
Release: 52%{?dist}
|
|
|
|
Release: 4%{?dist}
|
|
|
|
URL: http://sourceforge.net/projects/pnm2ppa
|
|
|
|
URL: http://sourceforge.net/projects/pnm2ppa
|
|
|
|
Source: http://download.sourceforge.net/pnm2ppa/pnm2ppa-%{version}.tar.gz
|
|
|
|
Source: http://download.sourceforge.net/pnm2ppa/pnm2ppa-%{version}.tar.gz
|
|
|
|
# Following sourcelink is dead currently.
|
|
|
|
# Following sourcelink is dead currently.
|
|
|
|
Source1: http://www.httptech.com/ppa/files/ppa-0.8.6.tar.gz
|
|
|
|
Source1: http://www.httptech.com/ppa/files/ppa-0.8.6.tar.gz
|
|
|
|
# Upstream sync.
|
|
|
|
# Upstream sync.
|
|
|
|
Patch2: pbm2ppa-20000205.diff
|
|
|
|
Patch1: pbm2ppa-20000205.diff
|
|
|
|
# Use RPM_OPT_FLAGS.
|
|
|
|
# Use RPM_OPT_FLAGS.
|
|
|
|
Patch3: pnm2ppa-redhat.patch
|
|
|
|
Patch2: pnm2ppa-redhat.patch
|
|
|
|
# Don't return a local variable out of scope (bug #704568).
|
|
|
|
# Don't return a local variable out of scope (bug #704568).
|
|
|
|
Patch4: pnm2ppa-coverity-return-local.patch
|
|
|
|
Patch3: pnm2ppa-coverity-return-local.patch
|
|
|
|
|
|
|
|
# FTBFS with GCC10
|
|
|
|
|
|
|
|
Patch4: pnm2ppa-gcc10.patch
|
|
|
|
# add ldflags to Makefile
|
|
|
|
# add ldflags to Makefile
|
|
|
|
Patch5: pnm2ppa-ldflags.patch
|
|
|
|
Patch5: pnm2ppa-ldflags.patch
|
|
|
|
# FTBFS with GCC 10
|
|
|
|
# pbm2ppa, pnm2ppa - GPL-2.0-or-later
|
|
|
|
Patch6: pnm2ppa-gcc10.patch
|
|
|
|
# pdq/* - GPL-2.0, but not shipped, thus not mentioned in license tag
|
|
|
|
# fix argument reading for non x86_64 archs - use int instead of char
|
|
|
|
License: GPL-2.0-or-later
|
|
|
|
Patch7: pnm2ppa-optargs-read.patch
|
|
|
|
|
|
|
|
License: GPLv2+
|
|
|
|
# for autoreconf
|
|
|
|
|
|
|
|
BuildRequires: autoconf
|
|
|
|
|
|
|
|
# for autoreconf
|
|
|
|
|
|
|
|
BuildRequires: automake
|
|
|
|
# gcc is no longer in buildroot by default
|
|
|
|
# gcc is no longer in buildroot by default
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc
|
|
|
|
# uses make
|
|
|
|
# uses make
|
|
|
@ -42,12 +46,11 @@ Install pnm2ppa if you need to print to a PPA printer.
|
|
|
|
|
|
|
|
|
|
|
|
#pbm2ppa source
|
|
|
|
#pbm2ppa source
|
|
|
|
%setup -q -T -D -a 1
|
|
|
|
%setup -q -T -D -a 1
|
|
|
|
%patch2 -p0 -b .20000205
|
|
|
|
%patch -P 1 -p0 -b .20000205
|
|
|
|
%patch3 -p1 -b .rh
|
|
|
|
%patch -P 2 -p1 -b .rh
|
|
|
|
%patch4 -p1 -b .coverity-return-local
|
|
|
|
%patch -P 3 -p1 -b .coverity-return-local
|
|
|
|
%patch5 -p1 -b .ldflags
|
|
|
|
%patch -P 4 -p1 -b .gcc10
|
|
|
|
%patch6 -p1 -b .gcc10
|
|
|
|
%patch -P 5 -p1 -b .ldflags
|
|
|
|
%patch7 -p1 -b .optargs-read
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for file in docs/en/LICENSE pbm2ppa-0.8.6/LICENSE; do
|
|
|
|
for file in docs/en/LICENSE pbm2ppa-0.8.6/LICENSE; do
|
|
|
|
sed "s|\r||g" $file > $file.new && \
|
|
|
|
sed "s|\r||g" $file > $file.new && \
|
|
|
@ -55,9 +58,12 @@ for file in docs/en/LICENSE pbm2ppa-0.8.6/LICENSE; do
|
|
|
|
mv $file.new $file
|
|
|
|
mv $file.new $file
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
autoreconf -vfi
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
# set redhat build flags
|
|
|
|
# set redhat build flags
|
|
|
|
%set_build_flags
|
|
|
|
%set_build_flags
|
|
|
|
|
|
|
|
%configure
|
|
|
|
%make_build
|
|
|
|
%make_build
|
|
|
|
pushd pbm2ppa-0.8.6
|
|
|
|
pushd pbm2ppa-0.8.6
|
|
|
|
%make_build
|
|
|
|
%make_build
|
|
|
@ -65,17 +71,17 @@ popd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
install -d $RPM_BUILD_ROOT%{_bindir}
|
|
|
|
install -d %{buildroot}%{_bindir}
|
|
|
|
install -d $RPM_BUILD_ROOT%{_sysconfdir}
|
|
|
|
install -d %{buildroot}%{_sysconfdir}
|
|
|
|
install -d $RPM_BUILD_ROOT%{_mandir}/man1
|
|
|
|
install -d %{buildroot}%{_mandir}/man1
|
|
|
|
make INSTALLDIR=$RPM_BUILD_ROOT%{_bindir} CONFDIR=$RPM_BUILD_ROOT%{_sysconfdir} \
|
|
|
|
make INSTALLDIR=%{buildroot}%{_bindir} CONFDIR=%{buildroot}%{_sysconfdir} DESTDIR=%{buildroot} \
|
|
|
|
MANDIR=$RPM_BUILD_ROOT%{_mandir}/man1 install
|
|
|
|
MANDIR=%{buildroot}%{_mandir}/man1 install
|
|
|
|
install -p -m 0755 utils/Linux/detect_ppa $RPM_BUILD_ROOT%{_bindir}
|
|
|
|
install -p -m 0755 utils/Linux/detect_ppa %{buildroot}%{_bindir}
|
|
|
|
install -p -m 0755 utils/Linux/test_ppa $RPM_BUILD_ROOT%{_bindir}
|
|
|
|
install -p -m 0755 utils/Linux/test_ppa %{buildroot}%{_bindir}
|
|
|
|
install -p -m 0755 pbm2ppa-0.8.6/pbm2ppa $RPM_BUILD_ROOT%{_bindir}
|
|
|
|
install -p -m 0755 pbm2ppa-0.8.6/pbm2ppa %{buildroot}%{_bindir}
|
|
|
|
install -p -m 0755 pbm2ppa-0.8.6/pbmtpg $RPM_BUILD_ROOT%{_bindir}
|
|
|
|
install -p -m 0755 pbm2ppa-0.8.6/pbmtpg %{buildroot}%{_bindir}
|
|
|
|
install -p -m 0644 pbm2ppa-0.8.6/pbm2ppa.conf $RPM_BUILD_ROOT%{_sysconfdir}
|
|
|
|
install -p -m 0644 pbm2ppa-0.8.6/pbm2ppa.conf %{buildroot}%{_sysconfdir}
|
|
|
|
install -p -m 0644 pbm2ppa-0.8.6/pbm2ppa.1 $RPM_BUILD_ROOT%{_mandir}/man1
|
|
|
|
install -p -m 0644 pbm2ppa-0.8.6/pbm2ppa.1 %{buildroot}%{_mandir}/man1
|
|
|
|
|
|
|
|
|
|
|
|
chmod 644 docs/en/LICENSE
|
|
|
|
chmod 644 docs/en/LICENSE
|
|
|
|
mkdir -p pbm2ppa
|
|
|
|
mkdir -p pbm2ppa
|
|
|
@ -104,12 +110,33 @@ done
|
|
|
|
%config(noreplace) %{_sysconfdir}/pbm2ppa.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/pbm2ppa.conf
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1:1.04-52
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1:1.13-4
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.13-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.13-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Oct 20 2023 Zdenek Dohnal <zdohnal@redhat.com> - 1:1.13-1
|
|
|
|
|
|
|
|
- rebase to 1.13
|
|
|
|
|
|
|
|
- license rescan and SPDX conversion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.04-55
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.04-54
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.04-53
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.04-52
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1:1.04-51
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.04-51
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.04-50
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.04-50
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|