%global revision_date 20161003 %global git_short_version_hash 49c9535 %global git_full_version_hash 49c95354b0d0f18594ab18ccb3e688023776a19b Summary: Phabricator, an open software engineering platform Name: phabricator-extension-sprint Version: 0.%{revision_date}.git%{git_short_version_hash} Release: 12%{?dist} License: Apache v2.0 Group: Applications/WWW URL: http://www.phabricator.org/ Source0: https://github.com/phacility/phabricator-extensions-Sprint/archive/%{git_full_version_hash}.tar.gz#/phabricator-extensions-Sprint-%{git_full_version_hash}.tar.gz Patch0001: sprint-task-story-points.patch Requires: phabricator BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Phabricator is a collection of open source web applications that help software companies build better software. %prep %setup -q -n phabricator-extensions-Sprint-%{git_full_version_hash} %patch0001 -p1 grep -rlE '/usr/local/bin|bin/env' . | xargs sed -i -e ' 1 { s,/usr/local/bin/php,/usr/bin/php, s,/usr/bin/env .*php,/usr/bin/php, }' %install rm -rf %{buildroot} install -d %{buildroot}%{_datadir}/%{name} cp -a * %{buildroot}%{_datadir}/%{name}/. %clean rm -rf %{buildroot} %files %doc README.md %doc LICENSE %{_datadir}/%{name} %changelog * Sat Dec 03 2016 Jeroen van Meeuwen (Kolab Systems) - 0.20161003.git49c9535-12 - Rebuild * Sat Dec 03 2016 Jeroen van Meeuwen (Kolab Systems) - 0.20161003.git49c9535-11 - Rebuild * Thu Dec 01 2016 Jeroen van Meeuwen (Kolab Systems) - 0.20161003.git49c9535-10 - Rebuild * Thu Dec 01 2016 Jeroen van Meeuwen (Kolab Systems) - 0.20161003.git49c9535-9 - Rebuild * Thu Dec 1 2016 Jeroen van Meeuwen (Kolab Systems) - 0.20161003.git49c9535-8 - First changelog entry