2020-12-20 10:18:54 +01:00
|
|
|
%global git_short_version_hash 4b3baca9
|
|
|
|
|
%global git_full_version_hash 4b3baca999a4a229433c891cf69c2c4e2d634b89
|
|
|
|
|
|
|
|
|
|
Summary: A command line interface to Phabricator
|
|
|
|
|
Name: arcanist
|
|
|
|
|
|
2020-12-20 10:42:39 +01:00
|
|
|
Version: 0.git%{git_short_version_hash}
|
2020-12-20 10:18:54 +01:00
|
|
|
Release: 1%{?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
|
|
|
|
|
|
|
|
|
|
Patch1: 0001-Set-the-default-pylint-command-to-pylint-3.patch
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
BuildRequires: bash-completion
|
|
|
|
|
BuildRequires: php(language) >= 5
|
|
|
|
|
BuildRequires: php-cli
|
|
|
|
|
Requires: bash-completion
|
|
|
|
|
Requires: php(language) >= 5
|
|
|
|
|
Requires: php-cli
|
|
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
|
|
|
|
|
%patch1 -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
# copy arcanist to the buildroot
|
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/%{name}
|
2020-12-20 13:02:42 +01:00
|
|
|
cp -a bin resources scripts src support externals %{buildroot}%{_datadir}/%{name}/
|
2020-12-20 10:18:54 +01:00
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/bash-completion/completions/
|
|
|
|
|
cp -a support/shell/hooks/bash-completion.sh %{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}/resources
|
|
|
|
|
%{_datadir}/%{name}/scripts
|
|
|
|
|
%{_datadir}/%{name}/src
|
2020-12-20 13:02:42 +01:00
|
|
|
%{_datadir}/%{name}/support
|
|
|
|
|
%{_datadir}/%{name}/externals
|
2020-12-20 10:18:54 +01:00
|
|
|
%{_bindir}/arc
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Sun Dec 20 2020 Daniel Steiner <daniel.steiner@dsteiner.ch>
|
|
|
|
|
- First build on Fedora 33.
|
|
|
|
|
|