Name: dateformat Version: 1.2.3 Release: 2%{?dist} Summary: A simple way to format dates and times according to a user-specified mask License: MIT URL: http://blog.stevenlevithan.com/archives/date-time-format Source0: http://stevenlevithan.com/assets/misc/date.format.js # Include a copy of the MIT license to comply with license requirements. Source1: LICENSE BuildArch: noarch %description A simple way to format dates and times according to a user-specified mask. * Accepts a date, a mask, or a date and a mask. * Returns a formatted version of the given date. * The date defaults to the current date/time. %prep cp -a %{SOURCE0} . cp -a %{SOURCE1} . %build #nothing to do %install install -p -D -m0644 date.format.js \ %{buildroot}%{_datadir}/dateformat/date.format.js %files %doc LICENSE %{_datadir}/dateformat %changelog * Sat Jul 06 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1.2.3-2 - own all directories - should be noarch * Sat Jul 06 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1.2.3-1 - initial package