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

Guillaume Kulakowski llaumgui at fedoraproject.org
Fri Nov 6 23:31:39 UTC 2009


Author: llaumgui

Update of /cvs/pkgs/rpms/php-phpunit-phploc/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv14917/F-11

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



--- NEW FILE import.log ---
php-phpunit-phploc-1_2_0-1_fc11:F-11:php-phpunit-phploc-1.2.0-1.fc11.src.rpm:1257550268


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

Name:           php-phpunit-phploc
Version:        1.2.0
Release:        1%{?dist}
Summary:        A tool for quickly measuring the size of a PHP project

Group:          Development/Libraries
License:        BSD
URL:            http://sebastianbergmann.github.com/phploc/
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
phploc is a tool for quickly measuring the size of a PHP project.

The goal of phploc 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 understanding of a project's size.


%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}/PHPLOC/TextUI/ResultPrinter/Text.php
%{pear_phpdir}/PHPLOC/TextUI/ResultPrinter/XML.php
%{pear_phpdir}/PHPLOC/TextUI/Command.php
%{pear_phpdir}/PHPLOC/TextUI/Getopt.php
%{pear_phpdir}/PHPLOC/Util/FilterIterator.php
%{pear_phpdir}/PHPLOC/Analyser.php
%{_bindir}/phploc


%changelog
* Tue Oct 13 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-phploc/F-11/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	6 Nov 2009 20:39:44 -0000	1.1
+++ .cvsignore	6 Nov 2009 23:31:39 -0000	1.2
@@ -0,0 +1 @@
+phploc-1.2.0.tgz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/php-phpunit-phploc/F-11/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	6 Nov 2009 20:39:44 -0000	1.1
+++ sources	6 Nov 2009 23:31:39 -0000	1.2
@@ -0,0 +1 @@
+20bb7d549f3f7ff37dd1f6309a0b883a  phploc-1.2.0.tgz




More information about the fedora-extras-commits mailing list