-
Notifications
You must be signed in to change notification settings - Fork 1
/
389-console.spec
102 lines (79 loc) · 2.89 KB
/
389-console.spec
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
%define major_version 1.1
%define minor_version 3
Name: 389-console
Version: %{major_version}.%{minor_version}
Release: 4%{?dist}
Summary: 389 Management Console
Group: Applications/System
License: LGPLv2
URL: http://port389.org
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
Source: http://port389.org/sources/%{name}-%{version}.tar.bz2
Requires: idm-console-framework >= 1.1
Requires: java >= 1:1.6.0
BuildRequires: ant >= 1.6.2
BuildRequires: ldapjdk
BuildRequires: jss >= 4.2
BuildRequires: idm-console-framework >= 1.1
BuildRequires: java-devel >= 1:1.6.0
Provides: fedora-idm-console = %{version}-%{release}
Obsoletes: fedora-idm-console < 1.1.3-2
%description
A Java based remote management console used for managing 389
Administration Server and 389 Directory Server.
%prep
%setup -q
%build
%{ant} \
-Dbuilt.dir=`pwd`/built
# add -Dlib.dir and -Dneed_libdir on those platforms where
# jss is installed in a non-standard location
# -Dneed_libdir=yes
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_javadir}
install -m644 built/*.jar $RPM_BUILD_ROOT%{_javadir}
install -d $RPM_BUILD_ROOT%{_bindir}
install -m755 built/%{name} $RPM_BUILD_ROOT/%{_bindir}
# create symlinks
pushd $RPM_BUILD_ROOT%{_javadir}
ln -s %{name}-%{version}_en.jar %{name}-%{major_version}_en.jar
ln -s %{name}-%{version}_en.jar %{name}_en.jar
popd
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc LICENSE
%{_javadir}/%{name}-%{version}_en.jar
%{_javadir}/%{name}-%{major_version}_en.jar
%{_javadir}/%{name}_en.jar
%{_bindir}/%{name}
%changelog
* Tue Sep 22 2009 David Hrbáč <[email protected]> - 1.1.3-4
- initial build
* Wed Aug 12 2009 Rich Megginson <[email protected]> - 1.1.3-4
- final rebuild for 1.1.3 release
* Fri Jul 24 2009 Fedora Release Engineering <[email protected]> - 1.1.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Wed May 13 2009 Rich Megginson <[email protected]> 1.1.3-2
- rename to 389
* Tue Mar 31 2009 Rich Megginson <[email protected]> 1.1.3-1
- the 1.1.3 release
* Tue Apr 15 2008 Rich Megginson <[email protected]> 1.1.1-2
- use java > 1.5.0 for requirements
* Thu Jan 10 2008 Rich Megginson <[email protected]> 1.1.1-1
- this is the fedora package review candidate
- added LICENSE file
- changed permissions on jar files and shell script
* Wed Dec 19 2007 Rich Megginson <[email protected]> 1.1.0-5
- for the Fedora DS 1.1 release
* Thu Oct 25 2007 Nathan Kinder <[email protected]> 1.1.0-4
- Removed noarch to ensure we find the 64-bit library.
* Wed Aug 1 2007 Nathan Kinder <[email protected]> 1.1.0-3
- Separated theme package.
* Fri Jul 27 2007 Nathan Kinder <[email protected]> 1.1.0-2
- Modified package name to be less generic.
* Mon Jul 26 2007 Nathan Kinder <[email protected]> 1.1.0-1
- Initial creation