From f4a2c3e34b4f13472bb28c6eca518affbb0b2770 Mon Sep 17 00:00:00 2001 From: Pavel Kajaba Date: Tue, 12 Jan 2016 11:36:34 +0100 Subject: Edit build requirements for tests --- java-comment-preprocessor.spec | 66 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 65 insertions(+), 1 deletion(-) mode change 120000 => 100644 java-comment-preprocessor.spec (limited to 'java-comment-preprocessor.spec') diff --git a/java-comment-preprocessor.spec b/java-comment-preprocessor.spec deleted file mode 120000 index 3b65f88..0000000 --- a/java-comment-preprocessor.spec +++ /dev/null @@ -1 +0,0 @@ -../../fedora/java-comment-preprocessor/java-comment-preprocessor.spec \ No newline at end of file diff --git a/java-comment-preprocessor.spec b/java-comment-preprocessor.spec new file mode 100644 index 0000000..5e958b8 --- /dev/null +++ b/java-comment-preprocessor.spec @@ -0,0 +1,65 @@ +%global section devel + +Summary: The Most Powerful Multi-Pass Java Preprocessor +Name: java-comment-preprocessor +Version: 6.0.1 +Release: 1%{?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 +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 + +%description +It is the most powerful multi-pass preprocessor for Java +but also it can be used everywhere for text processing +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}/* . + +%pom_remove_plugin :animal-sniffer-maven-plugin pom.xml + +# remove any binary libs +find -name "*.jar" -or -name "*.class" | xargs rm -f + +%build +%mvn_build + +%install +%mvn_install + +%check + +%files -f .mfiles +%doc texts/LICENSE-2.0.txt texts/readme.txt + +%files javadoc +%doc texts/LICENSE-2.0.txt +%doc %{_javadocdir}/%{name} + +%changelog +* Tue Jan 5 2016 Pavel Kajaba +- Initial creation of java-comment-preprocessor package -- cgit