[552] | 1 | %define realname LATMOS-Accounts-Web |
---|
| 2 | %define name latmos-accounts-web |
---|
[438] | 3 | %define version @VERSION@ |
---|
[861] | 4 | %define release %mkrel %{?svnrelease:0.%{svnrelease}}%{?!svnrelease:1} |
---|
[438] | 5 | |
---|
[552] | 6 | Name: %{name} |
---|
[438] | 7 | Version: %{version} |
---|
| 8 | Release: %{release} |
---|
| 9 | License: GPL or Artistic |
---|
| 10 | Group: Development/Perl |
---|
| 11 | Summary: Latmos Account Web interface |
---|
| 12 | Source: %{realname}-%{version}.tar.gz |
---|
| 13 | Url: http://search.cpan.org/dist/%{realname} |
---|
| 14 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
---|
| 15 | BuildArch: noarch |
---|
| 16 | |
---|
| 17 | BuildRequires: perl(Catalyst) |
---|
| 18 | BuildRequires: perl(Catalyst::Plugin::ConfigLoader) |
---|
| 19 | BuildRequires: perl(Catalyst::Plugin::Static::Simple) |
---|
| 20 | BuildRequires: perl(Catalyst::Action::RenderView) |
---|
[1222] | 21 | BuildRequires: perl(YAML::XS) |
---|
[438] | 22 | BuildRequires: perl(Catalyst::Plugin::Authentication) |
---|
| 23 | BuildRequires: perl(Catalyst::Plugin::Session) |
---|
[1157] | 24 | BuildRequires: perl(Catalyst::Plugin::Session::Store::File) |
---|
[438] | 25 | BuildRequires: perl(Catalyst::Plugin::Session::State::Cookie) |
---|
| 26 | BuildRequires: perl(Catalyst::View::TT) |
---|
[497] | 27 | BuildRequires: perl(LATMOS::Accounts) |
---|
[954] | 28 | BuildRequires: perl(Class::Data::Inheritable) |
---|
[1138] | 29 | BuildRequires: perl(Email::Send) |
---|
| 30 | BuildRequires: perl(Email::MIME::Creator) |
---|
[1222] | 31 | BuildRequires: perl(Mail::Sendmail) |
---|
[1417] | 32 | BuildRequires: perl(Catalyst::View::JSON) |
---|
[1550] | 33 | BuildRequires: perl-Locale-Maketext-Lexicon |
---|
[438] | 34 | |
---|
| 35 | Requires: perl(Catalyst) |
---|
| 36 | Requires: perl(Catalyst::Plugin::ConfigLoader) |
---|
| 37 | Requires: perl(Catalyst::Plugin::Static::Simple) |
---|
| 38 | Requires: perl(Catalyst::Action::RenderView) |
---|
[1222] | 39 | Requires: perl(YAML::XS) |
---|
[438] | 40 | Requires: perl(Catalyst::Plugin::Authentication) |
---|
| 41 | Requires: perl(Catalyst::Plugin::Session) |
---|
[1157] | 42 | Requires: perl(Catalyst::Plugin::Session::Store::File) |
---|
[438] | 43 | Requires: perl(Catalyst::Plugin::Session::State::Cookie) |
---|
[1562] | 44 | Requires: perl(Catalyst::Plugin::I18N) |
---|
[438] | 45 | Requires: perl(Catalyst::View::TT) |
---|
| 46 | Requires: perl(LATMOS::Accounts) |
---|
[954] | 47 | Requires: perl(Class::Data::Inheritable) |
---|
[555] | 48 | # Requires: apache-mod_fastcgi |
---|
| 49 | # Requires: perl(FCGI) |
---|
[1222] | 50 | Requires: perl(Mail::Sendmail) |
---|
[555] | 51 | Requires: apache-mod_proxy |
---|
[1417] | 52 | Requires: perl(Catalyst::View::JSON) |
---|
| 53 | Requires: perl(JSON::Any) |
---|
| 54 | Requires: perl(JSON) |
---|
| 55 | Requires: perl(JSON::XS) |
---|
[1562] | 56 | Requires: perl(Locale::Maketext::Lexicon) |
---|
[438] | 57 | |
---|
| 58 | %description |
---|
| 59 | The Web interface over LATMOS-Account system. |
---|
| 60 | |
---|
| 61 | %prep |
---|
| 62 | %setup -q -n %{realname}-%{version} |
---|
| 63 | |
---|
| 64 | %build |
---|
| 65 | %{__perl} Makefile.PL INSTALLDIRS=vendor |
---|
| 66 | %make |
---|
| 67 | |
---|
| 68 | %install |
---|
| 69 | rm -rf %buildroot |
---|
| 70 | %makeinstall_std |
---|
| 71 | |
---|
[550] | 72 | mkdir -p %buildroot/%_var/www/{fcgi-bin/,cgi-bin/} |
---|
| 73 | |
---|
| 74 | install -m 755 script/latmos_accounts_web_fastcgi.pl %buildroot/%_var/www/fcgi-bin/ |
---|
| 75 | install -m 755 script/latmos_accounts_web_cgi.pl %buildroot/%_var/www/cgi-bin/ |
---|
| 76 | |
---|
[587] | 77 | mkdir -p %buildroot/%_sysconfdir/httpd/conf/webapps.d/ |
---|
| 78 | install -m 640 etc/httpd/latmos-accounts-web.conf %buildroot/%_sysconfdir/httpd/conf/webapps.d/ |
---|
[550] | 79 | |
---|
[2162] | 80 | mkdir -p %buildroot%_sysconfdir/sudoers.d |
---|
| 81 | install -m 644 etc/sudoers.d/latmos-accounts %buildroot%_sysconfdir/sudoers.d/ |
---|
[555] | 82 | |
---|
[438] | 83 | %clean |
---|
| 84 | rm -rf %buildroot |
---|
| 85 | |
---|
[737] | 86 | %post |
---|
| 87 | if [ "$1" -ge "1" ] ; then |
---|
[2162] | 88 | /sbin/service httpd restart |
---|
[737] | 89 | fi |
---|
| 90 | |
---|
[861] | 91 | %triggerpostun -- latmos-accounts |
---|
[2162] | 92 | /sbin/service httpd restart |
---|
[861] | 93 | |
---|
[438] | 94 | %files |
---|
| 95 | %defattr(-,root,root) |
---|
| 96 | %doc Changes README |
---|
| 97 | %_bindir/* |
---|
| 98 | %{_mandir}/man3/* |
---|
| 99 | %{_mandir}/man1/* |
---|
| 100 | %perl_vendorlib/* |
---|
[550] | 101 | %_var/www/*/*.pl |
---|
[587] | 102 | %config(noreplace) %_sysconfdir/httpd/conf/webapps.d/* |
---|
[899] | 103 | %config(noreplace) %_sysconfdir/latmos-accounts/* |
---|
[2165] | 104 | %config(noreplace) %_sysconfdir/sudoers.d/latmos-accounts |
---|