%global git_date 20130303 %global git_version acc035 Name: zopfli Summary: Zlib compatible better compressor Version: 0 Release: 0.%{git_date}git%{git_version}%{?dist} URL: http://code.google.com/p/zopfli/ Group: Applications/Archiving License: ASL 2.0 # git clone https://code.google.com/p/zopfli/ # cd zopfli; # git archive --format=tar --prefix=%%{name}-%%{git_version}/ %%{git_version} | xz > %%{name}-%%{version}.%%{git_date}git%%{git_version}.tar.xz Source0:%{name}-0.0.%{git_date}git%{git_version}.tar.xz %description Zopfli is a compresssion algorithm bit-stream compatible with compression used in gzip, Zip, PNG, HTTP requests, and others. Zopfli compresses more (~5%) but is slower (~100x) and uses more CPU and hence best suited for applications where data is compressed once and sent over a network many times, for example, static content for the web. %prep %setup -q -n %{name}-%{git_version} %build gcc *.c -lm %{optflags} -o zopfli %install mkdir -p %{buildroot}%{_bindir} pwd install -m 0755 %{name} %{buildroot}%{_bindir}/%{name} %files %doc README COPYING %{_bindir}/%{name} %changelog * Sun Mar 03 2013 Rahul Sundaram - 0-0.20130303gitacc035 - initial spec