1 | %define pykde4_akonadi 1 |
---|
2 | %define pyqt4_version_min 4.8.5 |
---|
3 | %define sip_version_min 4.12 |
---|
4 | |
---|
5 | %global python_ver %(%{__python} -c "import sys ; print sys.version[:3]") |
---|
6 | %global pyqt4_version %(%{__python} -c 'import PyQt4.pyqtconfig; print(PyQt4.pyqtconfig._pkg_config["pyqt_version_str"])' 2> /dev/null || echo %{pyqt4_version_min}) |
---|
7 | |
---|
8 | Name: PyKDE4 |
---|
9 | Summary: Python bindings for KDE4 |
---|
10 | Summary(ja): KDE4 の Python バインディング |
---|
11 | Version: 4.14.3 |
---|
12 | Release: 3%{?_dist_release} |
---|
13 | |
---|
14 | # http://techbase.kde.org/Policies/Licensing_Policy |
---|
15 | License: LGPLv2+ |
---|
16 | Group: System Environment/Libraries |
---|
17 | URL: http://developer.kde.org/language-bindings/ |
---|
18 | |
---|
19 | Source0: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/pykde4-%{version}.tar.xz |
---|
20 | |
---|
21 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
22 | BuildRequires: akonadi-devel |
---|
23 | BuildRequires: kdebase-workspace-devel >= 4.11.6 |
---|
24 | BuildRequires: kdelibs-devel >= %{version} |
---|
25 | BuildRequires: kdepimlibs-devel >= %{version} |
---|
26 | BuildRequires: python-devel |
---|
27 | BuildRequires: PyQt4-devel >= %{pyqt4_version_min} |
---|
28 | #BuildRequires: sip-devel >= %{sip_version_min} |
---|
29 | BuildRequires: sip-devel |
---|
30 | BuildRequires: qscintilla-devel >= 2.4 |
---|
31 | BuildRequires: qimageblitz-devel |
---|
32 | BuildRequires: shared-desktop-ontologies-devel |
---|
33 | BuildRequires: soprano-devel |
---|
34 | |
---|
35 | Requires: kdelibs >= %{version} |
---|
36 | Requires: PyQt4 >= %{pyqt4_version} |
---|
37 | |
---|
38 | Vendor: Project Vine |
---|
39 | Distribution: Vine Linux |
---|
40 | |
---|
41 | %description |
---|
42 | %{summary}. |
---|
43 | |
---|
44 | %package akonadi |
---|
45 | Summary: Akonadi runtime support for PyKDE4 |
---|
46 | Summary(ja): PyKDE4 の Akonadi ランタイムサポート |
---|
47 | Group: System Environment/Libraries |
---|
48 | Requires: %{name} = %{version}-%{release} |
---|
49 | Requires: kdepimlibs-akonadi >= %{version} |
---|
50 | |
---|
51 | %description akonadi |
---|
52 | %{summary}. |
---|
53 | |
---|
54 | %package devel |
---|
55 | Summary: Files needed to build PyKDE4-based applications |
---|
56 | Summary(ja): PyKDE4 ベースのアプリケーション開発に必要なファイル |
---|
57 | Group: Development/Libraries |
---|
58 | Requires: PyQt4-devel |
---|
59 | Requires: %{name} = %{version}-%{release} |
---|
60 | Requires: %{name}-akonadi = %{version}-%{release} |
---|
61 | |
---|
62 | %description devel |
---|
63 | %{summary}. |
---|
64 | |
---|
65 | |
---|
66 | %prep |
---|
67 | %setup -q -n pykde4-%{version} |
---|
68 | |
---|
69 | %build |
---|
70 | mkdir -p %{_target_platform} |
---|
71 | pushd %{_target_platform} |
---|
72 | %cmake \ |
---|
73 | -DCMAKE_BUILD_TYPE=release \ |
---|
74 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ |
---|
75 | -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \ |
---|
76 | -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \ |
---|
77 | -DLIB_INSTALL_DIR:PATH=%{_libdir} \ |
---|
78 | -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \ |
---|
79 | -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \ |
---|
80 | -DPYTHON_LIBRARY=%{_libdir}/libpython%{python_ver}.so.1.0 \ |
---|
81 | -DPYTHON_LIBRARIES=%{_libdir}/libpython%{python_ver}.so.1.0 \ |
---|
82 | -DPYTHON_INCLUDE_PATH=%{_includedir}/python%{python_ver} \ |
---|
83 | .. |
---|
84 | popd |
---|
85 | |
---|
86 | make %{?_smp_mflags} -C %{_target_platform} |
---|
87 | |
---|
88 | |
---|
89 | %install |
---|
90 | rm -rf $RPM_BUILD_ROOT |
---|
91 | |
---|
92 | make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} |
---|
93 | |
---|
94 | # HACK: fix multilib conflict, similar to PyQt4's http://bugzilla.redhat.com/509415 |
---|
95 | rm -fv $RPM_BUILD_ROOT%{_bindir}/pykdeuic4 |
---|
96 | mv $RPM_BUILD_ROOT%{python_sitearch}/PyQt4/uic/pykdeuic4.py \ |
---|
97 | $RPM_BUILD_ROOT%{_bindir}/pykdeuic4 |
---|
98 | ln -s %{_bindir}/pykdeuic4 \ |
---|
99 | $RPM_BUILD_ROOT%{python_sitearch}/PyQt4/uic/pykdeuic4.py |
---|
100 | |
---|
101 | # install pykde4 examples under correct dir |
---|
102 | mkdir -p $RPM_BUILD_ROOT%{_docdir} |
---|
103 | rm -fv $RPM_BUILD_ROOT%{_datadir}/kde4/apps/pykde4/examples/*.py? |
---|
104 | mv $RPM_BUILD_ROOT%{_datadir}/kde4/apps/pykde4 $RPM_BUILD_ROOT%{_docdir}/ |
---|
105 | |
---|
106 | |
---|
107 | %clean |
---|
108 | rm -rf $RPM_BUILD_ROOT |
---|
109 | |
---|
110 | |
---|
111 | %files |
---|
112 | %defattr(-,root,root,-) |
---|
113 | %{_bindir}/pykdeuic4-2.7 |
---|
114 | %{python_sitearch}/PyKDE4/ |
---|
115 | %exclude %{python_sitearch}/PyKDE4/akonadi.so |
---|
116 | %{python_sitearch}/PyQt4/uic/widget-plugins/kde4.py* |
---|
117 | %dir %{_docdir}/pykde4 |
---|
118 | %{_libdir}/kde4/kpythonpluginfactory.so |
---|
119 | |
---|
120 | %files akonadi |
---|
121 | %defattr(-,root,root,-) |
---|
122 | %{python_sitearch}/PyKDE4/akonadi.so |
---|
123 | |
---|
124 | %files devel |
---|
125 | %defattr(-,root,root,-) |
---|
126 | %{_bindir}/pykdeuic4 |
---|
127 | %{python_sitearch}/PyQt4/uic/pykdeuic4.py* |
---|
128 | %{_datadir}/sip/PyKDE4/ |
---|
129 | %{_docdir}/pykde4/examples/ |
---|
130 | |
---|
131 | %changelog |
---|
132 | * Mon Jan 5 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 4.14.3-3 |
---|
133 | - fixed typo at Group... |
---|
134 | |
---|
135 | * Sun Jan 4 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 4.14.3-2 |
---|
136 | - moved main package to System Environment/Libraries Group |
---|
137 | |
---|
138 | * Thu Jan 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.14.3-1 |
---|
139 | - new upstream release |
---|
140 | - remove Patch0 (pykde4-4.12.3-sip_4_15_5.patch) |
---|
141 | |
---|
142 | * Tue May 06 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.5-1 |
---|
143 | - new upstream release |
---|
144 | - add Patch0 (pykde4-4.12.3-sip_4_15_5.patch) |
---|
145 | |
---|
146 | * Sun Feb 09 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.2-1 |
---|
147 | - new upstream release |
---|
148 | |
---|
149 | * Sun Dec 15 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.4-1 |
---|
150 | - new upstream release |
---|
151 | |
---|
152 | * Sun Sep 08 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.1-1 |
---|
153 | - new upstream release |
---|
154 | |
---|
155 | * Sat Jul 06 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.10.5-1 |
---|
156 | - new upstream release |
---|
157 | - remove BuildRequires: okular-devel, kate-devel |
---|
158 | |
---|
159 | * Fri Jan 04 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.5-1 |
---|
160 | - new upstream release |
---|
161 | |
---|
162 | * Sat Nov 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.3-1 |
---|
163 | - new upstream release |
---|
164 | |
---|
165 | * Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.2-1 |
---|
166 | - new upstream release |
---|
167 | |
---|
168 | * Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-1 |
---|
169 | - new upstream release |
---|
170 | |
---|
171 | * Sun Aug 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1 |
---|
172 | - new upstream release |
---|
173 | |
---|
174 | * Sun Feb 26 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.7.4-2 |
---|
175 | - rebuild with python-2.7.2 |
---|
176 | |
---|
177 | * Sat Dec 24 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.4-1 |
---|
178 | - new upstream release |
---|
179 | |
---|
180 | * Sat Oct 29 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.2-1 |
---|
181 | - new upstream release |
---|
182 | |
---|
183 | * Tue Aug 2 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-2 |
---|
184 | - Initial build for Vine Linux |
---|
185 | |
---|
186 | * Tue Jul 26 2011 Jaroslav Reznik <jreznik@redhat.com> 4.7.0-1 |
---|
187 | - 4.7.0 |
---|
188 | |
---|
189 | * Fri Jul 08 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-1 |
---|
190 | - 4.6.95 |
---|
191 | |
---|
192 | * Thu Jul 07 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-1 |
---|
193 | - first try |
---|
194 | |
---|