blob: 5cf8fd5aec497c4db7fe24cac5e5e00f7618187c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
%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
%license texts/LICENSE-2.0.txt
%doc texts/readme.txt
%files javadoc
%license texts/LICENSE-2.0.txt
%doc %{_javadocdir}/%{name}
%changelog
* Tue Jan 5 2016 Pavel Kajaba <pkajaba@redhat.com>
- Initial creation of java-comment-preprocessor package
|