blob: 20edbcf2820d85cea5af3ed3db755c19acd7f143 (
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
67
68
69
70
71
72
73
74
75
76
77
|
Name: osutil
Version: 9.0.0
Release: 1%{?dist}
Summary: Operating System Utilities JNI Package
URL: http://pki.fedoraproject.org/
License: GPLv2
Group: System Environment/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: ant
BuildRequires: java-devel >= 1:1.6.0
BuildRequires: jpackage-utils
BuildRequires: nspr-devel >= 4.6.99
BuildRequires: nss-devel >= 3.12.3.99
BuildRequires: pkgconfig
Requires: java >= 1:1.6.0
Requires: jpackage-utils
Requires: nss >= 3.12.3.99
Source0: http://pki.fedoraproject.org/pki/sources/%{name}/%{name}-%{version}.tar.gz
%if 0%{?rhel}
#rhel has no java on ppc
ExcludeArch: ppc
%endif
%description
The Operating System Utilities Java Native Interface (JNI) package
supplies various native operating system operations to Java programs.
%prep
%setup -q -n %{name}-%{version}
%build
ant \
-Dproduct.ui.flavor.prefix="" \
-Dproduct.prefix="" \
-Dproduct="%{name}" \
-Dversion="%{version}"
%configure \
%ifarch ppc64 s390x sparc64 x86_64
--enable-64bit \
%endif
--libdir=%{_libdir}
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
## rearrange files to be in the desired native packaging layout
mkdir -p %{buildroot}%{_libdir}/%{name}/
mv %{buildroot}/opt/java/%{name}.jar %{buildroot}%{_libdir}/%{name}/%{name}-%{version}.jar
mv %{buildroot}%{_libdir}/lib%{name}.so %{buildroot}%{_libdir}/%{name}/lib%{name}.so
mkdir -p %{buildroot}%{_jnidir}/
cd %{buildroot}%{_jnidir} ; ln -s %{_libdir}/%{name}/%{name}-%{version}.jar %{name}.jar
## remove unwanted files
rm -rf %{buildroot}/opt
rm -rf %{buildroot}%{_libdir}/lib%{name}.la
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc LICENSE
%{_jnidir}/*
%{_libdir}/%{name}/
%changelog
* Fri Nov 19 2010 Matthew Harmsen <mharmsen@redhat.com> 9.0.0-1
- Updated Dogtag 1.3.x --> Dogtag 2.0.0 --> Dogtag 9.0.0.
|