rpms/php-phpmd-PHP-PMD/F-11 import.log, NONE, 1.1 php-phpmd-PHP-PMD.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Christof Damian cdamian at fedoraproject.org
Sun Jan 31 19:42:38 UTC 2010


Author: cdamian

Update of /cvs/pkgs/rpms/php-phpmd-PHP-PMD/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv23621/F-11

Modified Files:
	.cvsignore sources 
Added Files:
	import.log php-phpmd-PHP-PMD.spec 
Log Message:
import



--- NEW FILE import.log ---
php-phpmd-PHP-PMD-0_2_2-2_fc12:F-11:php-phpmd-PHP-PMD-0.2.2-2.fc12.src.rpm:1264966923


--- NEW FILE php-phpmd-PHP-PMD.spec ---
%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
%global pear_name PHP_PMD
%global channel pear.phpmd.org

Name:           php-phpmd-PHP-PMD
Version:        0.2.2
Release:        2%{?dist}
Summary:        PHPMD - PHP Mess Detector

Group:          Development/Libraries
License:        BSD
URL:            http://www.phpmd.org/
Source0:        http://pear.phpmd.org/get/%{pear_name}-%{version}.tgz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:      noarch
BuildRequires:  php-pear >= 1:1.6.0
BuildRequires:  php-channel(%{channel})
Requires:       php-channel(%{channel})
Requires:       php-common >= 5.2.0
Requires:       php-xml
Requires:       php-pear(pear.pdepend.org/PHP_Depend) >= 0.9.7
Requires(post): %{__pear}
Requires(postun): %{__pear}

Provides:       php-pear(%{channel}/%{pear_name}) = %{version}


%description
This is the project site of PHPMD. It is a spin-off project of PHP Depend 
and aims to be a PHP equivalent of the well known Java tool PMD. PHPMD can 
be seen as an user friendly frontend application for the raw metrics 
stream measured by PHP Depend.

%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 $RPM_BUILD_ROOT docdir
%{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{name}.xml

# Clean up unnecessary files
%{__rm} -rf $RPM_BUILD_ROOT%{pear_phpdir}/.??*

# Install XML package description
%{__mkdir} -p $RPM_BUILD_ROOT%{pear_xmldir}
%{__install} -pm 644 %{name}.xml $RPM_BUILD_ROOT%{pear_xmldir}

# Move documentation
%{__mkdir} -p docdir
%{__mv} $RPM_BUILD_ROOT%{pear_docdir}/* docdir

%clean
%{__rm} -rf $RPM_BUILD_ROOT


%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,-)
%{pear_xmldir}/%{name}.xml
%{pear_phpdir}/PHP/PMD.php
%{pear_phpdir}/PHP/PMD
%{pear_datadir}/PHP_PMD
%{_bindir}/phpmd
%doc %{pear_name}-%{version}/docdir/%{pear_name}/*

%changelog
* Sun Jan 31 2010 Christof Damian <christof at damian.net> - 0.2.2-2
- use pear_datadir in filesection

* Sat Jan 30 2010 Christof Damian <christof at damian.net> 0.2.2-1
- upstream 0.2.2
- changed define to global
- moved docs to /usr/share/doc
- use channel macro in postun

* Tue Jan 12 2010 Christof Damian <christof at damian.net> - 0.2.1-1
- upstream 0.2.1

* Fri Jan 1 2010 Christof Damian <christof at damian.net> 0.2.0-1
- initial release



Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/php-phpmd-PHP-PMD/F-11/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	31 Jan 2010 19:09:32 -0000	1.1
+++ .cvsignore	31 Jan 2010 19:42:38 -0000	1.2
@@ -0,0 +1 @@
+PHP_PMD-0.2.2.tgz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/php-phpmd-PHP-PMD/F-11/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	31 Jan 2010 19:09:32 -0000	1.1
+++ sources	31 Jan 2010 19:42:38 -0000	1.2
@@ -0,0 +1 @@
+9c76d49df7137b52332267b76bb11f64  PHP_PMD-0.2.2.tgz



More information about the scm-commits mailing list