PyKDE4-vl.spec 5.3 KB

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