packages: lightspark/lightspark.spec - update build macros

glen glen at pld-linux.org
Mon Nov 1 18:40:23 CET 2010


Author: glen                         Date: Mon Nov  1 17:40:23 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- update build macros

---- Files affected:
packages/lightspark:
   lightspark.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: packages/lightspark/lightspark.spec
diff -u packages/lightspark/lightspark.spec:1.1 packages/lightspark/lightspark.spec:1.2
--- packages/lightspark/lightspark.spec:1.1	Wed Sep  1 12:34:53 2010
+++ packages/lightspark/lightspark.spec	Mon Nov  1 18:40:17 2010
@@ -19,6 +19,7 @@
 BuildRequires:	nasm
 BuildRequires:	pcre-cxx-devel
 BuildRequires:	pkgconfig
+BuildRequires:	rpmbuild(macros) >= 1.577
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -38,13 +39,12 @@
 %prep
 %setup -q
 %patch0 -p1
-mkdir objs
+
+install -d build
 
 %build
-cd objs
-cmake \
-	-DCMAKE_INSTALL_PREFIX=%{_prefix} \
-	-DCMAKE_BUILD_TYPE=Release \
+cd build
+%cmake \
 	-DCOMPILE_PLUGIN=1 \
 	-DLIB_INSTALL_DIR=%{_lib} \
 	-DPLUGIN_DIRECTORY=%{_browserpluginsdir} \
@@ -54,11 +54,8 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
-cd objs
-%{__make} install \
+%{__make} -C build install \
 	DESTDIR=$RPM_BUILD_ROOT
-cd ..
 
 %find_lang %{name} --all-name
 
@@ -98,6 +95,8 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2010/11/01 17:40:17  glen
+- update build macros
+
 Revision 1.1  2010/09/01 10:34:53  patrys
 - initial PLD release
-
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/lightspark/lightspark.spec?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list