mizdebsk pushed to pmd (master). "Cleanup spec file"

notifications at fedoraproject.org notifications at fedoraproject.org
Tue Apr 14 03:52:17 UTC 2015


>From f549af3e8cab8417085242c5d620f9b71f335ea1 Mon Sep 17 00:00:00 2001
From: Mikolaj Izdebski <mizdebsk at redhat.com>
Date: Tue, 14 Apr 2015 05:49:51 +0200
Subject: Cleanup spec file


diff --git a/pmd.spec b/pmd.spec
index 724fe97..7d8ab13 100644
--- a/pmd.spec
+++ b/pmd.spec
@@ -1,65 +1,38 @@
-# 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:        5.2.3
-Release:        1%{?dist}
 Epoch:          0
+Version:        5.2.3
+Release:        2%{?dist}
 Summary:        Scans Java source code and looks for potential problems
 License:        BSD
+URL:            http://pmd.sourceforge.net/
 BuildArch:      noarch
 
 Source0:        http://downloads.sourceforge.net/project/pmd/pmd/%{version}/pmd-src-%{version}.zip
-URL:            http://pmd.sourceforge.net/
 
 # fix api incompatibilities with newer saxon
 # not sent upstream
 Patch1:         saxon.patch
 
-BuildRequires:  javapackages-tools
-BuildRequires:  java-devel
 BuildRequires:  maven-local
-BuildRequires:  maven-deploy-plugin
-BuildRequires:  maven-install-plugin
-BuildRequires:  maven-plugin-build-helper
-BuildRequires:  maven-pmd-plugin
-BuildRequires:  maven-checkstyle-plugin
-BuildRequires:  maven-site-plugin
-BuildRequires:  ant-testutil
-BuildRequires:  apache-commons-lang3
-BuildRequires:  apache-commons-io
-BuildRequires:  beust-jcommander
-BuildRequires:  mockito
-BuildRequires:  javacc
-BuildRequires:  jaxen
-BuildRequires:  saxon >= 9.3.0.4-9
-BuildRequires:  objectweb-asm
+BuildRequires:  mvn(com.beust:jcommander)
+BuildRequires:  mvn(commons-io:commons-io)
+BuildRequires:  mvn(jaxen:jaxen)
+BuildRequires:  mvn(junit:junit)
+BuildRequires:  mvn(net.java.dev.javacc:javacc)
+BuildRequires:  mvn(net.sf.saxon:saxon)
+BuildRequires:  mvn(org.apache.ant:ant)
+BuildRequires:  mvn(org.apache.ant:ant-testutil)
+BuildRequires:  mvn(org.apache.commons:commons-lang3)
+BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)
+BuildRequires:  mvn(org.apache.maven.plugins:maven-assembly-plugin)
+BuildRequires:  mvn(org.apache.maven.plugins:maven-site-plugin)
+BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
+BuildRequires:  mvn(org.mockito:mockito-all)
+BuildRequires:  mvn(org.mozilla:rhino)
+BuildRequires:  mvn(org.ow2.asm:asm)
+BuildRequires:  mvn(org.slf4j:slf4j-api)
+BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)
+BuildRequires:  mvn(xerces:xercesImpl)
 
 %description
 PMD scans Java source code and looks for potential problems like:
@@ -76,14 +49,12 @@ TextPad, Maven, Ant, Gel, JCreator, and Emacs.
 
 %package javadoc
 Summary:        API documentation for %{name}
-Requires:       objectweb-asm-javadoc
 
 %description javadoc
 API documentation for %{name}.
 
 %prep
 %setup -q -n %{name}-src-%{version}
-
 %patch1 -p1
 
 # remove all binary libs
@@ -106,12 +77,15 @@ sed -i 's/net.sourceforge.saxon/net.sf.saxon/' `find -name pom.xml`
 %mvn_install
 
 %files -f .mfiles
-%doc LICENSE
+%license LICENSE
 
 %files javadoc -f .mfiles-javadoc
-%doc LICENSE
+%license LICENSE
 
 %changelog
+* Tue Apr 14 2015 Mikolaj Izdebski <mizdebsk at redhat.com> - 0:5.2.3-2
+- Cleanup spec file
+
 * Mon Jan 19 2015 Michael Simacek <msimacek at redhat.com> - 0:5.2.3-1
 - Update to upstream version 5.2.3
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/pmd.git/commit/?h=master&id=f549af3e8cab8417085242c5d620f9b71f335ea1


More information about the scm-commits mailing list