|
|
4c7b55a |
%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
|
|
|
5b25753 |
%global pear_name PHP_Depend
|
|
|
5b25753 |
%global channel pear.pdepend.org
|
|
|
4c7b55a |
|
|
|
4c7b55a |
Name: php-pdepend-PHP-Depend
|
|
Christof Damian |
6d7d6fe |
Version: 0.10.6
|
|
|
845a0fd |
Release: 2%{?dist}
|
|
|
4c7b55a |
Summary: PHP_Depend design quality metrics for PHP package
|
|
|
4c7b55a |
|
|
|
4c7b55a |
Group: Development/Libraries
|
|
|
4c7b55a |
License: BSD
|
|
|
4c7b55a |
URL: http://www.pdepend.org/
|
|
|
4c7b55a |
Source0: http://pear.pdepend.org/get/%{pear_name}-%{version}.tgz
|
|
|
4c7b55a |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
4c7b55a |
|
|
|
4c7b55a |
BuildArch: noarch
|
|
|
4c7b55a |
BuildRequires: php-pear >= 1:1.6.0
|
|
|
4c7b55a |
BuildRequires: php-channel(%{channel})
|
|
|
4c7b55a |
Requires: php-channel(%{channel})
|
|
|
4c7b55a |
Requires: php-common >= 5.2.2
|
|
|
4c7b55a |
Requires: php-xml
|
|
|
4c7b55a |
Requires: php-pecl(imagick) >= 2.2.0b2
|
|
|
4c7b55a |
Requires(post): %{__pear}
|
|
|
4c7b55a |
Requires(postun): %{__pear}
|
|
|
4c7b55a |
|
|
|
4c7b55a |
Provides: php-pear(%{channel}/%{pear_name}) = %{version}
|
|
|
4c7b55a |
|
|
|
4c7b55a |
|
|
|
4c7b55a |
%description
|
|
|
4c7b55a |
PHP_Depend is an adaption of the Java design quality metrics software JDepend
|
|
|
4c7b55a |
and the NDepend metric tool.
|
|
|
4c7b55a |
|
|
|
4c7b55a |
%prep
|
|
|
4c7b55a |
%setup -q -c
|
|
|
4c7b55a |
[ -f package2.xml ] || mv package.xml package2.xml
|
|
|
4c7b55a |
%{__mv} package2.xml %{pear_name}-%{version}/%{name}.xml
|
|
|
4c7b55a |
cd %{pear_name}-%{version}
|
|
|
4c7b55a |
|
|
|
4c7b55a |
|
|
|
4c7b55a |
%build
|
|
|
4c7b55a |
cd %{pear_name}-%{version}
|
|
|
4c7b55a |
# Empty build section, most likely nothing required.
|
|
|
4c7b55a |
|
|
|
4c7b55a |
|
|
|
4c7b55a |
%install
|
|
|
4c7b55a |
cd %{pear_name}-%{version}
|
|
|
4c7b55a |
%{__rm} -rf $RPM_BUILD_ROOT docdir
|
|
|
4c7b55a |
%{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{name}.xml
|
|
|
4c7b55a |
|
|
|
4c7b55a |
# Clean up unnecessary files
|
|
|
4c7b55a |
%{__rm} -rf $RPM_BUILD_ROOT%{pear_phpdir}/.??*
|
|
|
4c7b55a |
|
|
|
4c7b55a |
# Install XML package description
|
|
|
4c7b55a |
%{__mkdir} -p $RPM_BUILD_ROOT%{pear_xmldir}
|
|
|
4c7b55a |
%{__install} -pm 644 %{name}.xml $RPM_BUILD_ROOT%{pear_xmldir}
|
|
|
4c7b55a |
|
|
|
4c7b55a |
|
|
|
4c7b55a |
%clean
|
|
|
4c7b55a |
%{__rm} -rf $RPM_BUILD_ROOT
|
|
|
4c7b55a |
|
|
|
4c7b55a |
|
|
|
4c7b55a |
%post
|
|
|
4c7b55a |
%{__pear} install --nodeps --soft --force --register-only \
|
|
|
4c7b55a |
%{pear_xmldir}/%{name}.xml >/dev/null || :
|
|
|
4c7b55a |
|
|
|
4c7b55a |
|
|
|
4c7b55a |
%postun
|
|
|
4c7b55a |
if [ $1 -eq 0 ] ; then
|
|
|
4c7b55a |
%{__pear} uninstall --nodeps --ignore-errors --register-only \
|
|
|
4c7b55a |
%{channel}/%{pear_name} >/dev/null || :
|
|
|
4c7b55a |
fi
|
|
|
4c7b55a |
|
|
|
4c7b55a |
|
|
|
4c7b55a |
%files
|
|
|
4c7b55a |
%defattr(-,root,root,-)
|
|
|
4c7b55a |
%{pear_xmldir}/%{name}.xml
|
|
|
4c7b55a |
%{pear_phpdir}/PHP
|
|
|
4c7b55a |
%{_bindir}/pdepend
|
|
|
4c7b55a |
|
|
|
4c7b55a |
%changelog
|
|
|
845a0fd |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.6-2
|
|
|
845a0fd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
845a0fd |
|
|
Christof Damian |
6d7d6fe |
* Sun Oct 30 2011 Christof Damian <christof@damian.net> - 0.10.6-1
|
|
Christof Damian |
6d7d6fe |
- upstream 0.10.6
|
|
Christof Damian |
6d7d6fe |
|
|
Christof Damian |
ba1263e |
* Fri May 20 2011 Christof Damian <christof@damian.net> - 0.10.5-1
|
|
Christof Damian |
ba1263e |
- upstream 0.10.5
|
|
Christof Damian |
ba1263e |
|
|
Christof Damian |
b0150fb |
* Fri Mar 4 2011 Christof Damian <christof@damian.net> - 0.10.3-1
|
|
Christof Damian |
b0150fb |
- upstream 0.10.3
|
|
Christof Damian |
b0150fb |
|
|
Christof Damian |
bb313ce |
* Mon Feb 28 2011 Christof Damian <cdamian@robin.gotham.krass.com> - 0.10.2-1
|
|
Christof Damian |
bb313ce |
- upstream 0.10.2
|
|
Christof Damian |
bb313ce |
|
|
|
17f578e |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.1-2
|
|
|
17f578e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
17f578e |
|
|
Christof Damian |
a0e9c48 |
* Sun Feb 6 2011 Christof Damian <christof@damian.net> - 0.10.1-1
|
|
Christof Damian |
a0e9c48 |
- upstream stable release 0.10.1
|
|
Christof Damian |
a0e9c48 |
|
|
Christof Damian |
dab3329 |
* Fri Sep 17 2010 Christof Damian <christof@damian.net> - 0.9.19-1
|
|
Christof Damian |
dab3329 |
- upstream 0.9.19
|
|
Christof Damian |
dab3329 |
|
|
Christof Damian |
4b8db9d |
* Fri Sep 3 2010 Christof Damian <christof@damian.net> - 0.9.18-1
|
|
Christof Damian |
4b8db9d |
- upstream 0.9.18
|
|
Christof Damian |
4b8db9d |
|
|
Christof Damian |
a5849eb |
* Fri Jul 30 2010 Christof Damian <christof@damian.net> - 0.9.17-1
|
|
Christof Damian |
a5849eb |
- upstream 0.9.17
|
|
Christof Damian |
a5849eb |
|
|
|
101c80d |
* Sun Jun 20 2010 Christof Damian <christof@damian.net> - 0.9.16-1
|
|
|
101c80d |
- upstream 0.9.16: bugfixes
|
|
|
101c80d |
|
|
|
5fe8359 |
* Sat May 22 2010 Christof Damian <christof@damian.net> - 0.9.14-1
|
|
|
5fe8359 |
- upstream 0.9.14
|
|
|
5fe8359 |
|
|
|
8b7e737 |
* Mon May 10 2010 Christof Damian <christof@damian.net> - 0.9.13-1
|
|
|
8b7e737 |
- upstream 0.9.13 important bugfixes
|
|
|
8b7e737 |
|
|
|
0fe3a33 |
* Tue Apr 27 2010 Christof Damian <christof@damian.net> - 0.9.12-1
|
|
|
0fe3a33 |
- upstream 0.9.12
|
|
|
0fe3a33 |
- upstream removed all tests
|
|
|
0fe3a33 |
|
|
|
dcc156e |
* Wed Mar 3 2010 Christof Damian <christof@damian.net> - 0.9.11-1
|
|
|
dcc156e |
- upstream 0.9.11
|
|
|
dcc156e |
|
|
|
5b25753 |
* Tue Feb 23 2010 Christof Damian <christof@damian.net> - 0.9.10-1
|
|
|
5b25753 |
- upstream 0.9.10
|
|
|
5b25753 |
- replaced define macro with global
|
|
|
5b25753 |
|
|
|
4c7b55a |
* Tue Jan 26 2010 Christof Damian <christof@damian.net> 0.9.9-2
|
|
|
4c7b55a |
- require pecl imagick, which is an optional requirement
|
|
|
4c7b55a |
- require php-xml for dom
|
|
|
4c7b55a |
- change postun to use channel macro for consistency
|
|
|
4c7b55a |
- own /usr/share/pear/PHP
|
|
|
4c7b55a |
- include test files (which currently don't work)
|
|
|
4c7b55a |
|
|
|
4c7b55a |
* Fri Jan 1 2010 Christof Damian <christof@damian.net> 0.9.9-1
|
|
|
4c7b55a |
- initial release
|