Skip to content

Commit

Permalink
Add example RPM spec file
Browse files Browse the repository at this point in the history
  • Loading branch information
petere committed Feb 17, 2014
1 parent 3f01ba5 commit ea69017
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions pex.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
Name: pex
Version: CHANGEME
Release: 1
Summary: package manager for PostgreSQL
License: MIT
URL: https://github.com/petere/pex
Source0: %{name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

Requires: curl, git

%description
Pex is a tool for downloading and installing PostgreSQL extensions
and other packages. It’s based on Git and standard Unix tools
underneath.

%prep
%setup -q

%build
make prefix=%{_prefix}

%install
rm -rf %{buildroot}
make install prefix=%{_prefix} DESTDIR=%{buildroot}

%check
make check

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc README.md
%{_bindir}/*
%{_mandir}/man1/*

0 comments on commit ea69017

Please sign in to comment.