-
Notifications
You must be signed in to change notification settings - Fork 1
/
389-ds-console.spec
141 lines (110 loc) · 4.73 KB
/
389-ds-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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
%define major_version 1.2
%define minor_version 0
%define shortname 389-ds
%define pkgname dirsrv
Name: 389-ds-console
Version: %{major_version}.%{minor_version}
Release: 5%{?dist}
Summary: 389 Directory Server Management Console
Group: Applications/System
License: GPLv2
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: 389-admin
BuildRequires: ant >= 1.6.2
BuildRequires: ldapjdk
BuildRequires: idm-console-framework >= 1.1
BuildRequires: java-devel >= 1:1.6.0
Provides: fedora-ds-console = %{version}-%{release}
Obsoletes: fedora-ds-console < 1.2.0-3
%description
A Java based remote management console used for managing 389
Directory Server. The 389 Console is required to load and
run these jar files.
%package doc
Summary: Web docs for 389 Directory Server Management Console
Group: Documentation
Requires: %{name} = %{version}-%{release}
%description doc
Web docs for 389 Directory Server Management Console
%prep
%setup -q
%build
%{ant} \
-Dconsole.location=%{_javadir} \
-Dbuilt.dir=`pwd`/built
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_datadir}/%{pkgname}/html/java
install -m644 built/package/%{shortname}* $RPM_BUILD_ROOT%{_datadir}/%{pkgname}/html/java
install -d $RPM_BUILD_ROOT%{_datadir}/%{pkgname}/manual/en/slapd/help
install -m644 help/en/*.html $RPM_BUILD_ROOT%{_datadir}/%{pkgname}/manual/en/slapd
install -m644 help/en/tokens.map $RPM_BUILD_ROOT%{_datadir}/%{pkgname}/manual/en/slapd
install -m644 help/en/help/*.html $RPM_BUILD_ROOT%{_datadir}/%{pkgname}/manual/en/slapd/help
# create symlinks
pushd $RPM_BUILD_ROOT%{_datadir}/%{pkgname}/html/java
ln -s %{shortname}-%{version}.jar %{shortname}-%{major_version}.jar
ln -s %{shortname}-%{version}.jar %{shortname}.jar
ln -s %{shortname}-%{version}_en.jar %{shortname}-%{major_version}_en.jar
ln -s %{shortname}-%{version}_en.jar %{shortname}_en.jar
popd
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc LICENSE
%{_datadir}/%{pkgname}/html/java/%{shortname}-%{version}.jar
%{_datadir}/%{pkgname}/html/java/%{shortname}-%{major_version}.jar
%{_datadir}/%{pkgname}/html/java/%{shortname}.jar
%{_datadir}/%{pkgname}/html/java/%{shortname}-%{version}_en.jar
%{_datadir}/%{pkgname}/html/java/%{shortname}-%{major_version}_en.jar
%{_datadir}/%{pkgname}/html/java/%{shortname}_en.jar
%files doc
%defattr(-,root,root,-)
%dir %{_datadir}/%{pkgname}/manual/en/slapd
%doc %{_datadir}/%{pkgname}/manual/en/slapd/tokens.map
%doc %{_datadir}/%{pkgname}/manual/en/slapd/*.html
%doc %{_datadir}/%{pkgname}/manual/en/slapd/help/*.html
%changelog
* Tue Sep 22 2009 David Hrbáč <[email protected]> - 1.2.0-5
- initial build
* Wed Aug 12 2009 Rich Megginson <[email protected]> 1.2.0-5
- final rebuild for 1.2.0 release
* Fri Jul 24 2009 Fedora Release Engineering <[email protected]> - 1.2.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Tue Jul 14 2009 Rich Megginson <[email protected]> 1.2.0-3
- added doc subpackage
* Fri May 15 2009 Rich Megginson <[email protected]> 1.2.0-2
- rename to 389
* Tue Mar 31 2009 Rich Megginson <[email protected]> 1.2.0-1
- this is the 1.2.0 release
* Tue Mar 31 2009 Rich Megginson <[email protected]> 1.1.3-1
- this is the 1.1.3 release
* Thu Sep 4 2008 Rich Megginson <[email protected]> 1.1.2-2
- fixed incorrect source
* Thu Jul 3 2008 Rich Megginson <[email protected]> 1.1.2-1
- fix threading issues with create new ds instance dialog
* Wed Apr 16 2008 Rich Megginson <[email protected]> 1.1.1-3
- use java-devel > 1.5.0 for build requires
* Tue Jan 22 2008 Rich Megginson <[email protected]> 1.1.1-2
- resolves bug 429421
- had incorrect source - new source has been uploaded
* Thu Jan 10 2008 Rich Megginson <[email protected]> 1.1.1-1
- changes for fedora package review
- added requires for icedtea java
- added LICENSE
* Wed Dec 19 2007 Rich Megginson <[email protected]> 1.1.0-5
- This is for the Fedora DS 1.1 release
* Mon Aug 13 2007 Nathan Kinder <[email protected]> 1.1.0-4
- Added online help files to package. Use pkgname for filesystem
path naming instead of shortname.
* Wed Aug 1 2007 Nathan Kinder <[email protected]> 1.1.0-3
- Updated build requirement for new console framework package.
Updated install location and Admin Server dependency. Also did
some specfile cleanup.
* Mon Jul 30 2007 Nathan Kinder <[email protected]> 1.1.0-2
- Updated requirements.
* Mon Nov 14 2005 Nathan Kinder <[email protected]> 1.1.0-1
- Initial creation