From e5b0a6ec9a53c25a4b72e658a75b30c5fe1c04a1 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 08:30:05 +0100 Subject: [PATCH] package created by silvan using the webbuild interface [release 0.1.1-1mamba;Wed Feb 20 2013] --- README.md | 2 ++ pear-Net_IDNA2.spec | 46 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 pear-Net_IDNA2.spec diff --git a/README.md b/README.md index 7ef4e92..608e0cd 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # pear-Net_IDNA2 +PHP/Pear Punycode encoding and decoding. + diff --git a/pear-Net_IDNA2.spec b/pear-Net_IDNA2.spec new file mode 100644 index 0000000..7e69065 --- /dev/null +++ b/pear-Net_IDNA2.spec @@ -0,0 +1,46 @@ +Name: pear-Net_IDNA2 +Version: 0.1.1 +Release: 1mamba +Summary: PHP/Pear Punycode encoding and decoding +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://pear.php.net/package/Net_IDNA2 +Source: http://download.pear.php.net/package/Net_IDNA2-%{version}.tgz +License: PHP License +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +Requires: php +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +PHP/Pear Punycode encoding and decoding. + +%prep +%setup -q -c %{name}-%{version} + +%build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +mkdir -p %{buildroot}%{_libdir}/php +cp -a Net_IDNA2-%{version}/* %{buildroot}%{_libdir}/php/ +rm -f %{buildroot}%{_libdir}/php/LICENSE +mv %{buildroot}%{_libdir}/php/{tests,docs} %{buildroot}%{_libdir}/php/Net/IDNA2/ + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%attr(0644,root,root) %{_libdir}/php/Net/IDNA2.php +%attr(0644,root,root) %{_libdir}/php/Net/IDNA2/Exception.php +%attr(0644,root,root) %{_libdir}/php/Net/IDNA2/Exception/Nameprep.php +%attr(0644,root,root) %{_libdir}/php/Net/IDNA2/docs/examples/example_web.php +%attr(0644,root,root) %{_libdir}/php/Net/IDNA2/tests/AllTests.php +%attr(0644,root,root) %{_libdir}/php/Net/IDNA2/tests/Net_IDNA2Test.php + +%changelog +* Wed Feb 20 2013 Silvan Calarco 0.1.1-1mamba +- package created by silvan using the webbuild interface