source: LATMOS-Accounts-Web/latmos-accounts-web.spec.in @ 737

Last change on this file since 737 was 737, checked in by nanardon, 14 years ago
  • 0.0.9
  • restart services after rpm installation
File size: 2.7 KB
Line 
1%define realname   LATMOS-Accounts-Web
2%define name       latmos-accounts-web
3%define version    @VERSION@
4%define release    %mkrel 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)
22BuildRequires: perl(Catalyst::Plugin::Authentication)
23BuildRequires: perl(Catalyst::Plugin::Session)
24BuildRequires: perl(Catalyst::Plugin::Session::Store::FastMmap)
25BuildRequires: perl(Catalyst::Plugin::Session::State::Cookie)
26BuildRequires: perl(Catalyst::Plugin::Prototype)
27BuildRequires: perl(Catalyst::View::TT)
28BuildRequires: perl(LATMOS::Accounts)
29
30Requires: perl(Catalyst)
31Requires: perl(Catalyst::Plugin::ConfigLoader)
32Requires: perl(Catalyst::Plugin::Static::Simple)
33Requires: perl(Catalyst::Action::RenderView)
34Requires: perl(YAML)
35Requires: perl(Catalyst::Plugin::Authentication)
36Requires: perl(Catalyst::Plugin::Session)
37Requires: perl(Catalyst::Plugin::Session::Store::FastMmap)
38Requires: perl(Catalyst::Plugin::Session::State::Cookie)
39Requires: perl(Catalyst::Plugin::Prototype)
40Requires: perl(Catalyst::View::TT)
41Requires: perl(LATMOS::Accounts)
42# Requires: apache-mod_fastcgi
43# Requires: perl(FCGI)
44Requires: apache-mod_proxy
45
46%description
47The Web interface over LATMOS-Account system.
48
49%prep
50%setup -q -n %{realname}-%{version}
51
52%build
53%{__perl} Makefile.PL INSTALLDIRS=vendor
54%make
55
56%install
57rm -rf %buildroot
58%makeinstall_std
59
60mkdir -p %buildroot/%_var/www/{fcgi-bin/,cgi-bin/}
61
62install -m 755 script/latmos_accounts_web_fastcgi.pl %buildroot/%_var/www/fcgi-bin/
63install -m 755 script/latmos_accounts_web_cgi.pl %buildroot/%_var/www/cgi-bin/
64
65mkdir -p %buildroot/%_sysconfdir/httpd/conf/webapps.d/
66install -m 640 etc/httpd/latmos-accounts-web.conf %buildroot/%_sysconfdir/httpd/conf/webapps.d/
67
68mkdir -p %buildroot/%_sysconfdir/init.d
69install -m 750 etc/init.d/latmos-accounts-web %buildroot/%_sysconfdir/init.d/latmos-accounts-web
70
71%clean
72rm -rf %buildroot
73
74%preun
75%_preun_service %name
76
77%post
78%_post_service %name
79if [ "$1" -ge "1" ] ; then
80    /sbin/service %name restart
81fi
82
83%files
84%defattr(-,root,root)
85%doc Changes README
86%_bindir/*
87%{_mandir}/man3/*
88%{_mandir}/man1/*
89%perl_vendorlib/*
90%_var/www/*/*.pl
91%config(noreplace) %_sysconfdir/httpd/conf/webapps.d/*
92%_sysconfdir/init.d/latmos-accounts-web
93
Note: See TracBrowser for help on using the repository browser.