Skip to content

Instantly share code, notes, and snippets.

@syshack
Created February 23, 2012 09:19
Show Gist options
  • Save syshack/1891858 to your computer and use it in GitHub Desktop.
Save syshack/1891858 to your computer and use it in GitHub Desktop.
php5.spec
%define version 5.3.10
%define so_version 5
Name: php
Summary: PHP: Hypertext Preprocessor
Group: Development/Languages
Version: %{version}
Release: 2%{?dist}.centos
License: The PHP license (see "LICENSE" file included in distribution)
Source: http://www.php.net/get/php-%{version}.tar.gz
URL: http://www.php.net/
Packager: PHP Group <[email protected]>
AutoReqProv: no
%description
PHP is an HTML-embedded scripting language. Much of its syntax is
borrowed from C, Java and Perl with a couple of unique PHP-specific
features thrown in. The goal of the language is to allow web
developers to write dynamically generated pages quickly.
%prep
"php5.spec" 53L, 1165C
%_prefix}/sbin
%_prefix}/lib
%_prefix}/include
%_prefix}/var
%_prefix}/share
%_prefix}/man
%_prefix}/etc
%{_mandir}
%defattr(-,root,root)
%configure
make
%install
rm -rf $RPM_BUILD_ROOT
make install
%clean
rm -rf $RPM_BUILD_ROOT
rm -rf $RPM_BUILD_DIR/%{name}-%{version}
%files
%defattr(-,root,root)
————to be continue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment