Lines 1-8
Link Here
|
1 |
%set_verify_elf_method unresolved=strict |
1 |
%set_verify_elf_method unresolved=strict |
2 |
%def_without check |
2 |
%def_without check |
|
|
3 |
|
3 |
Name: cmake |
4 |
Name: cmake |
4 |
Version: 3.6.3 |
5 |
Version: 3.6.3 |
5 |
Release: alt0.1 |
6 |
Release: alt0.1.1 |
6 |
|
7 |
|
7 |
Summary: Cross-platform, open-source make system |
8 |
Summary: Cross-platform, open-source make system |
8 |
|
9 |
|
Lines 18-27
Source2: CMakeCache.txt
Link Here
|
18 |
Patch: %name-%version-%release.patch |
19 |
Patch: %name-%version-%release.patch |
19 |
|
20 |
|
20 |
BuildRequires: bzlib-devel gcc-c++ libarchive-devel >= 2.8.4 |
21 |
BuildRequires: bzlib-devel gcc-c++ libarchive-devel >= 2.8.4 |
21 |
BuildRequires: libcurl-devel libexpat-devel libncurses-devel qt5-base-devel libxml2-devel |
22 |
BuildRequires: libcurl-devel libexpat-devel libncurses-devel libxml2-devel |
22 |
BuildRequires: liblzma-devel jsoncpp-devel doxygen graphviz zlib-devel |
23 |
BuildRequires: liblzma-devel graphviz zlib-devel |
23 |
BuildRequires: python-module-sphinx-devel |
|
|
24 |
BuildRequires: shared-mime-info rpm-build-vim |
24 |
BuildRequires: shared-mime-info rpm-build-vim |
|
|
25 |
%{?!_with_bootstrap:BuildRequires: python-module-sphinx-devel qt5-base-devel jsoncpp-devel doxygen} |
25 |
%{?!_without_check:%{?!_disable_check:BuildRequires: /proc gcc-fortran java-devel cvs subversion mercurial git-core}} |
26 |
%{?!_without_check:%{?!_disable_check:BuildRequires: /proc gcc-fortran java-devel cvs subversion mercurial git-core}} |
26 |
|
27 |
|
27 |
Obsoletes: cpack < 2.4.5-alt3 |
28 |
Obsoletes: cpack < 2.4.5-alt3 |
Lines 30-36
Provides: cpack = %version-%release
Link Here
|
30 |
Requires: %name-modules = %version-%release |
31 |
Requires: %name-modules = %version-%release |
31 |
Requires: rpm-macros-%name = %version-%release |
32 |
Requires: rpm-macros-%name = %version-%release |
32 |
|
33 |
|
33 |
%define _unpackaged_files_terminate_build 1 |
34 |
%{?!_with_bootstrap:%define _unpackaged_files_terminate_build 1} |
34 |
|
35 |
|
35 |
%add_findreq_skiplist %_datadir/CMake/Templates/cygwin-package.sh.in |
36 |
%add_findreq_skiplist %_datadir/CMake/Templates/cygwin-package.sh.in |
36 |
|
37 |
|
Lines 135-149
Set of RPM macros for packaging applications that use cmake.
Link Here
|
135 |
%build |
136 |
%build |
136 |
mkdir build |
137 |
mkdir build |
137 |
pushd build |
138 |
pushd build |
138 |
install -m644 %SOURCE2 ./ |
139 |
install -pm644 %SOURCE2 ./ |
139 |
|
140 |
|
140 |
CFLAGS="%optflags" CXXFLAGS="%optflags" ../bootstrap \ |
141 |
CFLAGS="%optflags" CXXFLAGS="%optflags" ../bootstrap \ |
141 |
--verbose \ |
142 |
--verbose \ |
142 |
--parallel=%__nprocs \ |
143 |
--parallel=%__nprocs \ |
143 |
--system-libs \ |
144 |
--system-libs \ |
|
|
145 |
%if_with bootstrap |
146 |
--no-system-jsoncpp \ |
147 |
%else |
148 |
--system-jsoncpp \ |
144 |
--qt-gui \ |
149 |
--qt-gui \ |
145 |
--sphinx-man \ |
150 |
--sphinx-man \ |
146 |
--sphinx-html \ |
151 |
--sphinx-html \ |
|
|
152 |
%endif |
147 |
--prefix=%prefix \ |
153 |
--prefix=%prefix \ |
148 |
--datadir=/share/CMake \ |
154 |
--datadir=/share/CMake \ |
149 |
--mandir=/share/man \ |
155 |
--mandir=/share/man \ |
Lines 151-164
CFLAGS="%optflags" CXXFLAGS="%optflags" ../bootstrap \
Link Here
|
151 |
|
157 |
|
152 |
|
158 |
|
153 |
export LD_LIBRARY_PATH=$PWD/Source:$PWD/Source/kwsys/:$PWD/Source/CursesDialog/form |
159 |
export LD_LIBRARY_PATH=$PWD/Source:$PWD/Source/kwsys/:$PWD/Source/CursesDialog/form |
|
|
160 |
#if_with bootstrap |
161 |
#make -j1 VERBOSE=1 |
162 |
#else |
154 |
%make_build VERBOSE=1 |
163 |
%make_build VERBOSE=1 |
|
|
164 |
#endif |
155 |
popd |
165 |
popd |
156 |
|
166 |
|
157 |
|
167 |
|
158 |
%install |
168 |
%install |
159 |
pushd build |
169 |
pushd build |
160 |
export LD_LIBRARY_PATH=$PWD/Source:$PWD/Source/kwsys/:$PWD/Source/CursesDialog/form |
170 |
export LD_LIBRARY_PATH=$PWD/Source:$PWD/Source/kwsys/:$PWD/Source/CursesDialog/form |
161 |
%makeinstall_std |
171 |
%if_with bootstrap |
|
|
172 |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/Utilities/cmjsoncpp:$PWD/Utilities/cmcompress |
173 |
%endif |
174 |
%makeinstall_std -j1 |
162 |
popd |
175 |
popd |
163 |
#install -m644 ChangeLog.manual %buildroot%_docdir/%name-%version |
176 |
#install -m644 ChangeLog.manual %buildroot%_docdir/%name-%version |
164 |
mv %buildroot/usr/lib %buildroot%_libdir || : |
177 |
mv %buildroot/usr/lib %buildroot%_libdir || : |
Lines 175-180
mv -f %buildroot%_datadir/CMake/completions %buildroot%_sysconfdir/bash_completi
Link Here
|
175 |
install -p build/Source/kwsys/libcmsys.so %buildroot%_libdir/libcmsys.so |
188 |
install -p build/Source/kwsys/libcmsys.so %buildroot%_libdir/libcmsys.so |
176 |
install -p build/Source/kwsys/libcmsys_c.so %buildroot%_libdir/libcmsys_c.so |
189 |
install -p build/Source/kwsys/libcmsys_c.so %buildroot%_libdir/libcmsys_c.so |
177 |
|
190 |
|
|
|
191 |
%if_with bootstrap |
192 |
install -p build/Utilities/cmjsoncpp/libcmjsoncpp.so %buildroot%_libdir/libcmjsoncpp.so |
193 |
%endif |
194 |
|
178 |
%check |
195 |
%check |
179 |
%if_with check |
196 |
%if_with check |
180 |
# CTest.UpdateGIT fails, see #20884 |
197 |
# CTest.UpdateGIT fails, see #20884 |
Lines 196-206
popd
Link Here
|
196 |
%_libdir/libcmcompress.so |
213 |
%_libdir/libcmcompress.so |
197 |
%_libdir/libcmsys.so |
214 |
%_libdir/libcmsys.so |
198 |
%_libdir/libcmsys_c.so |
215 |
%_libdir/libcmsys_c.so |
199 |
%_datadir/CMake/ |
216 |
%if_with bootstrap |
200 |
%_aclocaldir/* |
217 |
%_libdir/libcmjsoncpp.so |
|
|
218 |
%else |
201 |
%_man1dir/cmake*.* |
219 |
%_man1dir/cmake*.* |
202 |
%_man1dir/cpack.* |
220 |
%_man1dir/cpack.* |
203 |
%_man7dir/* |
221 |
%_man7dir/* |
|
|
222 |
%endif |
223 |
%_datadir/CMake/ |
224 |
%_aclocaldir/* |
204 |
%dir %_docdir/%name-%version/ |
225 |
%dir %_docdir/%name-%version/ |
205 |
#_docdir/%name-%version/ChangeLog.manual |
226 |
#_docdir/%name-%version/ChangeLog.manual |
206 |
%_docdir/%name-%version/Copyright.txt |
227 |
%_docdir/%name-%version/Copyright.txt |
Lines 216-230
popd
Link Here
|
216 |
%files -n ccmake |
237 |
%files -n ccmake |
217 |
%_bindir/ccmake |
238 |
%_bindir/ccmake |
218 |
#_libdir/libcmForm.so |
239 |
#_libdir/libcmForm.so |
219 |
%_man1dir/ccmake.* |
240 |
%{?!_with_bootstrap:%_man1dir/ccmake.*} |
220 |
|
241 |
|
221 |
|
242 |
|
222 |
%files -n ctest |
243 |
%files -n ctest |
223 |
%_bindir/ctest |
244 |
%_bindir/ctest |
224 |
%_libdir/libCTestLib.so |
245 |
%_libdir/libCTestLib.so |
225 |
%_man1dir/ctest.* |
246 |
%{?!_with_bootstrap:%_man1dir/ctest.*} |
226 |
|
247 |
|
227 |
|
248 |
|
|
|
249 |
%if_with bootstrap |
250 |
%else |
228 |
%files gui |
251 |
%files gui |
229 |
%_bindir/cmake-gui |
252 |
%_bindir/cmake-gui |
230 |
%_desktopdir/CMake.desktop |
253 |
%_desktopdir/CMake.desktop |
Lines 240-245
popd
Link Here
|
240 |
#_docdir/%name-%version/cpack* |
263 |
#_docdir/%name-%version/cpack* |
241 |
#_docdir/%name-%version/ctest.* |
264 |
#_docdir/%name-%version/ctest.* |
242 |
%_docdir/%name-%version/html |
265 |
%_docdir/%name-%version/html |
|
|
266 |
%endif |
243 |
|
267 |
|
244 |
|
268 |
|
245 |
%files -n vim-plugin-%name |
269 |
%files -n vim-plugin-%name |
Lines 255-260
popd
Link Here
|
255 |
%filter_from_requires /^gnustep-Backbone.*/d |
279 |
%filter_from_requires /^gnustep-Backbone.*/d |
256 |
|
280 |
|
257 |
%changelog |
281 |
%changelog |
|
|
282 |
* Fri Jan 13 2017 Michael Shigorin <mike@altlinux.org> 3.6.3-alt0.1.1 |
283 |
- BOOTSTRAP: drop hairy BRs if requested to, adjust build appropriately. |
284 |
|
258 |
* Tue Dec 13 2016 L.A. Kostis <lakostis@altlinux.ru> 3.6.3-alt0.1 |
285 |
* Tue Dec 13 2016 L.A. Kostis <lakostis@altlinux.ru> 3.6.3-alt0.1 |
259 |
- Updated to 3.6.3. |
286 |
- Updated to 3.6.3. |
260 |
- .spec cleanup for new rpm. |
287 |
- .spec cleanup for new rpm. |