Skip to content

Instantly share code, notes, and snippets.

@mago0
Created April 24, 2012 15:47
Show Gist options
  • Save mago0/2480887 to your computer and use it in GitHub Desktop.
Save mago0/2480887 to your computer and use it in GitHub Desktop.
Name: TestPkg
Version: 0.0.0
Release: trunk
BuildArch: noarch
Summary: TestPkg
License: MIT
Group: Applications/Utilities
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release})
Source0: %{name}.tar.gz
Packager: Matt Williams <matt.williams@crowdtilt.com>
Requires: php >= 5.2
Requires: pwtools
%define _installdir /usr/local/bin/PostfixProvisioning
%define _initd /etc/init.d
%description
This is a test package
[SVN_REVISION]
%prep
%setup -n %{name}
%install
mkdir -p $RPM_BUILD_ROOT/%{_installdir}
mkdir -p $RPM_BUILD_ROOT/%{_initd}
cp -R %{_builddir}/%{name}/* $RPM_BUILD_ROOT/%{_installdir}
cp $RPM_BUILD_ROOT/%{_installdir}/testfile $RPM_BUILD_ROOT/%{_initd}/.
%clean
rm -rf $RPM_BUILD_ROOT
%files
%{_installdir}
%{_initd}/testfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment