PyKDE4-vl.spec 5.7 KB

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