[Bug 708210] New: ant-scripts should be executable
by Red Hat Bugzilla
Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.
Summary: ant-scripts should be executable
https://bugzilla.redhat.com/show_bug.cgi?id=708210
Summary: ant-scripts should be executable
Product: Fedora
Version: 15
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: high
Priority: unspecified
Component: ant
AssignedTo: pcheung(a)redhat.com
ReportedBy: quiffman(a)gmail.com
QAContact: extras-qa(a)fedoraproject.org
CC: pcheung(a)redhat.com, akurtako(a)redhat.com,
mmatejov(a)redhat.com,
java-sig-commits(a)lists.fedoraproject.org
Classification: Fedora
Story Points: ---
Description of problem:
The perl and python scripts delivered in the ant-scripts sub-package are
delivered 0644, they should (probably) be 0755:
/usr/bin/antRun.pl
/usr/bin/complete-ant-cmd.pl
/usr/bin/runant.pl
/usr/bin/runant.py
Version-Release number of selected component (if applicable):
1.8.2-3
At the very least, /usr/bin/complete-ant-cmd.pl should be 0755 - otherwise
bash_completion for ant fails.
--
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
12 years, 9 months
[ant] Make scripts executable.
by Alexander Kurtakov
commit a40f6fca1bf6469e6b80baea323108916f9029f2
Author: Alexander Kurtakov <akurtako(a)redhat.com>
Date: Wed Jul 6 13:49:01 2011 +0300
Make scripts executable.
Adapt to current guidelines.
ant.spec | 70 ++++++++++---------------------------------------------------
1 files changed, 12 insertions(+), 58 deletions(-)
---
diff --git a/ant.spec b/ant.spec
index f8ad41d..c532588 100644
--- a/ant.spec
+++ b/ant.spec
@@ -50,7 +50,7 @@
Name: ant
Version: 1.8.2
-Release: 5%{?dist}
+Release: 6%{?dist}
Epoch: 0
Summary: Build tool for java
Summary(it): Tool per la compilazione di programmi java
@@ -85,30 +85,15 @@ Requires: xml-commons-jaxp-1.3-apis
%endif
BuildArch: noarch
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
-Obsoletes: ant-optional < %{epoch}:%{version}-%{release}
-Provides: ant-optional = %{epoch}:%{version}-%{release}
-Obsoletes: ant-optional-full < %{epoch}:%{version}-%{release}
-Provides: ant-optional-full = %{epoch}:%{version}-%{release}
# Allow subpackages not in RHEL to be installed from JPackage
Provides: %{name} = %{epoch}:%{version}-%{release}
-# RHUG
-Obsoletes: ant-devel < %{epoch}:%{version}-%{release}
-Provides: ant-devel = %{epoch}:%{version}-%{release}
-# Mandriva
-Conflicts: j2sdk-ant
-# RHEL3 and FC2
-Obsoletes: %{name}-libs < %{epoch}:%{version}-%{release}
-Provides: %{name}-libs = %{epoch}:%{version}-%{release}
-Obsoletes: %{name}-core < %{epoch}:%{version}-%{release}
-Provides: %{name}-core = %{epoch}:%{version}-%{release}
+#Drop in F-18
Obsoletes: %{name}-nodeps < %{epoch}:%{version}-%{release}
Provides: %{name}-nodeps = %{epoch}:%{version}-%{release}
Obsoletes: %{name}-trax < %{epoch}:%{version}-%{release}
Provides: %{name}-trax = %{epoch}:%{version}-%{release}
-Requires(post): jpackage-utils >= 0:1.7.5
-Requires(postun): jpackage-utils >= 0:1.7.5
+
%description
Ant is a platform-independent build tool for java. It's used by apache
@@ -507,14 +492,12 @@ sh ./build.sh --noconfig jars
# -----------------------------------------------------------------------------
%install
-rm -rf $RPM_BUILD_ROOT
-
# ANT_HOME and subdirs
mkdir -p $RPM_BUILD_ROOT%{ant_home}/{lib,etc}
# jars
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}/%{name}
-install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms
+install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
for jar in build/lib/*.jar
do
@@ -542,7 +525,7 @@ do
[ $jarname == ant-bootstrap ] && continue
#install pom
- install -m 644 src/etc/poms/${jarname}/pom.xml $RPM_BUILD_ROOT%{_datadir}/maven2/poms/${pomname}
+ install -m 644 src/etc/poms/${jarname}/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/${pomname}
%add_to_maven_depmap org.apache.ant ${jarname} %{version} JPP${destname} ${jarname}
done
@@ -551,7 +534,7 @@ done
%add_to_maven_depmap org.apache.ant ant-nodeps %{version} JPP ant
#ant-parent pom
-install -m 644 src/etc/poms/pom.xml $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{name}-parent.pom
+install -m 644 src/etc/poms/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}-parent.pom
%add_to_maven_depmap org.apache.ant ant-parent %{version} JPP ant-parent
# scripts: remove dos and os/2 scripts
@@ -617,19 +600,7 @@ find $RPM_BUILD_ROOT%{_datadir}/ant/etc -type f -name "*.xsl" \
| xargs -t rm
%endif
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-# -----------------------------------------------------------------------------
-
-%post
-%update_maven_depmap
-
-%postun
-%update_maven_depmap
-
%files
-%defattr(-,root,root,-)
%doc KEYS LICENSE NOTICE README WHATSNEW
%config(noreplace) %{_sysconfdir}/%{name}.conf
%attr(0755,root,root) %{_bindir}/ant
@@ -660,13 +631,11 @@ rm -rf $RPM_BUILD_ROOT
%{_mavendepmapfragdir}/*
%files jmf
-%defattr(-,root,root,-)
%{_javadir}/%{name}/%{name}-jmf.jar
%{ant_home}/lib/%{name}-jmf.jar
%config(noreplace) %{_sysconfdir}/%{name}.d/jmf
%files swing
-%defattr(-,root,root,-)
%{_javadir}/%{name}/%{name}-swing.jar
%{ant_home}/lib/%{name}-swing.jar
%config(noreplace) %{_sysconfdir}/%{name}.d/swing
@@ -674,7 +643,6 @@ rm -rf $RPM_BUILD_ROOT
%if %without bootstrap
%if %{with_manifest_only}
%files manifest-only
-%defattr(-,root,root,-)
%{_javadir}/%{name}/ant-icontract.jar
%{_javadir}/%{name}/ant-netrexx.jar
%{_javadir}/%{name}/ant-starteam.jar
@@ -686,19 +654,16 @@ rm -rf $RPM_BUILD_ROOT
%endif
%files antlr
-%defattr(-,root,root,-)
%{_javadir}/%{name}/%{name}-antlr.jar
%{ant_home}/lib/%{name}-antlr.jar
%config(noreplace) %{_sysconfdir}/%{name}.d/antlr
%files apache-bsf
-%defattr(-,root,root,-)
%{_javadir}/%{name}/%{name}-apache-bsf.jar
%{ant_home}/lib/%{name}-apache-bsf.jar
%config(noreplace) %{_sysconfdir}/%{name}.d/apache-bsf
%files apache-resolver
-%defattr(-,root,root,-)
%{_javadir}/%{name}/%{name}-apache-resolver.jar
%{ant_home}/lib/%{name}-apache-resolver.jar
%config(noreplace) %{_sysconfdir}/%{name}.d/apache-resolver
@@ -710,7 +675,6 @@ rm -rf $RPM_BUILD_ROOT
%config(noreplace) %{_sysconfdir}/%{name}.d/commons-logging
%files commons-net
-%defattr(-,root,root,-)
%{_javadir}/%{name}/%{name}-commons-net.jar
%{ant_home}/lib/%{name}-commons-net.jar
%config(noreplace) %{_sysconfdir}/%{name}.d/commons-net
@@ -718,51 +682,43 @@ rm -rf $RPM_BUILD_ROOT
# Disable as we dont ship the dependencies
%if 0
%files jai
-%defattr(-,root,root,-)
%{_javadir}/%{name}/%{name}-jai.jar
%{ant_home}/lib/%{name}-jai.jar
%config(noreplace) %{_sysconfdir}/%{name}.d/jai
%endif
%files apache-bcel
-%defattr(-,root,root,-)
%{_javadir}/%{name}/%{name}-apache-bcel.jar
%{ant_home}/lib/%{name}-apache-bcel.jar
%config(noreplace) %{_sysconfdir}/%{name}.d/apache-bcel
%files apache-log4j
-%defattr(-,root,root,-)
%{_javadir}/%{name}/%{name}-apache-log4j.jar
%{ant_home}/lib/%{name}-apache-log4j.jar
%config(noreplace) %{_sysconfdir}/%{name}.d/apache-log4j
%files apache-oro
-%defattr(-,root,root,-)
%{_javadir}/%{name}/%{name}-apache-oro.jar
%{ant_home}/lib/%{name}-apache-oro.jar
%config(noreplace) %{_sysconfdir}/%{name}.d/apache-oro
%{ant_home}/etc/maudit-frames.xsl
%files apache-regexp
-%defattr(-,root,root,-)
%{_javadir}/%{name}/%{name}-apache-regexp.jar
%{ant_home}/lib/%{name}-apache-regexp.jar
%config(noreplace) %{_sysconfdir}/%{name}.d/apache-regexp
%files apache-xalan2
-%defattr(-,root,root,-)
%{_javadir}/%{name}/%{name}-apache-xalan2.jar
%{ant_home}/lib/%{name}-apache-xalan2.jar
%config(noreplace) %{_sysconfdir}/%{name}.d/apache-xalan2
%files javamail
-%defattr(-,root,root,-)
%{_javadir}/%{name}/%{name}-javamail.jar
%{ant_home}/lib/%{name}-javamail.jar
%config(noreplace) %{_sysconfdir}/%{name}.d/javamail
%files jdepend
-%defattr(-,root,root,-)
%{_javadir}/%{name}/%{name}-jdepend.jar
%{ant_home}/lib/%{name}-jdepend.jar
%config(noreplace) %{_sysconfdir}/%{name}.d/jdepend
@@ -770,13 +726,11 @@ rm -rf $RPM_BUILD_ROOT
%{ant_home}/etc/jdepend-frames.xsl
%files jsch
-%defattr(-,root,root,-)
%{_javadir}/%{name}/%{name}-jsch.jar
%{ant_home}/lib/%{name}-jsch.jar
%config(noreplace) %{_sysconfdir}/%{name}.d/jsch
%files junit
-%defattr(-,root,root,-)
%{_javadir}/%{name}/%{name}-junit.jar
%{ant_home}/lib/%{name}-junit.jar
%config(noreplace) %{_sysconfdir}/%{name}.d/junit
@@ -784,23 +738,19 @@ rm -rf $RPM_BUILD_ROOT
%{ant_home}/etc/junit-noframes.xsl
%files testutil
-%defattr(-,root,root,-)
%{_javadir}/%{name}/%{name}-testutil.jar
%{ant_home}/lib/%{name}-testutil.jar
%config(noreplace) %{_sysconfdir}/%{name}.d/testutil
%files scripts
-%defattr(-,root,root,-)
-%{_bindir}/*.pl
-%{_bindir}/*.py*
+%attr(0755,root,root) %{_bindir}/*.pl
+%attr(0755,root,root) %{_bindir}/*.py*
%files manual
-%defattr(-,root,root,-)
%doc docs/*
%if %{build_javadoc}
%files javadoc
-%defattr(-,root,root,-)
%{_javadocdir}/%{name}
%endif
%endif
@@ -808,6 +758,10 @@ rm -rf $RPM_BUILD_ROOT
# -----------------------------------------------------------------------------
%changelog
+* Wed Jul 6 2011 Alexander Kurtakov <akurtako(a)redhat.com> 0:1.8.2-6
+- Make scripts executable.
+- Adapt to current guidelines.
+
* Thu Mar 10 2011 Alexander Kurtakov <akurtako(a)redhat.com> 0:1.8.2-5
- Fix xalan-j2 subpackage path.
12 years, 9 months
[Bug 718281] New: WISH : Resolving from %{_jnidir}
by Red Hat Bugzilla
Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.
Summary: WISH : Resolving from %{_jnidir}
https://bugzilla.redhat.com/show_bug.cgi?id=718281
Summary: WISH : Resolving from %{_jnidir}
Product: Fedora
Version: rawhide
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: unspecified
Priority: unspecified
Component: maven
AssignedTo: sochotni(a)redhat.com
ReportedBy: jcapik(a)redhat.com
QAContact: extras-qa(a)fedoraproject.org
CC: akurtako(a)redhat.com, sochotni(a)redhat.com,
java-sig-commits(a)lists.fedoraproject.org
Blocks: 652183,708836,718188
Classification: Fedora
Story Points: ---
Please, equip Maven with support of resolving from %{_jnidir} in order to allow
installation of native jars (containing architecture dependent code) into
%{_jnidir}.
--
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
12 years, 9 months
[Bug 689020] New: Ant does not load antlib definitions
by Red Hat Bugzilla
Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.
Summary: Ant does not load antlib definitions
https://bugzilla.redhat.com/show_bug.cgi?id=689020
Summary: Ant does not load antlib definitions
Product: Fedora
Version: 14
Platform: All
OS/Version: Linux
Status: NEW
Severity: high
Priority: unspecified
Component: ant
AssignedTo: pcheung(a)redhat.com
ReportedBy: juankprada(a)gmail.com
QAContact: extras-qa(a)fedoraproject.org
CC: pcheung(a)redhat.com, akurtako(a)redhat.com,
mmatejov(a)redhat.com,
java-sig-commits(a)lists.fedoraproject.org
Classification: Fedora
Description of problem:
After installing ANT and apache-ivy package from fedora repo, trying to execute
a build.xml file with an ivy task throws an error at the terminal
This is the output after running ant:
[juankprada@localhost ivyTest]$ ant
Buildfile: build.xml
resolve:
BUILD FAILED
/home/juankprada/Desktop/ivyTest/build.xml:3: Problem: failed to create task or
type antlib:org.apache.ivy.ant:retrieve
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
No types or tasks have been defined in this namespace yet
This appears to be an antlib declaration.
Action: Check that the implementing library exists in one of:
-/usr/share/ant/lib
-/home/juankprada/.ant/lib
-a directory added on the command line with the -lib argument
Total time: 0 seconds
Steps to Reproduce:
1. Install Ant and place any ant plugin inside either /usr/share/ant/lib or
~/.ant/lib
2. Execute ant in a build script that uses the plugin you just placed in ant's
lib
3. Error is thrown
Actual results:
It is impossible to use Ant with other plugins
Expected results:
To have my application built
Additional info:
I did look for other bug reports on this, and found one that is closed and wont
be fixed (god knows why) so I decided to report a new bug on this issue as it's
been happening since fedora 10 as seen here
https://bugzilla.redhat.com/show_bug.cgi?id=490542
--
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
12 years, 9 months
[Bug 718041] New: Fix artifactId for pmd in pom.xml
by Red Hat Bugzilla
Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.
Summary: Fix artifactId for pmd in pom.xml
https://bugzilla.redhat.com/show_bug.cgi?id=718041
Summary: Fix artifactId for pmd in pom.xml
Product: Fedora
Version: rawhide
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: unspecified
Priority: unspecified
Component: maven-pmd-plugin
AssignedTo: akurtako(a)redhat.com
ReportedBy: felix(a)fetzig.org
QAContact: extras-qa(a)fedoraproject.org
CC: akurtako(a)redhat.com,
java-sig-commits(a)lists.fedoraproject.org
Classification: Fedora
Story Points: ---
Created attachment 510741
--> https://bugzilla.redhat.com/attachment.cgi?id=510741
patch to fix pmd artifactId in pom.xml
Description of problem:
pmd's artifactId somehow changed. We need to reflect this in maven's pmd plugin
as to not break the build process of any dependent packages.
Patch against a "fedpkg clone maven-pmd-plugin" git repo is attached
--
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
12 years, 9 months
[maven-pmd-plugin] Adapt to current guidelines.
by Alexander Kurtakov
commit d0c7df6a8ced6cac228d12c70bcb6460bae246e1
Author: Alexander Kurtakov <akurtako(a)redhat.com>
Date: Wed Jul 6 09:54:31 2011 +0300
Adapt to current guidelines.
maven-pmd-plugin.spec | 21 +++++++--------------
sources | 1 -
2 files changed, 7 insertions(+), 15 deletions(-)
---
diff --git a/maven-pmd-plugin.spec b/maven-pmd-plugin.spec
index 21589b2..d8ad9d8 100644
--- a/maven-pmd-plugin.spec
+++ b/maven-pmd-plugin.spec
@@ -1,13 +1,12 @@
Name: maven-pmd-plugin
Version: 2.5
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: Maven PMD Plugin
Group: Development/Libraries
License: ASL 2.0
URL: http://maven.apache.org/plugins/maven-pmd-plugin/
Source0: http://repo2.maven.org/maven2/org/apache/maven/plugins/%{name}/%{version}...
-Source1: maven-pmd-plugin-depmap.xml
Patch0: 0001-fix-pmd-artifactId.patch
BuildArch: noarch
@@ -21,7 +20,7 @@ BuildRequires: maven-install-plugin
BuildRequires: maven-resources-plugin
BuildRequires: maven-compiler-plugin
BuildRequires: maven-javadoc-plugin
-BuildRequires: maven-surefire-maven-plugin
+BuildRequires: maven-surefire-plugin
BuildRequires: maven-surefire-provider-junit4
BuildRequires: maven-doxia-sitetools
BuildRequires: maven-plugin-testing-harness
@@ -65,7 +64,6 @@ API documentation for %{name}.
%build
mvn-rpmbuild \
- -Dmaven.local.depmap.file=%{SOURCE1} \
-Dmaven.test.failure.ignore=true \
install javadoc:javadoc
@@ -74,34 +72,29 @@ mvn-rpmbuild \
install -d -m 0755 %{buildroot}%{_javadir}
install -m 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
-%add_to_maven_depmap org.apache.maven.plugins maven-pmd-plugin %{version} JPP maven-pmd-plugin
-
# poms
install -d -m 755 %{buildroot}%{_mavenpomdir}
install -pm 644 pom.xml \
%{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
+%add_maven_depmap JPP-%{name}.pom %{name}.jar
+
# javadoc
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}
cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}/
-%post
-%update_maven_depmap
-
-%postun
-%update_maven_depmap
-
%files
-%defattr(-,root,root,-)
%{_javadir}/*
%{_mavenpomdir}/*
%{_mavendepmapfragdir}/*
%files javadoc
-%defattr(-,root,root,-)
%{_javadocdir}/%{name}
%changelog
+* Wed Jul 6 2011 Alexander Kurtakov <akurtako(a)redhat.com> 2.5-5
+- Adapt to current guidelines.
+
* Thu Jun 30 2011 Felix Kaechele <heffer(a)fedoraproject.org> - 2.5-4
- added patch to fix pmd artifactId in pom.xml
diff --git a/sources b/sources
index e1da7e4..101465e 100644
--- a/sources
+++ b/sources
@@ -1,2 +1 @@
-ce2441d333284be879fb8efeb56bc5fa maven-pmd-plugin-2.5.tar.xz
8af1a9a23b126a982a42105341d579e0 maven-pmd-plugin-2.5-source-release.zip
12 years, 9 months
[maven-pmd-plugin] Fix pmd artifactId
by Alexander Kurtakov
commit 687222293a9277f60cf11f70c928549b49bfc951
Author: Alexander Kurtakov <akurtako(a)redhat.com>
Date: Wed Jul 6 09:53:39 2011 +0300
Fix pmd artifactId
.gitignore | 2 +
0001-fix-pmd-artifactId.patch | 25 +++++++++
maven-pmd-plugin.spec | 116 +++++++++++++++++++++++++++++++++++++++++
sources | 2 +
4 files changed, 145 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..6477378
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+maven-pmd-plugin-2.5.tar.xz
+/maven-pmd-plugin-2.5-source-release.zip
diff --git a/0001-fix-pmd-artifactId.patch b/0001-fix-pmd-artifactId.patch
new file mode 100644
index 0000000..e713554
--- /dev/null
+++ b/0001-fix-pmd-artifactId.patch
@@ -0,0 +1,25 @@
+From 6bd5e96253420b8db59d03aad61466cbfa77a54f Mon Sep 17 00:00:00 2001
+From: Felix Kaechele <heffer(a)fedoraproject.org>
+Date: Thu, 30 Jun 2011 21:14:47 +0200
+Subject: [PATCH] fix pmd artifactId
+
+---
+ pom.xml | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/pom.xml b/pom.xml
+index b87f488..1a46b4a 100644
+--- a/pom.xml
++++ b/pom.xml
+@@ -126,7 +126,7 @@ under the License.
+ <!-- pmd -->
+ <dependency>
+ <groupId>pmd</groupId>
+- <artifactId>pmd-jdk14</artifactId>
++ <artifactId>pmd</artifactId>
+ <version>4.2.5</version>
+ </dependency>
+
+--
+1.7.5.4
+
diff --git a/maven-pmd-plugin.spec b/maven-pmd-plugin.spec
new file mode 100644
index 0000000..21589b2
--- /dev/null
+++ b/maven-pmd-plugin.spec
@@ -0,0 +1,116 @@
+Name: maven-pmd-plugin
+Version: 2.5
+Release: 4%{?dist}
+Summary: Maven PMD Plugin
+
+Group: Development/Libraries
+License: ASL 2.0
+URL: http://maven.apache.org/plugins/maven-pmd-plugin/
+Source0: http://repo2.maven.org/maven2/org/apache/maven/plugins/%{name}/%{version}...
+Source1: maven-pmd-plugin-depmap.xml
+Patch0: 0001-fix-pmd-artifactId.patch
+
+BuildArch: noarch
+
+BuildRequires: pmd
+BuildRequires: java-devel >= 1:1.6.0
+BuildRequires: maven
+BuildRequires: maven-plugin-plugin
+BuildRequires: maven-jar-plugin
+BuildRequires: maven-install-plugin
+BuildRequires: maven-resources-plugin
+BuildRequires: maven-compiler-plugin
+BuildRequires: maven-javadoc-plugin
+BuildRequires: maven-surefire-maven-plugin
+BuildRequires: maven-surefire-provider-junit4
+BuildRequires: maven-doxia-sitetools
+BuildRequires: maven-plugin-testing-harness
+BuildRequires: maven-archiver
+BuildRequires: plexus-archiver
+BuildRequires: apache-commons-lang
+BuildRequires: plexus-resources
+BuildRequires: plexus-utils
+BuildRequires: junit
+Requires: maven
+Requires: plexus-utils
+Requires: maven-plugin-testing-harness
+Requires: pmd
+Requires: junit
+Requires: jpackage-utils
+Requires: java
+Requires(post): jpackage-utils
+Requires(postun): jpackage-utils
+
+Provides: maven2-plugin-pmd = %{version}-%{release}
+Obsoletes: maven2-plugin-pmd <= 0:2.0.8
+
+%description
+A Maven plugin for the PMD toolkit, that produces a report on both code rule
+violations and detected copy and paste fragments, as well as being able to
+fail the build based on these metrics.
+
+
+%package javadoc
+Group: Documentation
+Summary: Javadoc for %{name}
+Requires: jpackage-utils
+
+%description javadoc
+API documentation for %{name}.
+
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+mvn-rpmbuild \
+ -Dmaven.local.depmap.file=%{SOURCE1} \
+ -Dmaven.test.failure.ignore=true \
+ install javadoc:javadoc
+
+%install
+# jars
+install -d -m 0755 %{buildroot}%{_javadir}
+install -m 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
+
+%add_to_maven_depmap org.apache.maven.plugins maven-pmd-plugin %{version} JPP maven-pmd-plugin
+
+# poms
+install -d -m 755 %{buildroot}%{_mavenpomdir}
+install -pm 644 pom.xml \
+ %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
+
+# javadoc
+install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}
+cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}/
+
+%post
+%update_maven_depmap
+
+%postun
+%update_maven_depmap
+
+%files
+%defattr(-,root,root,-)
+%{_javadir}/*
+%{_mavenpomdir}/*
+%{_mavendepmapfragdir}/*
+
+%files javadoc
+%defattr(-,root,root,-)
+%{_javadocdir}/%{name}
+
+%changelog
+* Thu Jun 30 2011 Felix Kaechele <heffer(a)fedoraproject.org> - 2.5-4
+- added patch to fix pmd artifactId in pom.xml
+
+* Tue Apr 26 2011 Alexander Kurtakov <akurtako(a)redhat.com> 2.5-3
+- Update to current guidelines.
+- Use upstream source.
+
+* Tue Feb 08 2011 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> - 2.5-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
+
+* Sat May 15 2010 Alexander Kurtakov <akurtako(a)redhat.com> 2.5-1
+- Initial package.
diff --git a/sources b/sources
new file mode 100644
index 0000000..e1da7e4
--- /dev/null
+++ b/sources
@@ -0,0 +1,2 @@
+ce2441d333284be879fb8efeb56bc5fa maven-pmd-plugin-2.5.tar.xz
+8af1a9a23b126a982a42105341d579e0 maven-pmd-plugin-2.5-source-release.zip
12 years, 9 months
[maven-pmd-plugin] Fix pmd artifactId.
by Alexander Kurtakov
commit 0fb9f68e74d521f33dd5be2f067ab868e326fc10
Author: Felix Kaechele <heffer(a)fedoraproject.org>
Date: Wed Jul 6 09:48:05 2011 +0300
Fix pmd artifactId.
.gitignore | 2 -
maven-pmd-plugin-depmap.xml | 15 ------
maven-pmd-plugin.spec | 111 -------------------------------------------
sources | 2 -
4 files changed, 0 insertions(+), 130 deletions(-)
12 years, 9 months