packages: dmenu/dmenu.spec - correct config.mk editing - rel 2

uzsolt uzsolt at pld-linux.org
Mon Jun 1 09:27:51 CEST 2009


Author: uzsolt                       Date: Mon Jun  1 07:27:51 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- correct config.mk editing
- rel 2

---- Files affected:
packages/dmenu:
   dmenu.spec (1.3 -> 1.4) 

---- Diffs:

================================================================
Index: packages/dmenu/dmenu.spec
diff -u packages/dmenu/dmenu.spec:1.3 packages/dmenu/dmenu.spec:1.4
--- packages/dmenu/dmenu.spec:1.3	Sun May 31 22:19:41 2009
+++ packages/dmenu/dmenu.spec	Mon Jun  1 09:27:46 2009
@@ -4,7 +4,7 @@
 Summary(pl.UTF-8):	System menu dla X
 Name:		dmenu
 Version:	4.0
-Release:	1
+Release:	2
 License:	MIT/X
 Group:		Applications
 Source0:	http://code.suckless.org/dl/tools/%{name}-%{version}.tar.gz
@@ -34,12 +34,14 @@
 
 %prep
 %setup -q
-sed -i "s@^PREFIX.*@PREFIX=%{_prefix}@" config.mk
-sed -i "s@^\(CFLAGS.*\)-Os\(.*\)@\1 \2 %{rpmcflags}@" config.mk
-sed -i "s@^\(LDFLAGS.*\)@\1 %{rpmldflags}@" config.mk
-
 
 %build
+cat << 'EOF' >> config.mk
+PREFIX=%{_prefix}
+CFLAGS:=%{rpmcflags} $(filter-out -Os,$(CFLAGS))
+LDFLAGS:=%{rpmldflags} $(LDFLAGS)
+EOF
+
 %{__make}
 
 %install
@@ -65,6 +67,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.4  2009/06/01 07:27:46  uzsolt
+- correct config.mk editing
+- rel 2
+
 Revision 1.3  2009/05/31 20:19:41  pawelz
 - BR: xorg-lib-libX11-devel
 - BR: xorg-proto-xineramaproto-devel
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/dmenu/dmenu.spec?r1=1.3&r2=1.4&f=u



More information about the pld-cvs-commit mailing list