extra-cmake-modules-vl.spec 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. %bcond_without bootstrap
  2. # uncomment to enable bootstrap mode
  3. %if %{with bootstrap}
  4. %define bootstrap 1
  5. %endif
  6. %if !0%{?bootstrap}
  7. %global docs 1
  8. %global tests 1
  9. %endif
  10. Name: extra-cmake-modules
  11. Summary: Additional modules for CMake build system
  12. Version: 5.24.0
  13. Release: 1%{?_dist_release}
  14. License: BSD
  15. URL: https://quickgit.kde.org/?p=extra-cmake-modules.git
  16. Vendor: Project Vine
  17. Distribution: Vine Linux
  18. %global versiondir %(echo %{version} | cut -d. -f1-2)
  19. %global revision %(echo %{version} | cut -d. -f3)
  20. %if %{revision} >= 50
  21. %global stable unstable
  22. %else
  23. %global stable stable
  24. %endif
  25. Source0: http://download.kde.org/%{stable}/frameworks/%{versiondir}/%{name}-%{version}.tar.xz
  26. BuildArch: noarch
  27. BuildRequires: cmake
  28. #BuildRequires: kf5-rpm-macros
  29. #Requires: kf5-rpm-macros
  30. %if 0%{?docs}
  31. # qcollectiongenerator
  32. BuildRequires: qt5-qttools-devel
  33. # sphinx-build
  34. BuildRequires: python2-sphinx
  35. %endif
  36. %description
  37. Additional modules for CMake build system needed by KDE Frameworks.
  38. %prep
  39. %autosetup -p1
  40. %build
  41. mkdir %{_target_platform}
  42. pushd %{_target_platform}
  43. CFLAGS="${CFLAGS:-%optflags}"; export CFLAGS;
  44. CXXFLAGS="${CXXFLAGS:-%optflags}"; export CXXFLAGS;
  45. FFLAGS="${FFLAGS:-%optflags%{?_fmoddir: -I%_fmoddir}}"; export FFLAGS;
  46. %{?__global_ldflags:LDFLAGS="${LDFLAGS:-%__global_ldflags}"; export LDFLAGS;}
  47. cmake .. \
  48. -DCMAKE_VERBOSE_MAKEFILE=ON \
  49. -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
  50. -DCMAKE_INSTALL_LIBDIR:PATH=%{_libdir} \
  51. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir} \
  52. -DLIB_INSTALL_DIR:PATH=%{_libdir} \
  53. -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
  54. -DSHARE_INSTALL_PREFIX:PATH=%{_datadir} \
  55. %if "%{?_lib}" == "lib64"
  56. %{?_cmake_lib_suffix64} \
  57. %endif
  58. %{?_cmake_skip_rpath} \
  59. -DBUILD_SHARED_LIBS:BOOL=ON \
  60. -DBUILD_TESTING:BOOL=%{?tests:ON}%{!?tests:OFF}
  61. popd
  62. make %{?_smp_mflags} -C %{_target_platform}
  63. %install
  64. make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
  65. %check
  66. %if 0%{?tests}
  67. export CTEST_OUTPUT_ON_FAILURE=1
  68. make test ARGS="--output-on-failure --timeout 300" -C %{_target_platform}
  69. %endif
  70. %files
  71. %doc README.rst
  72. %license COPYING-CMAKE-SCRIPTS
  73. %{_datadir}/ECM/
  74. %if 0%{?docs}
  75. %{_docdir}/ECM/html/
  76. %{_mandir}/man7/ecm*.7*
  77. %endif
  78. %changelog
  79. * Tue Jul 12 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.24.0-1
  80. - new upstream release.
  81. * Sun Jul 3 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.23.0-3
  82. - initial build for Vine Linux.
  83. * Tue Jun 07 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.23.0-2
  84. - support bootstrap, add docs/tests
  85. * Tue Jun 07 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.23.0-1
  86. - 5.23.0, relax kf5-rpm-macros dep
  87. * Mon May 16 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.22.0-1
  88. - KDE Frameworks 5.22.0
  89. * Mon Apr 04 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.21.0-2
  90. - Update URL
  91. * Mon Apr 04 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.21.0-1
  92. - KDE Frameworks 5.21.0
  93. * Mon Mar 14 2016 Daniel Vrátil <dvratil@fedoraproject.org> - 5.20.0-1
  94. - KDE Frameworks 5.20.0
  95. * Thu Feb 11 2016 Daniel Vrátil <dvratil@fedoraproject.org> - 5.19.0-1
  96. - KDE Frameworks 5.19.0
  97. * Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.18.0-3
  98. - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
  99. * Thu Jan 14 2016 Rex Dieter <rdieter@fedoraproject.org> 5.18.0-2
  100. - use kf5-rpm-macros, update URL, use %%license
  101. * Sun Jan 03 2016 Daniel Vrátil <dvratil@fedoraproject.org> - 5.18.0-1
  102. - KDE Frameworks 5.18.0
  103. * Sun Dec 13 2015 Helio Chissini de Castro <helio@kde.org> - 5.17.0-2
  104. - Adapt epel cmake3 changes
  105. * Tue Dec 08 2015 Daniel Vrátil <dvratil@fedoraproject.org> - 5.17.0-1
  106. - KDE Frameworks 5.17.0
  107. * Sun Nov 08 2015 Daniel Vrátil <dvratil@fedoraproject.org> - 5.16.0-1
  108. - KDE Frameworks 5.16.0
  109. * Thu Oct 08 2015 Daniel Vrátil <dvratil@redhat.com> - 5.15.0-1
  110. - KDE Frameworks 5.15.0
  111. * Wed Sep 16 2015 Daniel Vrátil <dvratil@redhat.com> - 5.14.0-1
  112. - KDE Frameworks 5.14.0
  113. * Wed Aug 19 2015 Daniel Vrátil <dvratil@redhat.com> - 5.13.0-1
  114. - KDE Frameworks 5.13.0
  115. * Wed Aug 19 2015 Daniel Vrátil <dvratil@redhat.com> - 5.13.0-1
  116. - KDE Frameworks 5.13.0
  117. * Tue Aug 11 2015 Daniel Vrátil <dvratil@redhat.com> - 5.13.0-0.1
  118. - KDE Frameworks 5.13
  119. * Thu Jul 09 2015 Rex Dieter <rdieter@fedoraproject.org> - 5.12.0-1
  120. - 5.12.0, update URL (to reference projects.kde.org), .spec cosmetics
  121. * Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.11.0-2
  122. - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
  123. * Wed Jun 10 2015 Daniel Vrátil <dvratil@redhat.com> - 5.11.0-1
  124. - KDE Frameworks 5.11.0
  125. * Mon May 11 2015 Daniel Vrátil <dvratil@redhat.com> - 5.10.0-1
  126. - KDE Frameworks 5.10.0
  127. * Tue Apr 07 2015 Daniel Vrátil <dvratil@redhat.com> - 5.9.0-1
  128. - KDE Frameworks 5.9.0
  129. * Mon Mar 16 2015 Daniel Vrátil <dvratil@redhat.com> - 1.8.0-1
  130. - extra-cmake-modules 1.8.0 (KDE Frameworks 5.8.0)
  131. * Fri Feb 13 2015 Daniel Vrátil <dvratil@redhat.com> - 1.7.0-1
  132. - extra-cmake-modules 1.7.0 (KDE Frameworks 5.7.0)
  133. * Mon Jan 12 2015 Daniel Vrátil <dvratil@redhat.com> - 1.6.1-1
  134. - Update to 1.6.1 which includes upstream fix for kde#341717
  135. * Sun Jan 11 2015 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1.6.0-3
  136. - Use upstream version of the kde#342717 patch by Alex Merry
  137. * Sun Jan 11 2015 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1.6.0-2
  138. - Do not unset old-style variables in KDEInstallDirs.cmake, it breaks projects
  139. using GNUInstallDirs for some parts and KDEInstallDirs for others (kde#342717)
  140. * Thu Jan 08 2015 Daniel Vrátil <dvratil@redhat.com> - 1.6.0-1
  141. - extra-cmake-modules 1.6.0 (KDE Frameworks 5.6.0)
  142. * Thu Dec 11 2014 Daniel Vrátil <dvratil@redhat.com> - 1.5.0-1
  143. - extra-cmake-modules 1.5.0 (KDE Frameworks 5.5.0)
  144. * Mon Nov 03 2014 Daniel Vrátil <dvratil@redhat.com> - 1.4.0-1
  145. - extra-cmake-modules 1.4.0 (KDE Frameworks 5.4.0)
  146. * Tue Oct 07 2014 Daniel Vrátil <dvratil@redhat.com> - 1.3.0-1
  147. - extra-cmake-modules 1.3.0 (KDE Frameworks 5.3.0)
  148. * Tue Sep 16 2014 Daniel Vrátil <dvratil@redhat.com> - 1.2.1-1
  149. - extra-cmake-modules 1.2.1 (KDE Frameworks 5.2.0)
  150. * Mon Sep 15 2014 Daniel Vrátil <dvratil@redhat.com> - 1.2.0-1
  151. - extra-cmake-modules 1.2.0 (KDE Frameworks 5.2.0)
  152. * Wed Aug 06 2014 Daniel Vrátil <dvratil@redhat.com> - 1.1.0-1
  153. - extra-cmake-modules 1.1.0 (KDE Frameworks 5.1.0)
  154. * Thu Jul 10 2014 Daniel Vrátil <dvratil@redhat.com> - 1.0.0-1
  155. - extra-cmake-modules 1.0.0 (KDE Frameworks 5.0.0)
  156. * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.14-3
  157. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
  158. * Tue Jun 03 2014 Daniel Vrátil <dvratil@redhat.com> 0.0.14-2
  159. - Strip architecture check from a CMake-generated file to fix noarch build
  160. * Tue Jun 03 2014 Daniel Vrátil <dvratil@redhat.com> 0.0.14-1
  161. - extra-cmake-modules 0.0.14 (KDE Frameworks 4.100.0)
  162. * Mon May 05 2014 Daniel Vrátil <dvratil@redhat.com> 0.0.13-1
  163. - extra-cmake-modules 0.0.13 (KDE Frameworks 4.99.0)
  164. * Fri Apr 11 2014 Daniel Vrátil <dvratil@redhat.com> 0.0.12-3
  165. - Remove debug_package, add %%{?dist} to Release
  166. * Fri Apr 11 2014 Daniel Vrátil <dvratil@redhat.com> 0.0.12-2
  167. - Don't depend on kf5-filesystem
  168. * Mon Mar 31 2014 Jan Grulich <jgrulich@redhat.com> 0.0.12-1
  169. - Update to KDE Frameworks 5 Beta 1 (4.98.0)
  170. * Wed Mar 05 2014 Jan Grulich <jgrulich@redhat.com> 0.0.11-1
  171. - Update to KDE Frameworks 5 Alpha 2 (4.97.0)
  172. * Wed Feb 12 2014 Daniel Vrátil <dvratil@redhat.com> 0.0.10-1
  173. - Update to KDE Frameworks 5 Alpha 1 (4.96.0)
  174. * Wed Feb 05 2014 Daniel Vrátil <dvratil@redhat.com> 0.0.10-0.1.20140205git
  175. - Update to pre-relase snapshot of 0.0.10
  176. * Tue Feb 04 2014 Lubomir Rintel <lkundrak@v3.sk> - 0.0.9-1
  177. - Update to Jan 7 release
  178. * Mon Sep 16 2013 Lubomir Rintel <lkundrak@v3.sk> - 0.0.9-0.1.20130013git5367954
  179. - Initial packaging