Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
53 lines (42 sloc) 1.38 KB
%define name phpwebsite
%define install_dir /var/www/phpwebsite
Summary: phpWebSite Content Management System
Name: %{name}
Version: %{version}
Release: %{release}
License: GPL
Group: Development/PHP
URL: http://phpwebsite.appstate.edu
Source: %{name}-%{version}-%{release}.tar.bz2
Requires: php >= 5.0.0, php-gd >= 5.0.0
Prefix: /var/www/phpwebsite
BuildArch: noarch
%description
The phpWebSite Content Management System
%prep
%setup -n %{name}-%{version}-%{release}
%post
/usr/bin/curl -L -k http://127.0.0.1/apc/clear
%install
mkdir -p "$RPM_BUILD_ROOT%{install_dir}"
cp -r * "$RPM_BUILD_ROOT%{install_dir}"
# Default Deletes for clean RPM
rm -Rf "$RPM_BUILD_ROOT%{install_dir}/docs/"
rm -Rf "$RPM_BUILD_ROOT%{install_dir}/.git/"
rm -Rf "$RPM_BUILD_ROOT%{install_dir}/util/"
rm -f "$RPM_BUILD_ROOT%{install_dir}/.gitignore"
rm -f "$RPM_BUILD_ROOT%{install_dir}/README.md"
rm -f "$RPM_BUILD_ROOT%{install_dir}/.hgtags"
rm -f "$RPM_BUILD_ROOT%{install_dir}/build.xml"
rm -f "$RPM_BUILD_ROOT%{install_dir}/phpwebsite.spec"
rm -f "$RPM_BUILD_ROOT%{install_dir}/phpdox.xml"
rm -f "$RPM_BUILD_ROOT%{install_dir}/cache.properties"
rm -f "$RPM_BUILD_ROOT%{install_dir}/templates/cache/*"
%clean
rm -rf "$RPM_BUILD_ROOT%{install_dir}"
%files
%defattr(-,apache,apache)
%{install_dir}
%changelog
* Fri May 3 2012 Jeff Tickle <jtickle@tux.appstate.edu>
- Initial RPM for phpWebSite