%global gitcommit eac2165 %global gitdate 20130508 Name: codemod Version: 1.0 Release: 1.%{gitdate}git%{gitcommit}%{?dist} Summary: A tool to assist with large codebase refactors Group: Development/Tools License: ASL 2.0 URL: https://github.com/facebook/codemod # Source0 retrieved by pulling a Github tarball of master. Source0: %{name}-%{gitcommit}.tar.gz BuildArch: noarch Requires: python %description Codemod is a tool/library to assist you with large-scale code base refactors that can be partially automated but still require human oversight and occasional intervention. %prep %setup -q -n %{name}-master %build %install install -D -m 0755 src/codemod.py %{buildroot}/%{_bindir}/%{name} %files %doc LICENSE README.md %{_bindir}/%{name} %changelog * Wed May 8 2013 Ricky Elrod - 1.0-1.20130508giteac2165 - Simplify spec file. * Wed Jan 9 2013 Ricky Elrod - 1.0-0.0.20130109giteac2165 - Initial build.