Skip to content

Instantly share code, notes, and snippets.

@thwarted
Last active January 2, 2016 10:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thwarted/8290071 to your computer and use it in GitHub Desktop.
Save thwarted/8290071 to your computer and use it in GitHub Desktop.
rpm .spec file for heroku-toolbelt
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