From 2235cbbc478518c584f4b3fff39b6790658a506b Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Fri, 6 Dec 2013 11:38:02 +0000 Subject: [PATCH] Use _smp_mflags for consistency's sake (patch from upstream needed). --- system-config-printer-smp-mflags.patch | 48 ++++++++++++++++++++++++++ system-config-printer.spec | 6 +++- 2 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 system-config-printer-smp-mflags.patch diff --git a/system-config-printer-smp-mflags.patch b/system-config-printer-smp-mflags.patch new file mode 100644 index 0000000..c861413 --- /dev/null +++ b/system-config-printer-smp-mflags.patch @@ -0,0 +1,48 @@ +diff -up system-config-printer-1.4.3/Makefile.am.smp-mflags system-config-printer-1.4.3/Makefile.am +--- system-config-printer-1.4.3/Makefile.am.smp-mflags 2013-10-22 16:33:25.000000000 +0100 ++++ system-config-printer-1.4.3/Makefile.am 2013-12-06 11:33:40.227525218 +0000 +@@ -82,6 +82,7 @@ clean-local: + done; \ + fi + rm -f .stamp-distutils-in-builddir ++ rm -f .stamp-man-pages-built + + nobase_pkgdata_SCRIPTS= \ + check-device-ids.py \ +@@ -281,8 +282,11 @@ EXTRA_DIST=\ + @INTLTOOL_DESKTOP_RULE@ + + # The man pages are generated from DocBook XML. +-$(man_MANS): $(top_srcdir)/man/system-config-printer.xml ++.stamp-man-pages-built: $(top_srcdir)/man/system-config-printer.xml + xmlto man -o man $< ++ touch .stamp-man-pages-built ++ ++$(man_MANS): .stamp-man-pages-built + + html: $(EXPORT_MODULES) $(EXPORT_MODULES_GEN) + rm -rf html +diff -up system-config-printer-1.4.3/Makefile.in.smp-mflags system-config-printer-1.4.3/Makefile.in +--- system-config-printer-1.4.3/Makefile.in.smp-mflags 2013-10-22 16:44:44.000000000 +0100 ++++ system-config-printer-1.4.3/Makefile.in 2013-12-06 11:33:43.648541700 +0000 +@@ -1922,6 +1922,7 @@ clean-local: + done; \ + fi + rm -f .stamp-distutils-in-builddir ++ rm -f .stamp-man-pages-built + + @HAVE_SYSTEMD_TRUE@@UDEV_RULES_TRUE@%.service: %.service.in + @HAVE_SYSTEMD_TRUE@@UDEV_RULES_TRUE@ $(AM_V_GEN)sed -e 's,@udevhelperdir\@,$(udevhelperdir),g' $< > $@ +@@ -1951,8 +1952,11 @@ uninstall-desktopDATA: + @INTLTOOL_DESKTOP_RULE@ + + # The man pages are generated from DocBook XML. +-$(man_MANS): $(top_srcdir)/man/system-config-printer.xml ++.stamp-man-pages-built: $(top_srcdir)/man/system-config-printer.xml + xmlto man -o man $< ++ touch .stamp-man-pages-built ++ ++$(man_MANS): .stamp-man-pages-built + + html: $(EXPORT_MODULES) $(EXPORT_MODULES_GEN) + rm -rf html diff --git a/system-config-printer.spec b/system-config-printer.spec index 6645f6d..10eb844 100644 --- a/system-config-printer.spec +++ b/system-config-printer.spec @@ -8,6 +8,7 @@ Group: System Environment/Base Source0: http://cyberelk.net/tim/data/system-config-printer/1.4/%{name}-%{version}.tar.xz Patch1: system-config-printer-no-applet-in-gnome.patch Patch2: system-config-printer-decorator.patch +Patch3: system-config-printer-smp-mflags.patch BuildRequires: cups-devel >= 1.2 BuildRequires: desktop-file-utils >= 0.2.92 @@ -73,6 +74,9 @@ printers. # Fixed typo in D-Bus signature decorator (bug #1023449). %patch2 -p1 -b .decorator +# Fixed makefile to work with _smp_mflags (patch from upstream). +%patch3 -p1 -b .smp-mflags + %build %configure --with-udev-rules make %{?_smp_mflags} @@ -174,7 +178,7 @@ exit 0 %changelog * Fri Dec 6 2013 Tim Waugh 1.4.3-6 -- Use _smp_mflags for consistency's sake. +- Use _smp_mflags for consistency's sake (patch from upstream needed). * Thu Dec 5 2013 Tim Waugh 1.4.3-5 - Actually run make in the %%build section.