#curl http://trac.symfony-project.org/browser/tools/lime/tags/RELEASE_1_0_9/lib/lime.php?format=raw > lime.php && curl http://trac.symfony-project.org/browser/tools/lime/tags/RELEASE_1_0_9/LICENSE?format=raw > LICENSE && tar -czf php-lime-1.0.9.tar.gz lime.php LICENSE && rm -f lime.php && rm -f LICENSE Name: php-lime Version: 1.0.9 Release: %mkrel 4 Summary: Testing framework in PHP Group: Development/PHP BuildArch: noarch License: MIT URL: http://www.symfony-project.org/book/1_0/15-Unit-and-Functional-Testing Source0: php-lime-1.0.9.tar.gz Requires: php Requires: php-cli %description Testing framework in PHP %prep %setup -q -c %build %install rm -rf %{buildroot} mkdir -p $RPM_BUILD_ROOT/usr/share/php/lime/ cp lime.php $RPM_BUILD_ROOT/usr/share/php/lime/lime.php %files %doc LICENSE %dir %{_datadir}/php/lime %{_datadir}/php/lime/lime.php %changelog * Thu Oct 17 2013 umeabot <umeabot> 1.0.9-4.mga4 + Revision: 502323 - Mageia 4 Mass Rebuild - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild + spuhler <spuhler> - rebuild against php-5.3.9 + agallou <agallou> - clean buildroot at %%install - fixed tgz filename - added licence to spec file - added build section - list each file instead of all files - import php-lime - Created package structure for php-lime. + stormi <stormi> - fix %%files section