%global revision_date 20161022 %global git_short_version_hash e17fe43 %global git_full_version_hash e17fe43ca3fe6dc6dd0b5ce056f56310ea1d3d51 Summary: A command line interface to Phabricator Name: arcanist Version: 0.%{revision_date}.git%{git_short_version_hash} Release: 7%{?dist} License: ASL 2.0 URL: https://secure.phabricator.com/book/phabricator/article/arcanist/ Source0: https://github.com/phacility/arcanist/archive/%{git_full_version_hash}.tar.gz#/arcanist-%{git_full_version_hash}.tar.gz BuildArch: noarch Requires: bash-completion Requires: php(language) >= 5 # See: # * https://pagure.io/phabphourphedora/issue/7 # * https://secure.phabricator.com/T9640#184099 # * https://secure.phabricator.com/T11270 Requires: php(language) < 7 Requires: php-cli Requires: arcanist(libphutil) <= 0.20170123 Requires: arcanist(libphutil) >= 0.20160721 %description A command line interface to Phabricator %prep %setup -q -n arcanist-%{git_full_version_hash} # Not used by anyone other than upstream developers? rm -rf scripts/breakout.py %build %install # copy arcanist to the buildroot mkdir -p %{buildroot}%{_datadir}/%{name} cp -a bin/ scripts/ src/ %{buildroot}%{_datadir}/%{name}/ mkdir -p %{buildroot}%{_datadir}/bash-completion/completions/ cp -a resources/shell/bash-completion %{buildroot}%{_datadir}/bash-completion/completions/arc # symlink the bin mkdir -p %{buildroot}%{_bindir} pushd %{buildroot}%{_bindir} ln -s %{_datadir}/%{name}/bin/arc popd find %{buildroot}%{_datadir}/%{name}/ -type d -name test -exec rm -rvf {} \; 2>/dev/null || : find %{buildroot}%{_datadir}/%{name}/ -type d -name __tests__ -exec rm -rvf {} \; 2>/dev/null || : # Fix shebangs find %{buildroot}%{_datadir}/%{name}/ -type f -exec sed -i -r -e 's"^#!(.*)/usr/bin/env php"#!%{_bindir}/php"' {} \; find %{buildroot}%{_datadir}/%{name}/ -type f -exec sed -i -r -e 's"^#!(.*)/usr/bin/env bash"#!%{_bindir}/bash"' {} \; %files %{!?_licensedir:%global license %doc} %license LICENSE %doc README.md %doc NOTICE %{_datadir}/bash-completion/completions/arc %dir %{_datadir}/%{name} %{_datadir}/%{name}/bin %{_datadir}/%{name}/scripts %{_datadir}/%{name}/src %{_bindir}/arc %changelog * Sat Dec 03 2016 Jeroen van Meeuwen (Kolab Systems) - 0.20161022.gite17fe43-7 - Rebuild * Sat Dec 03 2016 Jeroen van Meeuwen (Kolab Systems) - 0.20161022.gite17fe43-6 - Rebuild * Thu Dec 01 2016 Jeroen van Meeuwen (Kolab Systems) - 0.20161022.gite17fe43-5 - Rebuild * Thu Dec 01 2016 Jeroen van Meeuwen (Kolab Systems) - 0.20161022.gite17fe43-4 - Rebuild * Thu Dec 01 2016 Jeroen van Meeuwen (Kolab Systems) - 0.20161022.gite17fe43-3 - Rebuild * Thu Dec 01 2016 Jeroen van Meeuwen (Kolab Systems) - 0.20161022.gite17fe43-2 - Rebuild * Thu Dec 01 2016 Jeroen van Meeuwen (Kolab Systems) - 0.20161022.gite17fe43-1 - Rebuild * Tue Nov 29 2016 Jeroen van Meeuwen (Kolab Systems) - 20161022.gite17fe43-1 - Promote Week #42 2016 * Mon Oct 24 2016 Jeroen van Meeuwen (Ergo Project) - 20161022.gite17fe43-1 - Promote Week #42 * Thu Sep 8 2016 Jeroen van Meeuwen (Kolab Systems) - 20160827.git10e5194-1 - Promote week #34 * Wed Aug 10 2016 Jeroen van Meeuwen (Kolab Systems) - 20160806.gitc9337c2-1 - Correct NEVRA - Take an initial stab at addressing rpmlint errors * Tue Aug 9 2016 Jeroen van Meeuwen (Kolab Systems) - 20160727.gitc9337c2-1 - Change the versioning scheme back to the original * Wed Aug 3 2016 Jeroen van Meeuwen (Kolab Systems) - 0-0.20160727.gitf1c45a3 - Change over the versioning scheme to use the release, not the version * Wed Feb 11 2015 Tim Flink - 20151211.git3f132f4-1 - updating to latest git * Thu Dec 04 2014 Tim Flink - 20141204.gitb46d4ed-1 - updating to latest git * Tue Sep 02 2014 Tim Flink - 20140902.gitc8f1513-1 - updating to latest git * Mon Jul 21 2014 Tim Flink - 20140721.gitef18ae0-1 - updating to latest git * Sun May 18 2014 Tim Flink - 20140518.git0468be3-1 - updating to latest git * Thu Jan 23 2014 Tim Flink - 20140123.git2c2c566-1 - updating to latest git * Tue Dec 10 2013 Tim Flink - 20131210.gite0b4eef-1 - updating to latest git * Wed Oct 30 2013 Tim Flink - 20131030.gitaabbdbd-1 - Initial package