Name: jsmin # There appears to be no upstream versioning system, apart from the date string # at the top of the source file. # We'll use this; can use an epoch if upstream come up with a convention: Version: 2007_12_04 Release: 1%{?dist} Summary: JavaScript minifier Group: Applications/Publishing License: MIT URL: http://crockford.com/javascript/jsmin Source0: http://www.crockford.com/javascript/jsmin.c BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description jsmin is a JavaScript minifier. It removes comments and unnecessary whitespace from JavaScript files, typically achieving 50% reductions in download sizes. %prep %build gcc $RPM_OPT_FLAGS %{SOURCE0} -o jsmin %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/%{_bindir} cp jsmin $RPM_BUILD_ROOT/%{_bindir} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{_bindir}/jsmin %debug_package %changelog * Tue Jul 15 2008 David Malcolm - 2007_12_04-1 - initial packaging