rpms/php-phpunit-phpcpd/F-12 import.log, NONE, 1.1 php-phpunit-phpcpd.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Guillaume Kulakowski llaumgui at fedoraproject.org
Wed Nov 18 11:21:14 UTC 2009


Author: llaumgui

Update of /cvs/pkgs/rpms/php-phpunit-phpcpd/F-12
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv20247/F-12

Modified Files:
	.cvsignore sources 
Added Files:
	import.log php-phpunit-phpcpd.spec 
Log Message:
Initial import


--- NEW FILE import.log ---
php-phpunit-phpcpd-1_2_0-1_fc11:F-12:php-phpunit-phpcpd-1.2.0-1.fc11.src.rpm:1258543230


--- NEW FILE php-phpunit-phpcpd.spec ---
%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
%define pear_name phpcpd
%define channel pear.phpunit.de

Name:           php-phpunit-phpcpd
Version:        1.2.0
Release:        1%{?dist}
Summary:        Copy/Paste Detector (CPD) for PHP code

Group:          Development/Libraries
License:        BSD
URL:            http://github.com/sebastianbergmann/phpcpd
Source0:        http://pear.phpunit.de/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-channel(%{channel})
Requires(post): %{__pear}
Requires(postun): %{__pear}

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


%description
phpcpd is a Copy/Paste Detector (CPD) for PHP code.

The goal of phpcpd is not not to replace more sophisticated tools such as phpcs,
pdepend, or phpmd, but rather to provide an alternative to them when you just
need to get a quick overview of duplicated code in a project.


%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}


%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 \
        pear.phpunit.de/%{pear_name} >/dev/null || :
fi


%files
%defattr(-,root,root,-)
%{pear_xmldir}/%{name}.xml
%{pear_phpdir}/PHPCPD/Log/XML/PMD.php
%{pear_phpdir}/PHPCPD/Log/XML.php
%{pear_phpdir}/PHPCPD/TextUI/Command.php
%{pear_phpdir}/PHPCPD/TextUI/Getopt.php
%{pear_phpdir}/PHPCPD/TextUI/ResultPrinter.php
%{pear_phpdir}/PHPCPD/Util/FilterIterator.php
%{pear_phpdir}/PHPCPD/Clone.php
%{pear_phpdir}/PHPCPD/CloneMap.php
%{pear_phpdir}/PHPCPD/Detector.php
%{_bindir}/phpcpd


%changelog
* Thu Oct 15 2009 Guillaume Kulakowski <guillaume DOT kulakowski AT fedoraproject DOT org> - 1.2.0-1
- Initial packaging


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/php-phpunit-phpcpd/F-12/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	16 Nov 2009 17:52:48 -0000	1.1
+++ .cvsignore	18 Nov 2009 11:21:13 -0000	1.2
@@ -0,0 +1 @@
+phpcpd-1.2.0.tgz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/php-phpunit-phpcpd/F-12/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	16 Nov 2009 17:52:49 -0000	1.1
+++ sources	18 Nov 2009 11:21:14 -0000	1.2
@@ -0,0 +1 @@
+84cc68a7e05df6c360ec3054f6dd4214  phpcpd-1.2.0.tgz




More information about the scm-commits mailing list