phpWebSite PHP Cross Reference Content Management Systems

Source: /phpwebsite.spec - 52 lines - 1414 bytes - Text - Print

   1  %define name phpwebsite
   2  %define install_dir /var/www/phpwebsite
   3  
   4  Summary:   phpWebSite Content Management System
   5  Name:      %{name}
   6  Version:   %{version}
   7  Release:   %{release}
   8  License:   GPL
   9  Group:     Development/PHP
  10  URL:       http://phpwebsite.appstate.edu
  11  Source:    %{name}-%{version}-%{release}.tar.bz2
  12  Requires:  php >= 5.0.0, php-gd >= 5.0.0
  13  Prefix:    /var/www/phpwebsite
  14  BuildArch: noarch
  15  
  16  %description
  17  The phpWebSite Content Management System
  18  
  19  %prep
  20  %setup -n %{name}-%{version}-%{release}
  21  
  22  %post
  23  /usr/bin/curl -L -k http://127.0.0.1/apc/clear
  24  
  25  %install
  26  mkdir -p "$RPM_BUILD_ROOT%{install_dir}"
  27  cp -r * "$RPM_BUILD_ROOT%{install_dir}"
  28  
  29  # Default Deletes for clean RPM
  30  
  31  rm -Rf "$RPM_BUILD_ROOT%{install_dir}/docs/"
  32  rm -Rf "$RPM_BUILD_ROOT%{install_dir}/.git/"
  33  rm -Rf "$RPM_BUILD_ROOT%{install_dir}/util/"
  34  rm -f "$RPM_BUILD_ROOT%{install_dir}/.gitignore"
  35  rm -f "$RPM_BUILD_ROOT%{install_dir}/README.md"
  36  rm -f "$RPM_BUILD_ROOT%{install_dir}/.hgtags"
  37  rm -f "$RPM_BUILD_ROOT%{install_dir}/build.xml"
  38  rm -f "$RPM_BUILD_ROOT%{install_dir}/phpwebsite.spec"
  39  rm -f "$RPM_BUILD_ROOT%{install_dir}/phpdox.xml"
  40  rm -f "$RPM_BUILD_ROOT%{install_dir}/cache.properties"
  41  rm -f "$RPM_BUILD_ROOT%{install_dir}/templates/cache/*"
  42  
  43  %clean
  44  rm -rf "$RPM_BUILD_ROOT%{install_dir}"
  45  
  46  %files
  47  %defattr(-,apache,apache)
  48  %{install_dir}
  49  
  50  %changelog
  51  * Fri May  3 2012 Jeff Tickle <jtickle@tux.appstate.edu>
  52  - Initial RPM for phpWebSite

title

Description

title

Description

title

Description

title

title

Body