SampleSpecs/cmakeprogram: различия между версиями
(макрофицировано) |
Нет описания правки |
||
Строка 1: | Строка 1: | ||
<pre>Name: sampleprog | <pre>Name: sampleprog | ||
Version: 1.0 | Version: 1.0 | ||
Строка 5: | Строка 4: | ||
Summary: Sample program specfile | Summary: Sample program specfile | ||
License: | License: GPLv2+ | ||
Group: Development/Other | Group: Development/Other | ||
Url: http://www. | Url: http://www.altlinux.org/SampleSpecs/cmakeprogram | ||
Packager: Sample Packager <sample@altlinux.org> | Packager: Sample Packager <sample@altlinux.org> | ||
Строка 29: | Строка 28: | ||
-DLIB_SUFFIX=64 \ | -DLIB_SUFFIX=64 \ | ||
%endif | %endif | ||
-DCMAKE_CXX_FLAGS:STRING="%optflags" \ | |||
-DCMAKE_BUILD_TYPE="Release" \ | -DCMAKE_BUILD_TYPE="Release" \ | ||
-DCMAKE_SKIP_RPATH=YES | |||
pushd build | pushd build |
Версия от 16:28, 30 апреля 2009
Name: sampleprog Version: 1.0 Release: alt1 Summary: Sample program specfile License: GPLv2+ Group: Development/Other Url: http://www.altlinux.org/SampleSpecs/cmakeprogram Packager: Sample Packager <sample@altlinux.org> Source: %name-%version.tar.bz2 BuildPreReq: cmake %description This specfile is provided as sample specfile for packages with programs. It contains most of usual tags and constructions used in such specfiles. %prep %setup %build mkdir build cd build cmake ../ \ -DCMAKE_INSTALL_PREFIX=%_prefix \ %if %_lib == lib64 -DLIB_SUFFIX=64 \ %endif -DCMAKE_CXX_FLAGS:STRING="%optflags" \ -DCMAKE_BUILD_TYPE="Release" \ -DCMAKE_SKIP_RPATH=YES pushd build %make_build VERBOSE=1 popd %install pushd build %makeinstall_std popd %find_lang %name %files -f %name.lang %doc AUTHORS ChangeLog NEWS README THANKS TODO contrib/ manual/ %_bindir/* %_man1dir/* %changelog * Sat Jan 33 3001 Sample Packager <sample@altlinux.org> 1.0-alt1 - initial build