46 lines
1.4 KiB
RPMSpec
46 lines
1.4 KiB
RPMSpec
|
%define upstream_name PHP_Archive
|
||
|
|
||
|
Name: pear-%{upstream_name}
|
||
|
Version: 0.11.4
|
||
|
Release: 1mamba
|
||
|
Summary: PHP_Archive allows you to create and use PHP archive files
|
||
|
Group: Applications/Web
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: Davide Madrisan <davide.madrisan@gmail.com>
|
||
|
URL: http://pear.php.net/package/PHP_Archive
|
||
|
Source: http://download.pear.php.net/package/PHP_Archive-%{version}.tgz
|
||
|
License: PHP License
|
||
|
## AUTOBUILDREQ-BEGIN
|
||
|
## note: run 'autospec -u -a6 pear-PHP_Archive' to get the list of build requirements.
|
||
|
## AUTOBUILDREQ-END
|
||
|
BuildRequires: php-devel
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||
|
|
||
|
%description
|
||
|
PHP_Archive allows you to create a single .phar file containing an entire application.
|
||
|
|
||
|
%prep
|
||
|
%setup -q -c %{name}-%{version}
|
||
|
cp package.xml %{upstream_name}-%{version}/%{upstream_name}.xml
|
||
|
|
||
|
%install
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
cd %{upstream_name}-%{version}
|
||
|
|
||
|
mkdir -p %{buildroot}%{_libdir}/php/PEAR
|
||
|
cp Archive.php %{buildroot}%{_libdir}/php/PEAR/Archive.php
|
||
|
cp -pr Archive %{buildroot}%{_libdir}/php/PEAR/
|
||
|
|
||
|
%clean
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%{_libdir}/php/PEAR/Archive.php
|
||
|
%{_libdir}/php/PEAR/Archive
|
||
|
|
||
|
%changelog
|
||
|
* Sun Mar 17 2013 Davide Madrisan <davide.madrisan@gmail.com> 0.11.4-1mamba
|
||
|
- package created by autospec
|