SampleSpecs/cmakeprogram: различия между версиями

Материал из ALT Linux Wiki
Нет описания правки
м (cmake -> %build)
Строка 20: Строка 20:
%prep
%prep
%setup
%setup
%build
mkdir build
mkdir build
cd build
cd build
Строка 31: Строка 33:
       -DCMAKE_SKIP_RPATH=YES
       -DCMAKE_SKIP_RPATH=YES


%build
pushd build
pushd build
%make_build VERBOSE=1
%make_build VERBOSE=1

Версия от 17:08, 10 марта 2009

Freesource-logo.png Blue Glass Arrow.svg MediaWiki logo.png
Эта страница была перемещена с freesource.info.
Эта страница наверняка требует чистки и улучшения — смело правьте разметку и ссылки.
Просьба по окончанию убрать этот шаблон со страницы.
Name: sampleprog
Version: 1.0
Release: alt1

Summary: Sample program specfile
License: GPL
Group: Development/Other
Url: http://www.freesource.info/wiki/AltLinux/Sisyphus/devel/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 DESTDIR=%buildroot
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