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

Материал из ALT Linux Wiki
м (macroize (NB: careful %cmake seems to make less sense for a package build))
м (спать пора! :( -- Отмена правки 40116, сделанной участником MichaelShigorin (обс.))
(не показаны 3 промежуточные версии этого же участника)
Строка 6: Строка 6:
License: GPLv2+
License: GPLv2+
Group: Development/Other
Group: Development/Other
Url: http://www.altlinux.org/SampleSpecs/cmakeprogram
Url: http://www.altlinux.org/SampleSpecs/cmakeprogram
 
Source: %name-%version.tar.bz2
Packager: Example Packager <example@altlinux.org>
Packager: Example Packager <example@altlinux.org>
Source: %name-%version.tar.bz2


BuildPreReq: cmake rpm-macros-cmake
BuildPreReq: cmake rpm-macros-cmake
Строка 21: Строка 21:


%build
%build
#%%cmake
%cmake_insource
%cmake_insource
%make_build # VERBOSE=1
%make_build # VERBOSE=1


%install
%install
pushd build
%makeinstall_std
%makeinstall_std
popd
%find_lang %name
%find_lang %name



Версия от 20:38, 19 сентября 2017

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
Packager: Example Packager <example@altlinux.org>

BuildPreReq: 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