SPECS: apwal.spec - added -Makefile patch - pass CC, CFLAGS, LDFLAGS...

darekr darekr at pld-linux.org
Sun Dec 25 11:54:47 CET 2005


Author: darekr                       Date: Sun Dec 25 10:54:47 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added -Makefile patch
- pass CC,CFLAGS,LDFLAGS, rel.2

---- Files affected:
SPECS:
   apwal.spec (1.5 -> 1.6) 

---- Diffs:

================================================================
Index: SPECS/apwal.spec
diff -u SPECS/apwal.spec:1.5 SPECS/apwal.spec:1.6
--- SPECS/apwal.spec:1.5	Sat Dec 25 22:52:21 2004
+++ SPECS/apwal.spec	Sun Dec 25 11:54:42 2005
@@ -3,12 +3,13 @@
 Summary(pl):	Program do uruchamiania aplikacji
 Name:		apwal
 Version:	0.4.5
-Release:	1
+Release:	2
 License:	GPL
 Group:		X11/Applications
 Source0:	http://apwal.free.fr/download/%{name}-%{version}.tar.gz
 # Source0-md5:	2f15a1a680f842d8373a1c2725b53130
 URL:		http://apwal.free.fr/
+Patch0:		%{name}-Makefile.patch
 BuildRequires:	gtk+2-devel
 BuildRequires:	libxml2-devel
 BuildRequires:	pkgconfig
@@ -26,14 +27,19 @@
 
 %prep
 %setup -q -n %{name}
+%patch0 -p1
 
 %build
-%{__make}
+%{__make} \
+	CC="%{__cc}" \
+	CFLAGS="%{rpmcflags} `pkg-config --cflags gtk+-2.0 gthread-2.0`" \
+	LDFLAGS="%{rpmldflags} `pkg-config --libs gtk+-2.0 gthread-2.0` `xml2-config --libs`"
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_bindir},%{_pixmapsdir},%{_mandir}/man1}
-install src/%{name} $RPM_BUILD_ROOT%{_bindir}/
+
+install src/%{name} $RPM_BUILD_ROOT%{_bindir}
 ln -s %{_bindir}/%{name} $RPM_BUILD_ROOT%{_bindir}/%{name}-editor
 cp -aR pixmaps/* $RPM_BUILD_ROOT%{_pixmapsdir}
 install debian/%{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1
@@ -54,6 +60,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.6  2005/12/25 10:54:42  darekr
+- added -Makefile patch
+- pass CC,CFLAGS,LDFLAGS, rel.2
+
 Revision 1.5  2004/12/25 21:52:21  darekr
 - updated to 0.4.5
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/apwal.spec?r1=1.5&r2=1.6&f=u



More information about the pld-cvs-commit mailing list