summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Kajaba <pkajaba@redhat.com>2016-04-15 19:28:55 +0200
committerPavel Kajaba <pkajaba@redhat.com>2016-04-15 19:28:55 +0200
commit30394edc5fbcead1da4b79cd84ae74e50d0b1204 (patch)
tree28c59b69fbf4454cd87dd8dd083392c162484268
parent1ad7813cba3c355822e0f43cd1019f7a327463ba (diff)
downloadjava-comment-preprocessor-30394edc5fbcead1da4b79cd84ae74e50d0b1204.tar.gz
java-comment-preprocessor-30394edc5fbcead1da4b79cd84ae74e50d0b1204.tar.xz
java-comment-preprocessor-30394edc5fbcead1da4b79cd84ae74e50d0b1204.zip
removed uselles code and deps
-rw-r--r--java-comment-preprocessor.spec23
1 files 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 <pkajaba@redhat.com> - 6.0.1-2
+- Deleted unused and dangerous dependencies
+
* Tue Jan 5 2016 Pavel Kajaba <pkajaba@redhat.com>
- Initial creation of java-comment-preprocessor package