]>
Commit | Line | Data |
---|---|---|
bc32964e | 1 | # |
a94d1946 | 2 | %define _reldate 20090407 |
74583792 JB |
3 | Summary: Apache Directory Studio - LDAP tooling platform |
4 | Summary(pl.UTF-8): Apache Directory Studio - platforma narzędzi LDAP | |
8b303099 | 5 | Name: ApacheDirectoryStudio |
bc32964e | 6 | Version: 1.4.0 |
a94d1946 | 7 | Release: 0.%{_reldate}.1 |
8b303099 MWP |
8 | License: Apache |
9 | Group: Applications | |
50a8f243 | 10 | Source0: http://www.apache.org/dist/directory/studio/stable/%{version}.v%{_reldate}/%{name}-linux-x86-%{version}.v%{_reldate}.tar.gz |
a94d1946 | 11 | # Source0-md5: 3bc4b96993eab40f8429893087f0430e |
50a8f243 | 12 | Source1: http://www.apache.org/dist/directory/studio/stable/%{version}.v%{_reldate}/%{name}-linux-x86_64-%{version}.v%{_reldate}.tar.gz |
a94d1946 | 13 | # Source1-md5: 38c037ebaa0999efe1e3fcce61e3ed50 |
50a8f243 SP |
14 | Source2: http://www.apache.org/dist/directory/studio/stable/%{version}.v%{_reldate}/%{name}-linux-ppc-%{version}.v%{_reldate}.tar.gz |
15 | # Source2-md5: c16a9f50e270c3fd053336eb72c6f4b8 | |
16 | Source3: apachedirectorystudio.desktop | |
8b303099 | 17 | URL: http://directory.apache.org/ |
8b303099 | 18 | BuildRequires: rpmbuild(macros) >= 1.300 |
50a8f243 | 19 | ExclusiveArch: %{ix86} %{x8664} ppc |
8b303099 MWP |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
8b303099 MWP |
22 | %description |
23 | Apache Directory Studio (formerly known as LDAP Studio) is a complete | |
24 | LDAP tooling platform intended to be used with any LDAP server however | |
25 | it is particularly designed for use with the Apache Directory Server. | |
26 | ||
74583792 JB |
27 | %description -l pl.UTF-8 |
28 | Apache Directory Studio (wcześniej znane jako LDAP Studio) to | |
29 | kompletna platforma narzędzi LDAP przeznaczona do użytku z dowolnym | |
30 | serwerem LDAP, jednak jest najlepiej dopasowana do Apache Directory | |
31 | Servera. | |
32 | ||
8b303099 | 33 | %prep |
a94d1946 | 34 | %ifarch %{ix86} |
50a8f243 SP |
35 | %setup -q -b1 -b2 -n %{name}-linux-x86-%{version}.v%{_reldate} |
36 | %endif | |
37 | %ifarch %{x8664} | |
38 | %setup -q -b1 -b2 -n %{name}-linux-x86_64-%{version}.v%{_reldate} | |
39 | %endif | |
40 | %ifarch ppc | |
41 | %setup -q -b1 -b2 -n %{name}-linux-ppc-%{version}.v%{_reldate} | |
a94d1946 | 42 | %endif |
8b303099 MWP |
43 | |
44 | %install | |
45 | rm -rf $RPM_BUILD_ROOT | |
50a8f243 | 46 | install -d $RPM_BUILD_ROOT{%{_datadir}/%{name},%{_pixmapsdir},%{_desktopdir},%{_bindir}} |
a94d1946 | 47 | cp -a {configuration,features,plugins} $RPM_BUILD_ROOT%{_datadir}/%{name} |
8b303099 | 48 | install ApacheDirectoryStudio.xpm $RPM_BUILD_ROOT%{_pixmapsdir} |
a94d1946 | 49 | install ApacheDirectoryStudio $RPM_BUILD_ROOT%{_datadir}/%{name} |
50a8f243 | 50 | install %{SOURCE3} $RPM_BUILD_ROOT%{_desktopdir}/ |
8b303099 MWP |
51 | ln -s %{_datadir}/%{name}/%{name} $RPM_BUILD_ROOT%{_bindir}/apachedirectorystudio |
52 | ||
53 | %clean | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %files | |
57 | %defattr(644,root,root,755) | |
a94d1946 | 58 | %doc NOTICE.txt Release\ Notes.txt |
8b303099 MWP |
59 | %attr(755,root,root) %{_bindir}/* |
60 | %dir %{_datadir}/%{name} | |
61 | %attr(755,root,root) %{_datadir}/%{name}/ApacheDirectoryStudio | |
62 | %{_datadir}/%{name}/configuration | |
63 | %{_datadir}/%{name}/features | |
64 | %{_datadir}/%{name}/plugins | |
65 | %{_pixmapsdir}/ApacheDirectoryStudio.xpm | |
50a8f243 | 66 | %{_desktopdir}/apachedirectorystudio.desktop |