]>
Commit | Line | Data |
---|---|---|
ef909cb9 | 1 | # |
2 | %include /usr/lib/rpm/macros.java | |
3 | Summary: LDAP browser | |
4 | Summary(pl.UTF-8): Przeglądarka LDAP | |
5 | Name: JXplorer | |
6 | Version: 3.2 | |
9b3af0cc | 7 | Release: 1 |
ef909cb9 | 8 | License: Computer Associates Open Source Software License |
9 | Group: Applications/Databases/Interfaces | |
10 | Source0: http://dl.sourceforge.net/jxplorer/JXv%{version}deploy.tar.bz2 | |
11 | # Source0-md5: 5cd9766391995736164b17a30354d72e | |
12 | Source1: http://dl.sourceforge.net/jxplorer/JXv%{version}src.tar.bz2 | |
13 | # Source1-md5: 7773a4de17a935db2aaaf3984772fcb1 | |
14 | Source2: %{name}.sh | |
15 | Source3: %{name}.jxconfig.txt | |
82cdc136 | 16 | Source4: %{name}.desktop |
ef909cb9 | 17 | Patch0: %{name}-NoInstallAnywhere.patch |
18 | URL: http://www.jxplorer.org/ | |
19 | BuildRequires: ant | |
aa847f1c | 20 | BuildRequires: icoutils |
be23c9e1 | 21 | BuildRequires: jar |
ef909cb9 | 22 | BuildRequires: jpackage-utils |
23 | BuildRequires: rpm-javaprov | |
24 | BuildRequires: rpmbuild(macros) >= 1.300 | |
51f2c2c3 | 25 | BuildRequires: sed >= 4.0 |
ef909cb9 | 26 | Requires: javahelp |
27 | Requires: jpackage-utils | |
aa847f1c | 28 | Requires: jre-X11 |
ef909cb9 | 29 | Requires: junit |
30 | BuildArch: noarch | |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
32 | ||
33 | %description | |
34 | JXplorer is a standards compliant general purpose ldap browser that | |
35 | can be used to read and search any ldap directory, or any X.500 | |
36 | directory with an ldap interface. It is available for immediate free | |
37 | download under a standard OSI-style open source licence. | |
38 | ||
39 | %description -l pl.UTF-8 | |
40 | JXplorer jest zgodną ze standardami przeglądarką LDAP ogólnego | |
41 | przeznaczenia. Programu tego można używać do przeglądania i | |
42 | modyfikowania dowolnego katalogu LDAP, lub dowolnego katalogu zgodnego | |
43 | z X.500 posiadającego interfejs LDAPowy. | |
44 | ||
45 | %prep | |
46 | %setup -q -b 1 -n jxplorer | |
090ad88b | 47 | |
48 | %{__sed} -i -e 's,\r$,,' build.xml | |
49 | ||
82cdc136 | 50 | icotool -x -o jxplorer.png jxplorer.ico |
51 | ||
ef909cb9 | 52 | %patch0 -p0 |
090ad88b | 53 | |
ef909cb9 | 54 | install %{SOURCE2} jxplorer.sh |
55 | install %{SOURCE3} jxconfig.txt | |
56 | %{__sed} -i -e 's~==DATADIR==~%{_datadir}/%{name}~g' jxconfig.txt | |
57 | ||
58 | echo 'JX_JAVADIR=%{_javadir}/%{name}' > jxplorer.sysconfig | |
59 | echo 'JX_DATADIR=%{_datadir}/%{name}' >> jxplorer.sysconfig | |
60 | ||
61 | %build | |
62 | export JAVA_HOME="%{java_home}" | |
63 | ||
64 | export LC_ALL=en_US # source code not US-ASCII | |
65 | ||
66 | %ant clean | |
67 | %ant | |
68 | %ant jar | |
69 | ||
70 | %install | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | install -d $RPM_BUILD_ROOT/etc/sysconfig | |
73 | install jxplorer.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/jxplorer | |
74 | install -d $RPM_BUILD_ROOT%{_bindir} | |
75 | install jxplorer.sh $RPM_BUILD_ROOT%{_bindir}/jxplorer | |
76 | ||
77 | install -d $RPM_BUILD_ROOT%{_javadir}/%{name} | |
78 | install jxplorer.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/jxplorer-%{version}.jar | |
79 | install jars/help.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/help-%{version}.jar | |
80 | ln -s jxplorer-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/jxplorer.jar | |
81 | ln -s help-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/help.jar | |
82 | ||
83 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/{htmldocs,icons,images,language,security,conftemplate} | |
84 | install htmldocs/* $RPM_BUILD_ROOT%{_datadir}/%{name}/htmldocs | |
85 | install icons/* $RPM_BUILD_ROOT%{_datadir}/%{name}/icons | |
86 | install images/* $RPM_BUILD_ROOT%{_datadir}/%{name}/images | |
87 | install language/* $RPM_BUILD_ROOT%{_datadir}/%{name}/language | |
88 | install security/* $RPM_BUILD_ROOT%{_datadir}/%{name}/security | |
89 | install connections.txt $RPM_BUILD_ROOT%{_datadir}/%{name}/conftemplate | |
90 | ||
91 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/templates/{country,images,inetOrgPerson,locality,newPilotPerson,organization,organizationalPerson,organizationalUnit,person,schema} | |
92 | install templates/country/* $RPM_BUILD_ROOT%{_datadir}/%{name}/templates/country | |
93 | install templates/images/* $RPM_BUILD_ROOT%{_datadir}/%{name}/templates/images | |
94 | install templates/inetOrgPerson/* $RPM_BUILD_ROOT%{_datadir}/%{name}/templates/inetOrgPerson | |
95 | install templates/locality/* $RPM_BUILD_ROOT%{_datadir}/%{name}/templates/locality | |
96 | install templates/newPilotPerson/* $RPM_BUILD_ROOT%{_datadir}/%{name}/templates/newPilotPerson | |
97 | install templates/organization/* $RPM_BUILD_ROOT%{_datadir}/%{name}/templates/organization | |
98 | install templates/organizationalPerson/* $RPM_BUILD_ROOT%{_datadir}/%{name}/templates/organizationalPerson | |
99 | install templates/organizationalUnit/* $RPM_BUILD_ROOT%{_datadir}/%{name}/templates/organizationalUnit | |
100 | install templates/person/* $RPM_BUILD_ROOT%{_datadir}/%{name}/templates/person | |
101 | install templates/schema/* $RPM_BUILD_ROOT%{_datadir}/%{name}/templates/schema | |
102 | install templates/*.* $RPM_BUILD_ROOT%{_datadir}/%{name}/templates | |
103 | ||
104 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/%{name} | |
105 | install log4j.xml $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/log4j.xml | |
106 | install jxconfig.txt $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/jxconfig.txt | |
107 | install connections.txt $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/connections.txt | |
108 | ||
82cdc136 | 109 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} |
110 | install %{SOURCE4} $RPM_BUILD_ROOT%{_desktopdir}/jxplorer.desktop | |
111 | install jxplorer.png $RPM_BUILD_ROOT%{_pixmapsdir}/jxplorer.png | |
112 | ||
ef909cb9 | 113 | %clean |
114 | rm -rf $RPM_BUILD_ROOT | |
115 | ||
116 | %files | |
117 | %defattr(644,root,root,755) | |
118 | %attr(755,root,root) %{_bindir}/jxplorer | |
119 | %{_javadir}/%{name} | |
120 | %{_datadir}/%{name} | |
82cdc136 | 121 | %{_pixmapsdir}/jxplorer.png |
122 | %{_desktopdir}/jxplorer.desktop | |
ef909cb9 | 123 | %dir %{_sysconfdir}/%{name} |
124 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/connections.txt | |
125 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/log4j.xml | |
126 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/jxconfig.txt | |
127 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/jxplorer | |
128 | ||
129 | %doc example.ldif | |
130 | %doc licence.txt | |
131 | %doc RELEASE.TXT |