diff --git a/README.md b/README.md index cf3c73b..dffb160 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # pear-PHP_Archive +PHP_Archive allows you to create a single .phar file containing an entire application. + diff --git a/pear-PHP_Archive.spec b/pear-PHP_Archive.spec new file mode 100644 index 0000000..21adc40 --- /dev/null +++ b/pear-PHP_Archive.spec @@ -0,0 +1,45 @@ +%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 +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 0.11.4-1mamba +- package created by autospec