Last active
January 2, 2016 10:29
-
-
Save thwarted/8290071 to your computer and use it in GitHub Desktop.
rpm .spec file for heroku-toolbelt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Name: heroku-toolbelt | |
Version: 3.2.1 | |
Release: 1%{?dist} | |
Summary: Heroku Toolbelt Client | |
Group: Development | |
License: Unknown | |
URL: https://toolbelt.heroku.com/ | |
#Source0: | |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) | |
BuildRequires: curl | |
#Requires: | |
%description | |
Heroku Toolbelt Client | |
%prep | |
%build | |
%install | |
rm -rf $RPM_BUILD_ROOT | |
HEROKU_CLIENT_URL="https://s3.amazonaws.com/assets.heroku.com/heroku-client/heroku-client.tgz" | |
install -d %{buildroot}/usr/local/heroku | |
cd %{buildroot}/usr/local/heroku | |
curl -s $HEROKU_CLIENT_URL | tar xz | |
mv heroku-client/* . | |
rmdir heroku-client | |
install -d %{buildroot}/etc/profile.d | |
echo pathmunge /usr/local/heroku/bin after > %{buildroot}/etc/profile.d/heroku-toolbelt.sh | |
%clean | |
rm -rf $RPM_BUILD_ROOT | |
%files | |
%defattr(-,root,root,-) | |
/usr/local/heroku | |
/etc/profile.d/heroku-toolbelt.sh | |
%changelog | |
* Mon Jan 06 2014 Andy Bakun <rpmbuild@thwartedefforts.org> 3.2.1-1 | |
- initial creation |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment