Skip to content

Instantly share code, notes, and snippets.

@rafaelfelix
Last active August 29, 2015 13:57
Show Gist options
  • Save rafaelfelix/9750946 to your computer and use it in GitHub Desktop.
Save rafaelfelix/9750946 to your computer and use it in GitHub Desktop.
The simplest RPM spec I know. Unpacks a tar.gz and moves its files to /opt/lame (originally created for the sake of brevity in developing and testing Koji plugins).
Name: lame
Version: 1.0.0
Release: 1%{?dist}
Summary: Lame summary
License: GPLv2+
URL: http://rf4solucoes.com.br/
Source0: http://rf4solucoes.com.br/files/%{name}-%{version}.tar.gz
%description
Lame description.
%prep
%setup -q -n %{name}-%{version}
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/opt/lame
mv * $RPM_BUILD_ROOT/opt/lame
%files
/opt/*
%changelog
* Mon Mar 24 2014 Rafael Felix Correa <rafael.felix@rf4solucoes.com.br> 1.0.0-1
- Initial lame changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment