- correct config.mk editing
authorZsolt Udvari <uzsolt@pld-linux.org>
Mon, 1 Jun 2009 07:27:46 +0000 (07:27 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- rel 2

Changed files:
    dmenu.spec -> 1.4

dmenu.spec

index 159ae25..ae97ffd 100644 (file)
@@ -3,7 +3,7 @@ Summary(hu.UTF-8):      dmenu egy általános menü X-hez
 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
@@ -33,12 +33,14 @@ użytkownika pozycji menu.
 
 %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
This page took 0.098196 seconds and 4 git commands to generate.