rpms/pmd/devel pmd.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Matt Wringe (mwringe)
fedora-extras-commits at redhat.com
Tue Mar 13 23:11:05 UTC 2007
Author: mwringe
Update of /cvs/extras/rpms/pmd/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv25863/devel
Modified Files:
.cvsignore sources
Added Files:
pmd.spec
Log Message:
auto-import pmd-3.6-1jpp.1 on branch devel from pmd-3.6-1jpp.1.src.rpm
--- NEW FILE pmd.spec ---
# Copyright (c) 2000-2005, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the
# distribution.
# 3. Neither the name of the JPackage Project nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
Name: pmd
Version: 3.6
Release: 1jpp.1%{?dist}
Epoch: 0
Summary: Scans Java source code and looks for potential problems
License: BSD Style
# cvs -z3 -d:pserver:anonymous at pmd.cvs.sourceforge.net:/cvsroot/pmd export \
# -r pmd_release_3_6 pmd
# tar -czvf pmd-src.tar.gz pmd
Source0: %{name}-src.tar.gz
Url: http://pmd.sourceforge.net/
BuildRequires: jpackage-utils >= 0:1.6
BuildRequires: ant >= 0:1.6
BuildRequires: ant-junit
BuildRequires: junit
BuildRequires: jaxen >= 0:1.1
BuildRequires: xerces-j2
BuildRequires: xml-commons-apis
Requires: jaxen >= 0:1.1
Requires: xerces-j2
Requires: xml-commons-apis
Group: Development/Tools
Buildarch: noarch
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
PMD scans Java source code and looks for potential
problems like:
+ Unused local variables
+ Empty catch blocks
+ Unused parameters
+ Empty 'if' statements
+ Duplicate import statements
+ Unused private methods
+ Classes which could be Singletons
+ Short/long variable and method names
PMD has plugins for JDeveloper, JEdit, JBuilder,
NetBeans/Sun ONE Studio, IntelliJ IDEA, TextPad,
Maven, Ant, Eclipse, Gel, and Emacs.
%package manual
Summary: Manual for %{name}
Group: Documentation
%description manual
Documentation for %{name}.
%package javadoc
Summary: Javadoc for %{name}
Group: Documentation
%description javadoc
Javadoc for %{name}.
%prep
%setup -q -n %{name}
# set right permissions
find . -name "*.sh" -exec chmod 755 \{\} \;
# remove all binary libs
find . -name "*.jar" -exec rm -f {} \;
%build
export OPT_JAR_LIST="ant/ant-junit junit"
export CLASSPATH=$(build-classpath \
jaxen \
oro \
xerces-j2 \
xml-commons-apis)
CLASSPATH=$CLASSPATH:target/classes:target/test-classes
cd bin
ant -Dbuild.sysclasspath=only dist javadoc
%install
rm -rf $RPM_BUILD_ROOT
# jar
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
install -m 644 lib/%{name}-%{version}.jar \
$RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}.jar; \
do ln -sf ${jar} ${jar/-%{version}/}; done)
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}/etc
cp -pr etc/* $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}/etc
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}/rulesets
cp -pr rulesets/* $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}/rulesets
# javadoc
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
# manual
install -d -m 755 $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
cp -p LICENSE.txt $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(0644,root,root,0755)
%doc %{_docdir}/%{name}-%{version}/LICENSE.txt
%{_javadir}/*.jar
%{_datadir}/%{name}-%{version}
%files manual
%defattr(0644,root,root,0755)
%doc %{_docdir}/%{name}-%{version}
%files javadoc
%defattr(0644,root,root,0755)
%{_javadocdir}/*
%changelog
* Tue Mar 13 2007 Jeff Johnston <jjohnstn at redhat.com> - 0:3.6-1jpp.1
- Updated per Fedora package review process
- Resolves: #227109
* Mon Jun 19 2006 Deepak Bhole <dbhole at redhat.com> - 0:3.6-1jpp
- Upgrade to 3.6
* Fri Mar 10 2006 Fernando Nasser <fnasser at redhat.com> - 0:3.3-2jpp
- First JPP 1.7 build
* Wed Nov 09 2005 Ralph Apel <r.apel at r-apel.de> - 0:3.3-1jpp
- Upgrade to 3.3
- Fix Groups
* Tue Feb 22 2005 Laurent Goujon <laurent at gobio2.net> - 2.3-1jpp
- Upgrade to 2.3
- Use bin/build.xml
* Mon Sep 13 2004 Ralph Apel <r.apel at r-apel.de> - 1.9-2jpp
- Drop saxpath requirements
- Require jaxen >= 0:1.1
- Relax some versioned requirements
* Wed Aug 25 2004 Fernando Nasser <fnasser at redhat.com> - 1.9-1jpp
- Upgrade to 1.9
* Wed Aug 24 2004 Fernando Nasser <fnasser at redhat.com> - 0:1.5-4jpp
- Rebuild with Ant 1.6.2
* Fri Aug 06 2004 Ralph Apel <r.apel at r-apel.de> - 1.5-3jpp
- Void change
* Tue Jun 01 2004 Randy Watler <rwatler at finali.com> - 1.5-2jpp
- Upgrade to Ant 1.6.X
* Wed Mar 24 2004 Ralph Apel <r.apel at r-apel.de> 1.5-1jpp
- first JPackage release
Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/pmd/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 13 Mar 2007 22:56:36 -0000 1.1
+++ .cvsignore 13 Mar 2007 23:10:32 -0000 1.2
@@ -0,0 +1 @@
+pmd-src.tar.gz
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/pmd/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 13 Mar 2007 22:56:36 -0000 1.1
+++ sources 13 Mar 2007 23:10:32 -0000 1.2
@@ -0,0 +1 @@
+e6539a1bba0c35b4fd76e46a33b8c219 pmd-src.tar.gz
More information about the fedora-extras-commits
mailing list