diff --git a/.cvsignore b/.cvsignore index e69de29..8a743c0 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Base-1.6.1.tgz diff --git a/import.log b/import.log new file mode 100644 index 0000000..ea7f82f --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +php-ezc-Base-1_6_1-2_fc10:HEAD:php-ezc-Base-1.6.1-2.fc10.src.rpm:1235519940 diff --git a/php-ezc-Base.spec b/php-ezc-Base.spec new file mode 100644 index 0000000..e1152a0 --- /dev/null +++ b/php-ezc-Base.spec @@ -0,0 +1,97 @@ +%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}} +%define pear_name Base +%define channel components.ez.no + +Name: php-ezc-Base +Version: 1.6.1 +Release: 2%{?dist} +Summary: Provides the basic infrastructure that all packages rely on + +Group: Development/Libraries +License: BSD +URL: http://ezcomponents.org/ +Source0: http://components.ez.no/get/%{pear_name}-%{version}.tgz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch + +BuildRequires: php-pear >= 1:1.4.9-1.2 +BuildRequires: php-channel(%{channel}) +Requires: php-common >= 5.2.1 +Requires: php-pear(PEAR) +Requires: php-channel(%{channel}) +Requires(post): %{__pear} +Requires(postun): %{__pear} + +Provides: php-pear(%{channel}/%{pear_name}) = %{version} + + +%description +The Base package provides the basic infrastructure that all packages rely on. +Therefore every component relies on this package. + + +%prep +%setup -q -c +[ -f package2.xml ] || mv package.xml package2.xml +mv package2.xml %{pear_name}-%{version}/%{name}.xml +cd %{pear_name}-%{version} + + +%build +cd %{pear_name}-%{version} +# Empty build section, most likely nothing required. + + +%install +cd %{pear_name}-%{version} +rm -rf %{buildroot} docdir +%{__pear} install --nodeps --packagingroot %{buildroot} %{name}.xml + +# Move documentation +mv %{buildroot}%{pear_docdir}/%{pear_name}/docs ./docdir +rm -rf %{buildroot}%{pear_docdir} + +# Clean up unnecessary files +rm -rf %{buildroot}%{pear_phpdir}/.??* + +# Install XML package description +mkdir -p %{buildroot}%{pear_xmldir} +install -pm 644 %{name}.xml %{buildroot}%{pear_xmldir} + + +%clean +rm -rf %{buildroot} + + +%post +%{__pear} install --nodeps --soft --force --register-only \ + %{pear_xmldir}/%{name}.xml >/dev/null || : + + +%postun +if [ $1 -eq 0 ] ; then + %{__pear} uninstall --nodeps --ignore-errors --register-only \ + %{channel}/%{pear_name} >/dev/null || : +fi + + +%files +%defattr(-,root,root,-) +%doc %{pear_name}-%{version}/docdir/* +%dir %{pear_phpdir}/ezc +%dir %{pear_phpdir}/ezc/autoload +%{pear_xmldir}/%{name}.xml +%{pear_phpdir}/data/%{pear_name} +%{pear_phpdir}/ezc/%{pear_name} +%{pear_phpdir}/ezc/autoload/base_autoload.php + + +%changelog +* Sun Feb 22 2009 Guillaume Kulakowski - 1.6.1-2 +- Add owner to %%{pear_phpdir}/ezc and %%{pear_phpdir}/ezc/autoload + +* Mon Feb 09 2009 Guillaume Kulakowski - 1.6.1-1 +- Update to 1.6.1 + +* Thu Feb 03 2009 Guillaume Kulakowski - 1.6-1 +- Initial packaging diff --git a/sources b/sources index e69de29..8763b8e 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +27d5d39a21668eb3fbae60cc4aa8f0c2 Base-1.6.1.tgz