rpms/specspo/devel specspo-make.patch, NONE, 1.1 specspo.spec, 1.35, 1.36

Štěpán Kasal (kasal) fedora-extras-commits at redhat.com
Fri Oct 5 11:49:11 UTC 2007


Author: kasal

Update of /cvs/pkgs/rpms/specspo/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv18727

Modified Files:
	specspo.spec 
Added Files:
	specspo-make.patch 
Log Message:
- specspo-make.patch: build *.mo only if both *.po are available.

specspo-make.patch:

--- NEW FILE specspo-make.patch ---
Index: Makefile
===================================================================
RCS file: /usr/local/CVS/specspo/dist/Makefile,v
retrieving revision 1.13
diff -u -r1.13 Makefile
--- specspo-15/dist/Makefile	4 Oct 2007 14:40:02 -0000	1.13
+++ specspo-15/dist/Makefile	5 Oct 2007 11:31:38 -0000
@@ -6,14 +6,10 @@
 INSTALLNLSDIR=/usr/share/locale
 NAME=redhat-dist
 
-DESCFILES = $(shell ls desc/*.po)
-SUMFILES = $(shell ls summary/*.po)
+POFILES = $(filter $(patsubst desc/%,%,$(wildcard desc/*.po)), \
+		$(patsubst summary/%,%,$(wildcard summary/*.po)))
 
-POFILES = $(sort $(patsubst desc/%,%,$(DESCFILES)) $(patsubst summary/%,%,$(SUMFILES)))
-
-MOFILES = $(patsubst %.po,%.mo,$(POFILES))
-
-all: $(MOFILES)
+all: $(POFILES:po=mo)
 
 install: all
 	mkdir -p $(DESTDIR)/$(INSTALLNLSDIR)


Index: specspo.spec
===================================================================
RCS file: /cvs/pkgs/rpms/specspo/devel/specspo.spec,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- specspo.spec	5 Oct 2007 10:49:45 -0000	1.35
+++ specspo.spec	5 Oct 2007 11:48:39 -0000	1.36
@@ -11,12 +11,15 @@
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
 BuildRequires: gettext
 
+Patch: specspo-make.patch
+
 %description
 The specspo package contains the portable object catalogues used to
 internationalize Fedora packages.
 
 %prep
 %setup -q
+%patch -p0
 
 %build
 make
@@ -46,6 +49,7 @@
 - Removed C.po, they do not contain any information; removed the code to handle
   them in the Makefile.
 - Removed Makefile.rules, it is not used.
+- specspo-make.patch: build *.mo only if both *.po are available.
 
 * Thu May 24 2007 Martin Bacovsky <mbacovsk at redhat.com> - 14-1
 - Updated translations




More information about the fedora-extras-commits mailing list