%define beta %nil %define scmrev 20100824 Name: pxz Version: 4.999.9 %if "%beta" == "" %if "%scmrev" == "" Release: 1ark Source: %name-%version.tar.bz2 %else Release: 0.%scmrev.1ark Source: %name-%scmrev.tar.xz %endif %else %if "%scmrev" == "" Release: 0.%beta.1ark Source: %name-%version%beta.tar.bz2 %else Release: 0.%beta.%scmrev.1ark Source: http://jnovy.fedorapeople.org/pxz/%name-%version%beta.%{scmrev}git.tar.xz %endif %endif Summary: Parallel XZ compression URL: http://jnovy.fedorapeople.org/pxz License: GPL Group: Command Line Applications/Utilities BuildRoot: %{_tmppath}/%{name}-root %description Parallel XZ is a compression utility that takes advantage of running LZMA compression of different parts of an input file on multiple cores and processors simultaneously. Its primary goal is to utilize all resources to speed up compression time with minimal possible influence on compression ratio. %prep %if "%scmrev" != "" %setup -q -n %name %else %setup -q -n %name-%version%beta %endif sed -i -e "s|-fopenmp|$RPM_OPT_FLAGS -fopenmp|" Makefile %build make %?_smp_mflags CC="%__cc" %install rm -rf $RPM_BUILD_ROOT make %?_smp_mflags install DESTDIR="$RPM_BUILD_ROOT" %files %defattr(-,root,root) %_bindir/* %clean rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR/%{name}-%{version} %changelog * Tue Aug 24 2010 Bernhard Rosenkraenzer <bero@arklinux.ch> 4.999.9-0.beta.20091201.1ark - initial RPM