1 | %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} |
---|
2 | %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} |
---|
3 | |
---|
4 | Name: qzion |
---|
5 | Version: 0.4.0 |
---|
6 | Release: 6%{?_dist_release} |
---|
7 | Summary: A canvas abstraction |
---|
8 | |
---|
9 | Group: System Environment/Libraries |
---|
10 | License: GPLv3+ |
---|
11 | URL: http://code.openbossa.org/projects/qzion |
---|
12 | Source0: http://code.openbossa.org/projects/%{name}/repos/mainline/archive/d32223eae1bba7f1b191c334668f3f7dd662f582.tar.gz |
---|
13 | |
---|
14 | Patch0: qzion-0.4.0-fix_python_install.patch |
---|
15 | Patch1: qzion-0.4.0-fix_char_conversion.patch |
---|
16 | |
---|
17 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
18 | |
---|
19 | BuildRequires: qt4-devel |
---|
20 | BuildRequires: PyQt4-devel |
---|
21 | BuildRequires: cmake |
---|
22 | BuildRequires: pkgconfig |
---|
23 | BuildRequires: python-devel |
---|
24 | BuildRequires: sip-devel |
---|
25 | |
---|
26 | %description |
---|
27 | QZion is an canvas abstraction used by and made for QEdje. |
---|
28 | |
---|
29 | %package devel |
---|
30 | Summary: Development files for %{name} |
---|
31 | Group: Development/Libraries |
---|
32 | Requires: cmake |
---|
33 | Requires: pkgconfig |
---|
34 | Requires: %{name} = %{version}-%{release} |
---|
35 | |
---|
36 | %description devel |
---|
37 | The %{name}-devel package contains libraries and header files for |
---|
38 | developing applications that use %{name}. |
---|
39 | |
---|
40 | %package python |
---|
41 | Summary: Python bindings for %{name} |
---|
42 | Group: Development/Libraries |
---|
43 | Requires: PyQt4 |
---|
44 | |
---|
45 | %description python |
---|
46 | The %{name}-python package contains python bindings for %{name} |
---|
47 | |
---|
48 | |
---|
49 | %package python-devel |
---|
50 | Summary: Python bindings for %{name} |
---|
51 | Group: Development/Libraries |
---|
52 | Requires: sip |
---|
53 | Requires: PyQt4-devel |
---|
54 | Requires: %{name}-python = %{version}-%{release} |
---|
55 | |
---|
56 | %description python-devel |
---|
57 | The %{name}-python-devel package contains the development files for |
---|
58 | the python bindings for %{name} |
---|
59 | |
---|
60 | %prep |
---|
61 | %setup -q -n %{name}-mainline |
---|
62 | %patch0 -p1 |
---|
63 | %patch1 -p1 |
---|
64 | |
---|
65 | %build |
---|
66 | |
---|
67 | mkdir -p %{_target_platform} |
---|
68 | pushd %{_target_platform} |
---|
69 | %cmake \ |
---|
70 | -DPYTHON_SITE_PACKAGES_DIR=%{python_sitearch} \ |
---|
71 | .. |
---|
72 | popd |
---|
73 | |
---|
74 | make %{?_smp_mflags} -C %{_target_platform} |
---|
75 | |
---|
76 | %install |
---|
77 | rm -rf %{buildroot} |
---|
78 | make install/fast -C %{_target_platform} DESTDIR=%{buildroot} |
---|
79 | |
---|
80 | %clean |
---|
81 | rm -rf %{buildroot} |
---|
82 | |
---|
83 | |
---|
84 | %post -p /sbin/ldconfig |
---|
85 | |
---|
86 | %postun -p /sbin/ldconfig |
---|
87 | |
---|
88 | |
---|
89 | %files |
---|
90 | %defattr(-,root,root,-) |
---|
91 | %doc README COPYING |
---|
92 | %{_libdir}/*.so.* |
---|
93 | |
---|
94 | %files devel |
---|
95 | %defattr(-,root,root,-) |
---|
96 | %{_libdir}/*.so |
---|
97 | %{_includedir}/* |
---|
98 | %{_libdir}/pkgconfig/%{name}.pc |
---|
99 | |
---|
100 | %files python |
---|
101 | %defattr(-,root,root,-) |
---|
102 | %{python_sitearch}/%{name} |
---|
103 | |
---|
104 | %files python-devel |
---|
105 | %defattr(-,root,root,-) |
---|
106 | %{_datadir}/sip/%{name} |
---|
107 | |
---|
108 | %changelog |
---|
109 | * Tue Mar 02 2010 Shu KONNO <owa@bg.wakwak.com> 0.4.0-6 |
---|
110 | - rebuilt with python2.6 |
---|
111 | |
---|
112 | * Sun Sep 06 2009 NAKAMURA Kenta <kenta@vinelinux.org> - 0.4.0-5 |
---|
113 | - use %%cmake macro |
---|
114 | |
---|
115 | * Sat Aug 29 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.4.0-4 |
---|
116 | - Initial build for Vine Linux |
---|
117 | |
---|
118 | * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-3 |
---|
119 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
120 | |
---|
121 | * Thu Jul 16 2009 John5342 <john5342 at, fedoraproject.org> 0.4.0-2 |
---|
122 | - Fix char* conversion (#511583) |
---|
123 | |
---|
124 | * Fri Mar 06 2009 John5342 <john5342 at, fedoraproject.org> 0.4.0-1 |
---|
125 | - Updated to new upstream release (0.4.0) |
---|
126 | |
---|
127 | * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-3 |
---|
128 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
129 | |
---|
130 | * Fri Dec 19 2008 John5342 <john5342 at, fedoraproject.org> 0.3.0-2 |
---|
131 | - Implemented package review suggestions |
---|
132 | - Remove BR: eet-devel |
---|
133 | |
---|
134 | * Fri Dec 19 2008 John5342 <john5342 at, fedoraproject.org> 0.3.0-1 |
---|
135 | - Initial package |
---|