source: tags/5.0.12/LATMOS-Accounts-Web/latmos-accounts-web.spec.in @ 2505

Last change on this file since 2505 was 1550, checked in by nanardon, 9 years ago

Translate attribute with their definition

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