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