File: output.p

package info (click to toggle)
spectacle 0.22-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 1,068 kB
  • sloc: python: 2,574; sh: 84; makefile: 66
file content (45 lines) | stat: -rw-r--r-- 1,050 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
--- output.orig.spec	2010-09-18 20:49:44.463208617 +0800
+++ output.spec	2010-09-18 20:49:44.564208474 +0800
@@ -14,6 +14,7 @@ License:    BSD
 URL:        http://www.testpkg.org/
 Source0:    http://www.testpkg.org/testpkg-%{version}.tar.gz
 Source100:  testpkg.yaml
+BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
 
 %description
@@ -42,14 +43,33 @@ This package contains development files
 # >> build pre
 # << build pre
 
+%if 0%{?moblin_version}
+%qmake  \
+%else
+qmake -makefile -nocache \
+  "QMAKE_CFLAGS_RELEASE=${CFLAGS:-%optflags}" \
+  "QMAKE_CFLAGS_DEBUG=${CFLAGS:-%optflags}" \
+  "QMAKE_CXXFLAGS_RELEASE=${CXXFLAGS:-%optflags}" \
+  "QMAKE_CXXFLAGS_DEBUG=${CXXFLAGS:-%optflags}" \
+  QMAKE_STRIP=: \
+  PREFIX=%{_prefix}  \
+%endif
+    --qmake-one \
+    --qmake-two
 
+make %{?jobs:-j%jobs}
 
 # >> build post
 # << build post
 %install
-rm -rf %{buildroot}
+rm -rf $RPM_BUILD_ROOT
 # >> install pre
 # << install pre
+%if 0%{?moblin_version}
+%qmake_install
+%else
+%makeinstall
+%endif
 
 # >> install post
 # << install post