Created
April 24, 2012 15:47
-
-
Save mago0/2480887 to your computer and use it in GitHub Desktop.
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: 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