SampleSpecs/cmakeprogram
Материал из ALT Linux Wiki
< SampleSpecs(Различия между версиями)
(Import from freesource.info) |
м (или %cmake и pushd/pood, или %cmake_insource и без них) |
||
(8 промежуточных версий не показаны.) | |||
Строка 1: | Строка 1: | ||
- | |||
- | |||
- | |||
<pre>Name: sampleprog | <pre>Name: sampleprog | ||
Version: 1.0 | Version: 1.0 | ||
Строка 7: | Строка 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: | + | Packager: Example Packager <example@altlinux.org> |
Source: %name-%version.tar.bz2 | Source: %name-%version.tar.bz2 | ||
- | BuildPreReq: cmake | + | BuildPreReq: cmake rpm-macros-cmake |
%description | %description | ||
- | This specfile is provided as sample specfile for | + | This specfile is provided as a sample specfile |
- | + | for a package built with cmake. | |
%prep | %prep | ||
%setup | %setup | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
%build | %build | ||
- | + | #%%cmake | |
- | %make_build VERBOSE=1 | + | %cmake_insource |
- | + | %make_build # VERBOSE=1 | |
%install | %install | ||
- | pushd build | + | #pushd build |
- | % | + | %makeinstall_std |
- | popd | + | #popd |
%find_lang %name | %find_lang %name | ||
Строка 50: | Строка 37: | ||
%changelog | %changelog | ||
- | * Sat Jan 33 3001 | + | * 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}}}} |
Текущая версия на 12:36, 10 сентября 2014
Name: sampleprog Version: 1.0 Release: alt1 Summary: Sample program specfile License: GPLv2+ Group: Development/Other Url: http://www.altlinux.org/SampleSpecs/cmakeprogram Packager: Example Packager <example@altlinux.org> Source: %name-%version.tar.bz2 BuildPreReq: cmake rpm-macros-cmake %description This specfile is provided as a sample specfile for a package built with cmake. %prep %setup %build #%%cmake %cmake_insource %make_build # VERBOSE=1 %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 Example Packager <example@altlinux.org> 1.0-alt1 - initial build