-
Notifications
You must be signed in to change notification settings - Fork 0
/
java-augeas.spec.in
79 lines (62 loc) · 1.99 KB
/
java-augeas.spec.in
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
67
68
69
70
71
72
73
74
75
76
77
78
Summary: Java bindings for the augeas library
Name: java-augeas
Version: @version@
Release: 1%{?dist}
License: LGPLv2+
BuildArch: noarch
Group: Development/Libraries
Source: http://augeas.net/download/java/%{name}-%{version}.tar.gz
URL: http://augeas.net/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Requires: jna
Requires: augeas >= @augeas.required@
Requires: java >= @java.required@
Requires: jpackage-utils
BuildRequires: ant
BuildRequires: jna
BuildRequires: java-devel >= @java.required@
BuildRequires: jpackage-utils
BuildRequires: junit
BuildRequires: ant-junit
#
# the jpackage-utils should provide a %{java_home} macro
# to select a different Java JVM from the default one use the following
# rpmbuild --define 'java_home /usr/lib/jvm/your_jvm_of_choice'
#
%description
java-augeas is a java bindings onto the augeas configuration API.
It requires augeas >= @augeas.required@
%package javadoc
Summary: Java documentation for %{name}
Group: Development/Documentation
Requires: %{name} = %{version}-%{release}
Requires: jpackage-utils
%description javadoc
API documentation for %{name}.
%prep
%setup -q
%build
ant build docs
%install
rm -fr %{buildroot}
install -d -m0755 %{buildroot}%{_javadir}
install -d -m0755 %{buildroot}%{_javadocdir}/%{name}-%{version}
cp -p target/augeas-%{version}.jar %{buildroot}%{_javadir}
%{__ln_s} %{_javadir}/augeas-%{version}.jar %{buildroot}%{_javadir}/augeas.jar
cp -r -p target/javadoc %{buildroot}%{_javadocdir}/%{name}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc AUTHORS COPYING NEWS README INSTALL
%{_javadir}/*.jar
%files javadoc
%defattr(-,root,root)
%{_javadocdir}/%{name}
%changelog
* Tue Jul 2 2010 Bryan Kearney <[email protected]> - 0.0.2-1
- Add support for the aug_setm method
* Tue Aug 27 2009 Bryan Kearney <[email protected]> - 0.0.1-2
- Spec review comments from [email protected].
* Tue Aug 4 2009 Bryan Kearney <[email protected]> - 0.0.1-1
- Initial Packaging