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