From 30394edc5fbcead1da4b79cd84ae74e50d0b1204 Mon Sep 17 00:00:00 2001 From: Pavel Kajaba Date: Fri, 15 Apr 2016 19:28:55 +0200 Subject: removed uselles code and deps --- java-comment-preprocessor.spec | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/java-comment-preprocessor.spec b/java-comment-preprocessor.spec index 5cf8fd5..169cdbc 100644 --- a/java-comment-preprocessor.spec +++ b/java-comment-preprocessor.spec @@ -3,25 +3,22 @@ Summary: The Most Powerful Multi-Pass Java Preprocessor Name: java-comment-preprocessor Version: 6.0.1 -Release: 1%{?dist} +Release: 2%{?dist} License: ASL 2.0 URL: https://github.com/raydac/java-comment-preprocessor Source0: https://github.com/raydac/java-comment-preprocessor/archive/%{version}.tar.gz -BuildArch: noarch +BuildArch: noarch BuildRequires: jpackage-utils -BuildRequires: java-devel >= 1:1.8 BuildRequires: maven-local BuildRequires: exec-maven-plugin -BuildRequires: maven-shade-plugin # Test requirements BuildRequires: maven-shared-jar BuildRequires: ant-testutil BuildRequires: maven-verifier BuildRequires: mockito -Requires: jpackage-utils -Requires: java-headless >= 1:1.8 +Requires: jpackage-utils %description It is the most powerful multi-pass preprocessor for Java @@ -30,17 +27,17 @@ if the destination technology supports Java like comment definitions. %package javadoc Summary: API docs for %{name} -Group: Documentation %description javadoc This package contains the API Documentation for %{name}. %prep -%setup -c -q -mv -f %{name}-%{version}/* . +%autosetup +# remove unpackaged and dangerous deps %pom_remove_plugin :animal-sniffer-maven-plugin pom.xml +%pom_remove_plugin :maven-shade-plugin pom.xml # remove any binary libs find -name "*.jar" -or -name "*.class" | xargs rm -f @@ -51,16 +48,16 @@ find -name "*.jar" -or -name "*.class" | xargs rm -f %install %mvn_install -%check - %files -f .mfiles %license texts/LICENSE-2.0.txt %doc texts/readme.txt -%files javadoc +%files javadoc -f .mfiles-javadoc %license texts/LICENSE-2.0.txt -%doc %{_javadocdir}/%{name} %changelog +* Fri Apr 15 2016 Pavel Kajaba - 6.0.1-2 +- Deleted unused and dangerous dependencies + * Tue Jan 5 2016 Pavel Kajaba - Initial creation of java-comment-preprocessor package -- cgit