PyKDE4-vl.spec 5.9 KB

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