PyKDE4-vl.spec 4.9 KB

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