3 %bcond_without tests # do not perform "make test"
6 %define pnam Authen-ExternalAuth
7 Summary: RT::Authen::ExternalAuth - RT Authentication using External Sources
8 Summary(pl.UTF-8): RT::Authen::ExternalAuth - uwierzytelnianie w RT przy użyciu zewnętrznych źródeł
9 Name: perl-RT-Authen-ExternalAuth
12 License: GPL version 2
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/RT/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5: f1d17f4c83d7ec2615db2e42f7b82d19
16 URL: http://search.cpan.org/dist/RT-Authen-ExternalAuth/
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: perl-ldap
19 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRequires: rt >= 3.8.0
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 A complete package for adding external authentication mechanisms to
26 RT. It currently supports LDAP via Net::LDAP and External Database
27 authentication for any database with an installed DBI driver.
29 It also allows for authenticating cookie information against an
30 external database through the use of the RT-Authen-CookieAuth
33 %description -l pl.UTF-8
34 Kompletny pakiet pozwalający na dodawanie zewnętrznych mechanizmów
35 uwierzytelniania do RT. Aktualnie obsługuje LDAP poprzez Net::LDAP
36 oraz zewnętrzne bazy danych dla każdej bazy mającej zainstalowany
39 Pozwala także na uwierzytelnianie informacji z ciasteczek (cookie)
40 względem zewnętrznej bazy danych poprzez rozszerzenie
44 %setup -q -n %{pdir}-%{pnam}-%{version}
47 %{__perl} Makefile.PL \
51 %{?with_tests:%{__make} test}
54 rm -rf $RPM_BUILD_ROOT
56 %{__make} pure_install \
57 DESTDIR=$RPM_BUILD_ROOT
59 cp etc/RT_SiteConfig.pm RT_SiteConfig.pm.example
62 rm -rf $RPM_BUILD_ROOT
65 %defattr(644,root,root,755)
66 %doc ChangeLog README RT_SiteConfig.pm.example
67 %dir %{perl_vendorlib}/RT/Authen
68 %{perl_vendorlib}/RT/Authen/*.pm
69 %dir %{perl_vendorlib}/RT/Authen/ExternalAuth
70 %{perl_vendorlib}/RT/Authen/ExternalAuth/*.pm
71 %dir %{perl_vendorlib}/RT/Authen/ExternalAuth/DBI
72 %{perl_vendorlib}/RT/Authen/ExternalAuth/DBI/*.pm