kdevplatform-vl.spec 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. %if %{?_dist_release} != "vl5"
  2. %define kde KDE
  3. %else
  4. %define kde KDE4
  5. %endif
  6. Name: kdevplatform
  7. Summary: Libraries for use by %{kde} development tools
  8. Summary(ja): %{kde} 開発ツールが使用するライブラリ
  9. Version: 1.2.0
  10. Release: 2%{?_dist_release}
  11. Group: Development/Tools
  12. License: GPLv2
  13. URL: http://www.kdevelop.org/
  14. Source0: ftp://ftp.kde.org/pub/kde/stable/kdevelop/4.2.0/src/kdevplatform-%{version}.tar.bz2
  15. Source1: ftp://ftp.kde.org/pub/kde/stable/kdevelop/4.2.0/src/kdevplatform-%{version}.md5sum
  16. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  17. BuildRequires: libboost-devel
  18. BuildRequires: gettext
  19. BuildRequires: kdelibs4-devel >= 4.6
  20. BuildRequires: kdesdk4-devel >= 4.6
  21. BuildRequires: pcre-devel
  22. BuildRequires: subversion-devel
  23. BuildRequires: apr-util-devel
  24. BuildRequires: soprano-devel
  25. Requires: %{name}-libs = %{version}-%{release}
  26. Requires(postun): gtk2
  27. Requires(posttrans): gtk2
  28. %description
  29. %{kde} Development platform, the foundations upon which
  30. KDevelop and Quanta are built.
  31. %package libs
  32. Summary: Runtime libraries for %{name}
  33. Summary(ja): %{name} のランタイムライブラリ
  34. Group: System Environment/Libraries
  35. Requires: kdelibs4
  36. %description libs
  37. %{summary}.
  38. %package devel
  39. Summary: Developer files for %{name}
  40. Summary(ja): %{name} の開発用ファイル
  41. Group: Development/Libraries
  42. Requires: %{name}-libs = %{version}-%{release}
  43. Requires: libboost-devel
  44. Requires: commoncpp2-devel
  45. Requires: kdelibs4-devel
  46. Requires: subversion-devel
  47. %description devel
  48. %{summary}.
  49. %prep
  50. %setup -q -n kdevplatform-%{version}
  51. %build
  52. mkdir -p %{_target_platform}
  53. pushd %{_target_platform}
  54. unset QTDIR || : ; . /etc/profile.d/qt4.sh
  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. ..
  64. popd
  65. make %{?_smp_mflags} -C %{_target_platform}
  66. %install
  67. rm -rf %{buildroot}
  68. make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
  69. %find_lang %{name} --all-name --with-kde
  70. %clean
  71. rm -rf %{buildroot}
  72. %post
  73. touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
  74. %posttrans
  75. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  76. %postun
  77. if [ $1 -eq 0 ] ; then
  78. touch --no-create %{_datadir}/icons/hicolor &>/dev/null
  79. gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  80. fi
  81. %post libs -p /sbin/ldconfig
  82. %postun libs -p /sbin/ldconfig
  83. %files -f %{name}.lang
  84. %defattr(-,root,root,-)
  85. %doc COPYING.PLUGINS COPYING.SRC
  86. %{_datadir}/kde4/apps/kdev*/
  87. %{_datadir}/kde4/services/*.desktop
  88. %{_datadir}/kde4/servicetypes/*.desktop
  89. %{_datadir}/icons/hicolor/*/*/*
  90. %files libs
  91. %defattr(-,root,root,-)
  92. %{_libdir}/lib*.so.*
  93. %{_libdir}/kde4/*.so
  94. %files devel
  95. %defattr(-,root,root,-)
  96. %{_libdir}/lib*.so
  97. %{_includedir}/kde4/kdevplatform/
  98. %{_libdir}/cmake/kdevplatform/
  99. %changelog
  100. * Sat May 14 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.2.0-2
  101. - add BuildRequires: soprano-devel
  102. * Fri Feb 25 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.2.0-1
  103. - new upstream release
  104. * Thu Jan 13 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.1.2-1
  105. - new upstream release
  106. - added Japanese summary
  107. * Sun May 23 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.0.0-3
  108. - removed R: kdevplatform from libs package
  109. * Sat May 8 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.0.0-2
  110. - Initial build for Vine Linux
  111. * Thu Apr 29 2010 Rex Dieter <rdieter@fedoraproject.org> - 1.0.0-1
  112. - kdevplatform-1.0.0
  113. * Sat Apr 17 2010 Rex Dieter <rdieter@fedoraproject.org> - 0.10.2-1
  114. - kdevplatform-0.10.2
  115. * Thu Apr 08 2010 Rex Dieter <rdieter@fedoraproject.org. - 0.10.0-1
  116. - kdevplatform-0.10.0
  117. * Mon Mar 08 2010 Rex Dieter <rdieter@fedoraproject.org> - 0.9.99-1
  118. - kdevplatform-0.9.99
  119. * Mon Feb 22 2010 Rex Dieter <rdieter@fedoraproject.org> - 0.9.98-1
  120. - kdevplatform-0.9.98
  121. * Sat Jan 16 2010 Rex Dieter <rdieter@fedoraproject.org> - 0.9.97-2
  122. - rebuild (boost)
  123. - BR: kdelibs4-devel
  124. * Thu Jan 07 2010 Rex Dieter <rdieter@fedoraproject.org> 0.9.97-1
  125. - kdevplatform-0.9.97
  126. - kdevplatform: file conflict with kdelibs (FindKDevPlatform.cmake) (#541690)
  127. * Sun Nov 22 2009 Rex Dieter <rdieter@fedoraproject.org> 0.9.95-0.6.20091015svn1035382
  128. - rebuild (fc13+, qt-4.6.0-rc1)
  129. * Thu Oct 15 2009 Ben Boeckel <MathStuf@gmail.com> - 0.9.95-0.5.20091015svn1035382
  130. - New snapshot
  131. * Sun Oct 11 2009 Ben Boeckel <MathStuf@gmail.com> - 0.9.95-0.4.beta5
  132. - Fix finding Kompare includes
  133. * Tue Sep 29 2009 Ben Boeckel <MathStuf@gmail.com> - 0.9.95-0.3.beta5
  134. - Use official release
  135. * Mon Sep 14 2009 Ben Boeckel <MathStuf@gmail.com> - 0.9.95-0.2
  136. - Add icon scriptlets
  137. * Mon Sep 14 2009 Ben Boeckel <MathStuf@gmail.com> - 0.9.95-0.1
  138. - Update tarball
  139. * Fri May 29 2009 Ben Boeckel <MathStuf@gmail.com> - 0.9.93-0.1
  140. - 1.0 Beta 3
  141. * Sat Feb 21 2009 Lorenzo Villani <lvillani@binaryhelix.net> - 0.9.91-0.2.20090221svn929301
  142. - Post KDevplatform 1.0 Beta 1 snapshot
  143. * Fri Jan 09 2009 Lorenzo Villani <lvillani@binaryhelix.net> - 0.9.85-1
  144. - 0.9.85 snapshot