[432] | 1 | %define realname LATMOS-Accounts |
---|
| 2 | %define version @VERSION@ |
---|
[861] | 3 | %define release %mkrel %{?svnrelease:0.%{svnrelease}}%{?!svnrelease:1} |
---|
[432] | 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) |
---|
[1376] | 18 | BuildRequires: perl(Unicode::Map8) |
---|
| 19 | BuildRequires: perl(Crypt::RSA) |
---|
[432] | 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) |
---|
[861] | 26 | BuildRequires: perl(Net::IP) |
---|
| 27 | BuildRequires: perl(Text::CSV_XS) |
---|
| 28 | BuildRequires: perl(Heimdal::Kadm5) |
---|
[1055] | 29 | BuildRequires: perl(Crypt::Cracklib) |
---|
| 30 | BuildRequires: perl(Net::IPv4Addr) |
---|
| 31 | BuildRequires: perl(Net::IPv6Addr) |
---|
[1142] | 32 | BuildRequires: perl(Math::Base85) |
---|
[1368] | 33 | BuildRequires: perl(DateTime) |
---|
[1376] | 34 | BuildRequires: perl(SOAP::Lite) |
---|
| 35 | BuildRequires: perl(HTTP::Cookies) |
---|
| 36 | BuildRequires: perl(XML::XPath) |
---|
[1546] | 37 | BuildRequires: perl(Locale::gettext) |
---|
[1550] | 38 | BuildRequires: perl-Locale-Maketext-Lexicon |
---|
[1604] | 39 | BuildRequires: perl(Crypt::SmbHash) |
---|
[1623] | 40 | BuildRequires: perl(Date::Calc) |
---|
[1653] | 41 | BuildRequires: perl(Spreadsheet::WriteExcel) |
---|
[432] | 42 | |
---|
| 43 | Requires: perl(Mail::Sendmail) |
---|
| 44 | Requires: perl(Net::DNS) |
---|
| 45 | Requires: perl(Template) |
---|
[558] | 46 | Requires: perl(DBD::Pg) |
---|
| 47 | Requires: perl(IO::Socket::SSL) |
---|
[861] | 48 | Requires: perl-Term-ReadLine-Gnu |
---|
[1142] | 49 | Requires: perl(Math::Base85) |
---|
[432] | 50 | |
---|
| 51 | %description |
---|
| 52 | The core applications tools of the LATMOS-Accounts system. A batch of |
---|
| 53 | applucations to create user accounts and exchange information through several |
---|
| 54 | others accounts management system such ldap, nis, etc... |
---|
| 55 | |
---|
| 56 | %prep |
---|
| 57 | %setup -q -n %{realname}-%{version} |
---|
| 58 | |
---|
| 59 | %build |
---|
| 60 | %{__perl} Makefile.PL INSTALLDIRS=vendor |
---|
| 61 | %make |
---|
| 62 | |
---|
| 63 | %check |
---|
| 64 | make test |
---|
| 65 | |
---|
| 66 | %install |
---|
| 67 | rm -rf %buildroot |
---|
| 68 | %makeinstall_std |
---|
| 69 | |
---|
[578] | 70 | mkdir %buildroot%_sysconfdir/init.d |
---|
[603] | 71 | install -m 755 etc/init.d/la-sync-manager %buildroot%_sysconfdir/init.d/la-sync-manager |
---|
[578] | 72 | |
---|
[603] | 73 | mkdir -p %buildroot/%_sysconfdir/sysconfig |
---|
| 74 | install -m 600 etc/sysconfig/latmos-accounts %buildroot/%_sysconfdir/sysconfig/latmos-accounts |
---|
| 75 | |
---|
[707] | 76 | mkdir -p %buildroot/%_sysconfdir/cron.d |
---|
| 77 | install -m 644 etc/cron.d/latmos-accounts %buildroot/%_sysconfdir/cron.d/latmos-accounts |
---|
| 78 | |
---|
[432] | 79 | %clean |
---|
| 80 | rm -rf %buildroot |
---|
| 81 | |
---|
[736] | 82 | %preun |
---|
| 83 | %_preun_service la-sync-manager |
---|
| 84 | |
---|
| 85 | %post |
---|
| 86 | %_post_service la-sync-manager |
---|
| 87 | if [ "$1" -ge "1" ] ; then |
---|
| 88 | /sbin/service la-sync-manager restart |
---|
| 89 | fi |
---|
| 90 | |
---|
[432] | 91 | %files |
---|
| 92 | %defattr(-,root,root) |
---|
[1024] | 93 | %doc README |
---|
[578] | 94 | %_sysconfdir/init.d/la-sync-manager |
---|
[603] | 95 | %config(noreplace) %_sysconfdir/sysconfig/latmos-accounts |
---|
[841] | 96 | %config(noreplace) %_sysconfdir/cron.d/latmos-accounts |
---|
[1179] | 97 | %attr(0600,laccounts,laccounts) %config(noreplace) %_sysconfdir/latmos-accounts/* |
---|
[432] | 98 | %_bindir/* |
---|
[861] | 99 | %{_mandir}/man1/* |
---|
[432] | 100 | %{_mandir}/man3/* |
---|
[861] | 101 | %{_mandir}/man5/* |
---|
[991] | 102 | %{_mandir}/man8/* |
---|
[432] | 103 | %perl_vendorlib/* |
---|
[705] | 104 | %_datadir/latmos-accounts |
---|
[1546] | 105 | %_datadir/locale/* |
---|