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

Материал из ALT Linux Wiki
Нет описания правки
(Отмена правки 77050, сделанной MichaelShigorin (обсуждение))
Метка: отмена
 
(не показано 14 промежуточных версий 6 участников)
Строка 1: Строка 1:
[[Category:Devel]]
{{MovedFromFreesourceInfo|AltLinux/Sisyphus/devel/SampleSpecs/cmakeprogram}}
<pre>Name: sampleprog
<pre>Name: sampleprog
Version: 1.0
Version: 1.0
Строка 7: Строка 4:


Summary: Sample program specfile
Summary: Sample program specfile
License: GPL
License: GPLv2+
Group: Development/Other
Group: Development/Other
Url: http://www.freesource.info/wiki/AltLinux/Sisyphus/devel/SampleSpecs/cmakeprogram


Packager: Sample Packager <sample@altlinux.org>
Url: http://www.altlinux.org/SampleSpecs/cmakeprogram
Source: %name-%version.tar.bz2
Source: %name-%version.tar.bz2


BuildPreReq: cmake
BuildRequires(pre): cmake rpm-macros-cmake


%description
%description
This specfile is provided as sample specfile for packages with programs.
This specfile is provided as a sample specfile
It contains most of usual tags and constructions used in such specfiles.
for a package built with cmake.


%prep
%prep
%setup
%setup
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


%build
%build
pushd build
%cmake_insource
%make_build VERBOSE=1
%make_build # VERBOSE=1
popd


%install
%install
pushd build
%makeinstall_std
%makeinstall DESTDIR=%buildroot
popd
%find_lang %name
%find_lang %name


Строка 50: Строка 33:


%changelog
%changelog
* Sat Jan 33 3001 Sample Packager <sample@altlinux.org> 1.0-alt1
* Sat Jan 33 3001 Example Packager <example@altlinux.org> 1.0-alt1
- initial build</pre>
- initial build</pre>
{{Category navigation|title=SampleSpecs|category=SampleSpecs|sortkey={{SUBPAGENAME}}}}

Текущая версия от 17:27, 15 октября 2024

Name: sampleprog
Version: 1.0
Release: alt1

Summary: Sample program specfile
License: GPLv2+
Group: Development/Other

Url: http://www.altlinux.org/SampleSpecs/cmakeprogram
Source: %name-%version.tar.bz2

BuildRequires(pre): cmake rpm-macros-cmake

%description
This specfile is provided as a sample specfile
for a package built with cmake.

%prep
%setup

%build
%cmake_insource
%make_build # VERBOSE=1

%install
%makeinstall_std
%find_lang %name

%files -f %name.lang
%doc AUTHORS ChangeLog NEWS README THANKS TODO contrib/ manual/
%_bindir/*
%_man1dir/*

%changelog
* Sat Jan 33 3001 Example Packager <example@altlinux.org> 1.0-alt1
- initial build