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