1549741 - foomatic: Partial build flags injection

This commit is contained in:
Zdenek Dohnal 2018-03-02 15:57:52 +01:00
parent 78b5a63207
commit 4423236685
2 changed files with 23 additions and 1 deletions

16
foomatic-ldflags.patch Normal file
View File

@ -0,0 +1,16 @@
diff -up foomatic-db-engine-4.0.12/Makefile.in.ldflags foomatic-db-engine-4.0.12/Makefile.in
--- foomatic-db-engine-4.0.12/Makefile.in.ldflags 2018-03-02 15:44:15.956764348 +0100
+++ foomatic-db-engine-4.0.12/Makefile.in 2018-03-02 15:47:18.815459860 +0100
@@ -231,10 +231,10 @@ lib/Makefile: lib/Makefile.PL
( cd lib && $(PERL) Makefile.PL verbose INSTALLDIRS=$(PERL_INSTALLDIRS) )
foomatic-combo-xml: foomatic-combo-xml.c
- $(CC) $(CFLAGS) -o foomatic-combo-xml foomatic-combo-xml.c
+ $(CC) $(CFLAGS) $(LDFLAGS) -o foomatic-combo-xml foomatic-combo-xml.c
foomatic-perl-data: foomatic-perl-data.c
- $(CC) $(CFLAGS) $(XML_CFLAGS) -o foomatic-perl-data foomatic-perl-data.c $(XML_LIBS)
+ $(CC) $(CFLAGS) $(XML_CFLAGS) $(LDFLAGS) -o foomatic-perl-data foomatic-perl-data.c $(XML_LIBS)
man: lib/Foomatic/Defaults.pm
chmod a+rx ./makeMan

View File

@ -1,7 +1,7 @@
Summary: Tools for using the foomatic database of printers and printer drivers
Name: foomatic
Version: 4.0.12
Release: 22%{?dist}
Release: 23%{?dist}
License: GPLv2+
# printer-filters package has gone (bug #967316, bug #1035450).
@ -13,6 +13,7 @@ Source0: http://www.openprinting.org/download/foomatic/foomatic-db-engine-%{vers
## PATCHES FOR FOOMATIC-DB-ENGINE (PATCHES 101 TO 200)
Patch101: foomatic-manpages.patch
Patch102: foomatic-ldflags.patch
## PATCHES FOR FOOMATIC-DB-HPIJS (PATCHES 201 TO 300)
@ -64,6 +65,8 @@ The site http://www.linuxprinting.org/ is based on this database.
# Ship more manpages.
%patch101 -p1 -b .manpages
# use LDFLAGS during linking
%patch102 -p1 -b .ldflags
chmod a+x mkinstalldirs
@ -141,6 +144,9 @@ exit 0
%{_var}/cache/foomatic
%changelog
* Fri Mar 02 2018 Zdenek Dohnal <zdohnal@redhat.com> - 4.0.12-23
- 1549741 - foomatic: Partial build flags injection
* Wed Feb 28 2018 Zdenek Dohnal <zdohnal@redhat.com> - 4.0.12-22
- Rebuilt for new foomatic-db snapshot