|
|
daccfc7 |
%{!?pear_metadir: %global pear_metadir %{pear_phpdir}}
|
|
|
68a9608 |
%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
|
|
|
a67c726 |
%global pear_name PEAR_Command_Packaging
|
|
|
68a9608 |
|
|
|
68a9608 |
Name: php-pear-PEAR-Command-Packaging
|
|
|
fd61ebe |
Version: 0.3.0
|
|
|
6e5a23c |
Release: 11%{?dist}
|
|
|
68a9608 |
Summary: Create RPM spec files from PEAR modules
|
|
|
68a9608 |
|
|
|
68a9608 |
Group: Development/System
|
|
|
cb178ae |
License: PHP
|
|
|
68a9608 |
URL: http://pear.php.net/package/PEAR_Command_Packaging
|
|
|
68a9608 |
Source0: http://pear.php.net/get/%{pear_name}-%{version}.tgz
|
|
|
68a9608 |
Source1: php-pear-PEAR-Command-Packaging-fedora-template-specfile
|
|
|
fd61ebe |
Patch0: php-pear-PEAR-Command-Packaging-0.3.0-fedora-conventions.patch
|
|
|
4062076 |
# https://pear.php.net/bugs/19673 - Adaptation required for metadata_dir
|
|
|
daccfc7 |
Patch1: php-pear-PEAR-Command-Packaging-0.3.0-metadata.patch
|
|
|
51e7b21 |
Patch2: php-pear-PEAR-Command-Packaging-0.3.0-metadata2.patch
|
|
|
68a9608 |
|
|
|
fd61ebe |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
68a9608 |
BuildArch: noarch
|
|
|
daccfc7 |
BuildRequires: php-pear
|
|
|
fd61ebe |
|
|
|
daccfc7 |
Requires: php-pear(PEAR)
|
|
|
68a9608 |
Requires(post): %{__pear}
|
|
|
68a9608 |
Requires(postun): %{__pear}
|
|
|
68a9608 |
Provides: php-pear(%{pear_name}) = %{version}
|
|
|
68a9608 |
|
|
|
68a9608 |
%description
|
|
|
68a9608 |
This command is an improved implementation of the standard PEAR "makerpm"
|
|
|
68a9608 |
command, and contains several enhancements that make it far more flexible.
|
|
|
68a9608 |
Similar functions for other external packaging mechanisms may be added at
|
|
|
68a9608 |
a later date.
|
|
|
68a9608 |
|
|
|
29aacbd |
This package generate spec file closed to fedora PHP Guidelines:
|
|
|
29aacbd |
http://fedoraproject.org/wiki/Packaging:PHP
|
|
|
29aacbd |
|
|
|
29aacbd |
|
|
|
68a9608 |
%prep
|
|
|
68a9608 |
%setup -q -c
|
|
|
a67c726 |
|
|
|
68a9608 |
cd %{pear_name}-%{version}
|
|
|
fd61ebe |
mv ../package.xml %{name}.xml
|
|
|
fd61ebe |
|
|
|
fd61ebe |
# Patches for Fedora conventions
|
|
|
fd61ebe |
%patch0 -p1 -b .fedora
|
|
|
daccfc7 |
# Patches for new Metadata location
|
|
|
daccfc7 |
%patch1 -p1 -b .metadata
|
|
|
51e7b21 |
%patch2 -p1 -b .metadata2
|
|
|
68a9608 |
|
|
|
a67c726 |
|
|
|
68a9608 |
%build
|
|
|
68a9608 |
# Empty build section, nothing required
|
|
|
68a9608 |
|
|
|
68a9608 |
%install
|
|
|
68a9608 |
cd %{pear_name}-%{version}
|
|
|
fd61ebe |
rm -rf %{buildroot}
|
|
|
fd61ebe |
%{__pear} install --nodeps --packagingroot %{buildroot} %{name}.xml
|
|
|
68a9608 |
|
|
|
60f0545 |
cp -p %{SOURCE1} %{buildroot}%{pear_datadir}/%{pear_name}/template.spec
|
|
|
68a9608 |
|
|
|
68a9608 |
# Clean up unnecessary files
|
|
|
daccfc7 |
rm -rf %{buildroot}%{pear_metadir}/.??*
|
|
|
68a9608 |
|
|
|
68a9608 |
# Install XML package description
|
|
|
fd61ebe |
mkdir -p %{buildroot}%{pear_xmldir}
|
|
|
fd61ebe |
install -pm 644 %{name}.xml %{buildroot}%{pear_xmldir}
|
|
|
68a9608 |
|
|
|
68a9608 |
|
|
|
68a9608 |
%clean
|
|
|
fd61ebe |
rm -rf %{buildroot}
|
|
|
68a9608 |
|
|
|
68a9608 |
|
|
|
68a9608 |
%post
|
|
|
68a9608 |
%{__pear} install --nodeps --soft --force --register-only \
|
|
|
cb554bb |
%{pear_xmldir}/%{name}.xml >/dev/null || :
|
|
|
68a9608 |
|
|
|
68a9608 |
%postun
|
|
|
68a9608 |
if [ $1 -eq 0 ] ; then
|
|
|
68a9608 |
%{__pear} uninstall --nodeps --ignore-errors --register-only \
|
|
|
68a9608 |
%{pear_name} >/dev/null || :
|
|
|
68a9608 |
fi
|
|
|
68a9608 |
|
|
|
68a9608 |
%files
|
|
|
68a9608 |
%defattr(-,root,root,-)
|
|
|
29aacbd |
%doc %{pear_docdir}/%{pear_name}
|
|
|
cb554bb |
%{pear_xmldir}/%{name}.xml
|
|
|
68a9608 |
%{pear_datadir}/%{pear_name}
|
|
|
fd61ebe |
%{pear_testdir}/%{pear_name}
|
|
|
68a9608 |
%{pear_phpdir}/PEAR/Command/Packaging.*
|
|
|
68a9608 |
|
|
|
68a9608 |
|
|
|
68a9608 |
%changelog
|
|
|
6e5a23c |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-11
|
|
|
6e5a23c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
6e5a23c |
|
|
|
09b9154 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-10
|
|
|
09b9154 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
09b9154 |
|
|
|
4748583 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-9
|
|
|
4748583 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
4748583 |
|
|
|
c2cc8de |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-8
|
|
|
c2cc8de |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
c2cc8de |
|
|
|
8134111 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-7
|
|
|
8134111 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
8134111 |
|
|
|
51e7b21 |
* Mon Dec 17 2012 Remi Collet <remi@fedoraproject.org> - 0.3.0-6
|
|
|
51e7b21 |
- fix previous patch for metadata_dir
|
|
|
51e7b21 |
|
|
|
daccfc7 |
* Tue Oct 23 2012 Remi Collet <remi@fedoraproject.org> - 0.3.0-5
|
|
|
daccfc7 |
- take care of new metadata_dir option
|
|
|
daccfc7 |
|
|
|
60f0545 |
* Sun Aug 19 2012 Remi Collet <remi@fedoraproject.org> - 0.3.0-4
|
|
|
60f0545 |
- rebuilt for new pear_datadir
|
|
|
60f0545 |
|
|
|
5ac215c |
* Tue Aug 14 2012 Remi Collet <remi@fedoraproject.org> - 0.3.0-3
|
|
|
5ac215c |
- rebuilt for new pear_testdir
|
|
|
5ac215c |
|
|
|
f0e0d45 |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-2
|
|
|
f0e0d45 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
f0e0d45 |
|
|
|
fd61ebe |
* Mon Apr 16 2012 Remi Collet <remi@fedoraproject.org> - 0.3.0-1
|
|
|
fd61ebe |
- Update to 0.3.0
|
|
|
fd61ebe |
|
|
|
be6d7e4 |
* Wed Jan 25 2012 Remi Collet <remi@fedoraproject.org> - 0.2.0-8
|
|
|
be6d7e4 |
- clean fedora template
|
|
|
be6d7e4 |
- fix Provides for non standard channel (missing channel name)
|
|
|
be6d7e4 |
|
|
|
607ebad |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-7
|
|
|
607ebad |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
607ebad |
|
|
|
29aacbd |
* Thu Mar 24 2011 Remi Collet <Fedora@FamilleCollet.com> 0.2.0-6
|
|
|
29aacbd |
- keep installed doc in %%{pear_docdir}
|
|
|
29aacbd |
- define date.timezone during build
|
|
|
29aacbd |
|
|
|
4dcb0bf |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-5
|
|
|
4dcb0bf |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
4dcb0bf |
|
|
|
a67c726 |
* Sat Feb 20 2010 Remi Collet <Fedora@FamilleCollet.com> 0.2.0-4
|
|
|
a67c726 |
- fix missing pear in dep name (#536756)
|
|
|
a67c726 |
- replace %%define by %%global in template
|
|
|
a67c726 |
- requires php-common (rather than php) when needed (not used yet)
|
|
|
a67c726 |
- apply patch in %%prep
|
|
|
a67c726 |
|
|
|
7355047 |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-3
|
|
|
7355047 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
7355047 |
|
|
|
cb554bb |
* Sun Jul 19 2009 Remi Collet <Fedora@FamilleCollet.com> 0.2.0-2
|
|
|
cb554bb |
- change %%{pear-name}.xml to %%{name}.xml
|
|
|
cb554bb |
|
|
|
2546143 |
* Sat Jun 27 2009 Tim Jackson <rpm@timj.co.uk> 0.2.0-1
|
|
|
2546143 |
- Update to 0.2.0
|
|
|
2546143 |
|
|
|
9462d6a |
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.2-7
|
|
|
9462d6a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
9462d6a |
|
|
|
cb178ae |
* Thu Aug 28 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.1.2-6
|
|
|
cb178ae |
- fix license tag
|
|
|
cb178ae |
|
|
|
68a9608 |
* Sat Sep 23 2006 Tim Jackson <rpm@timj.co.uk> 0.1.2-5
|
|
|
68a9608 |
- Remove "PEAR:" from Summary in spec and template.spec
|
|
|
68a9608 |
|
|
|
68a9608 |
* Sun Sep 10 2006 Tim Jackson <rpm@timj.co.uk> 0.1.2-4
|
|
|
68a9608 |
- Shorten summary
|
|
|
68a9608 |
- Remove unnecessary dep on php
|
|
|
68a9608 |
- Bundle LICENSE file
|
|
|
68a9608 |
- Rename template specfile source to keep rpmlint happy
|
|
|
68a9608 |
|
|
|
68a9608 |
* Sat Sep 09 2006 Tim Jackson <rpm@timj.co.uk> 0.1.2-3
|
|
|
68a9608 |
- Update to conform with latest conventions in bug #198706
|
|
|
68a9608 |
- Update in-built spec (for generation of other package specs) to (nearly)
|
|
|
68a9608 |
conform with latest spec conventions
|
|
|
68a9608 |
|
|
|
68a9608 |
* Mon Jul 03 2006 Tim Jackson <rpm@timj.co.uk> 0.1.2-2
|
|
|
68a9608 |
- BR php-pear 1.4.9; 1.4.8 is broken
|
|
|
68a9608 |
- Update to conform to proposed Fedora PHP packaging standards
|
|
|
68a9608 |
|
|
|
68a9608 |
* Wed Jun 28 2006 Tim Jackson <rpm@timj.co.uk> 0.1.2-1
|
|
|
68a9608 |
- Update to 0.1.2
|
|
|
68a9608 |
- Update fedora-conventions patch to patch Packaging.xml
|
|
|
68a9608 |
- Update fedora-conventions patch for peardir/tests -> peardir/test
|
|
|
68a9608 |
- Backport upstream patch to make Fedora conventions work properly
|
|
|
68a9608 |
|
|
|
68a9608 |
* Fri Jun 9 2006 Tim Jackson <rpm@timj.co.uk> 0.1.1-2
|
|
|
68a9608 |
- Add Epoch to php-pear BR
|
|
|
68a9608 |
|
|
|
68a9608 |
* Thu May 18 2006 Tim Jackson <rpm@timj.co.uk> 0.1.1-1
|
|
|
68a9608 |
- Update to 0.1.1
|
|
|
68a9608 |
- XML description now in datadir/pear/.pkgxml (see bug #190252)
|
|
|
68a9608 |
- Stop buildroot path ending up in output files
|
|
|
68a9608 |
|
|
|
68a9608 |
* Wed Mar 15 2006 Tim Jackson <rpm@timj.co.uk> 0.1.0-2
|
|
|
68a9608 |
- Own data/PEAR_Command_Packaging dir
|
|
|
68a9608 |
- Remove empty doc line
|
|
|
68a9608 |
- Remove empty build section
|
|
|
68a9608 |
- Replace cp with install
|
|
|
68a9608 |
|
|
|
68a9608 |
* Tue Mar 14 2006 Tim Jackson <rpm@timj.co.uk> 0.1.0-1
|
|
|
68a9608 |
- Initial RPM build
|