1 | %define realname LATMOS-Accounts |
---|
2 | %define version @VERSION@ |
---|
3 | %define release %mkrel 1 |
---|
4 | |
---|
5 | Name: latmos-accounts |
---|
6 | Version: %{version} |
---|
7 | Release: %{release} |
---|
8 | License: GPL or Artistic |
---|
9 | Group: Development/Perl |
---|
10 | Summary: Latmos Account system |
---|
11 | Source: %{realname}-%{version}.tar.gz |
---|
12 | Url: http://search.cpan.org/dist/%{realname} |
---|
13 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
---|
14 | BuildArch: noarch |
---|
15 | |
---|
16 | BuildRequires: perl(Net::LDAP) |
---|
17 | BuildRequires: perl(DBD::Pg) |
---|
18 | BuildRequires: perl(Unicode::Map8) |
---|
19 | BuildRequires: perl(Crypt::RSA) |
---|
20 | BuildRequires: perl(MIME::Base64) |
---|
21 | BuildRequires: perl(Term::ReadKey) |
---|
22 | BuildRequires: perl(Config::IniFiles) |
---|
23 | BuildRequires: perl(Mail::Sendmail) |
---|
24 | BuildRequires: perl(Net::DNS) |
---|
25 | BuildRequires: perl(Template) |
---|
26 | |
---|
27 | Requires: perl(Mail::Sendmail) |
---|
28 | Requires: perl(Net::DNS) |
---|
29 | Requires: perl(Template) |
---|
30 | Requires: perl(DBD::Pg) |
---|
31 | Requires: perl(IO::Socket::SSL) |
---|
32 | |
---|
33 | %description |
---|
34 | The core applications tools of the LATMOS-Accounts system. A batch of |
---|
35 | applucations to create user accounts and exchange information through several |
---|
36 | others accounts management system such ldap, nis, etc... |
---|
37 | |
---|
38 | %prep |
---|
39 | %setup -q -n %{realname}-%{version} |
---|
40 | |
---|
41 | %build |
---|
42 | %{__perl} Makefile.PL INSTALLDIRS=vendor |
---|
43 | %make |
---|
44 | |
---|
45 | %check |
---|
46 | make test |
---|
47 | |
---|
48 | %install |
---|
49 | rm -rf %buildroot |
---|
50 | %makeinstall_std |
---|
51 | |
---|
52 | mkdir %buildroot%_sysconfdir/init.d |
---|
53 | install -m 755 etc/init.d/la-sync-manager %buildroot%_sysconfdir/init.d/la-sync-manager |
---|
54 | |
---|
55 | mkdir -p %buildroot/%_sysconfdir/sysconfig |
---|
56 | install -m 600 etc/sysconfig/latmos-accounts %buildroot/%_sysconfdir/sysconfig/latmos-accounts |
---|
57 | |
---|
58 | mkdir -p %buildroot/%_sysconfdir/cron.d |
---|
59 | install -m 644 etc/cron.d/latmos-accounts %buildroot/%_sysconfdir/cron.d/latmos-accounts |
---|
60 | |
---|
61 | %clean |
---|
62 | rm -rf %buildroot |
---|
63 | |
---|
64 | %preun |
---|
65 | %_preun_service la-sync-manager |
---|
66 | |
---|
67 | %post |
---|
68 | %_post_service la-sync-manager |
---|
69 | if [ "$1" -ge "1" ] ; then |
---|
70 | /sbin/service la-sync-manager restart |
---|
71 | fi |
---|
72 | |
---|
73 | %files |
---|
74 | %defattr(-,root,root) |
---|
75 | %doc Changes README |
---|
76 | %_sysconfdir/init.d/la-sync-manager |
---|
77 | %config(noreplace) %_sysconfdir/sysconfig/latmos-accounts |
---|
78 | %config %_sysconfdir/cron.d/latmos-accounts |
---|
79 | %attr(0600,root,root) %config(noreplace) %_sysconfdir/latmos-account.ini |
---|
80 | %_bindir/* |
---|
81 | %{_mandir}/man3/* |
---|
82 | %{_mandir}/man1/* |
---|
83 | %perl_vendorlib/* |
---|
84 | %_datadir/latmos-accounts |
---|
85 | |
---|