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: Andrey Rahmatullin <wrar@altlinux.ru> 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 mkdir build cd build cmake ../ \ -DCMAKE_INSTALL_PREFIX=%_prefix \ %ifarch x86_64 -DLIB_SUFFIX=64 \ %endif -DCMAKE_SKIP_RPATH=YES %build pushd build %make_build 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 12 2007 Andrey Rahmatullin <wrar@altlinux.ru> 0.1-alt1 - initial build