source: trunk/epoll.spec.in @ 446

Last change on this file since 446 was 360, checked in by misc, 14 years ago
  • fix Url
  • enhance description
File size: 1.6 KB
Line 
1%define realname   Epoll
2%define version    @VERSION@
3%define release    %mkrel 1
4
5Name:       Epoll
6Version:    %{version}
7Release:    %{release}
8License:    GPL or Artistic
9Group:      Development/Perl
10Summary:    A web voting application
11Source:     %{realname}-%{version}.tar.gz
12Url:        http://forge.ipsl.jussieu.fr/epoll/
13BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-buildroot
14BuildArch:  noarch
15
16BuildRequires: perl(Catalyst::Plugin::Prototype)
17BuildRequires: perl(Catalyst::Plugin::I18N)
18
19Requires: perl(Catalyst::P::S::State::Cookie)
20Requires: perl(Catalyst::Plugin::Session)
21Requires: perl(Catalyst::Plugin::Session::Store::DBI)
22Requires: perl(Catalyst::Action::RenderView)
23Requires: perl(Catalyst::View::TT)
24Requires: perl(Catalyst::Plugin::ConfigLoader)
25Requires: perl(Catalyst::Plugin::Static::Simple)
26Requires: perl(Catalyst::Plugin::Prototype)
27Requires: perl(Catalyst::Plugin::I18N)
28
29%description
30A web voting application, made with anonymity, vote protection and conviviality.
31
32%prep
33%setup -q -n %{realname}-%{version}
34
35%build
36%{__perl} Makefile.PL INSTALLDIRS=vendor
37%make
38
39%if 0
40%check
41make test
42%endif
43
44%install
45rm -rf %buildroot
46%makeinstall_std
47
48mkdir -p %buildroot/etc
49install -m 700 epoll.yml.example %buildroot%_sysconfdir/epoll.yml
50mkdir -p %buildroot%_var/www/cgi-bin
51install -m 755 script/epoll_cgi.pl %buildroot%_var/www/cgi-bin/epoll_cgi.pl
52
53%clean
54rm -rf %buildroot
55
56%files
57%defattr(-,root,root)
58%doc Changes README
59%doc sql/postgres.dump
60%attr(0640,root,apache) %config(noreplace) %_sysconfdir/epoll.yml
61%_bindir/*
62%_var/www/cgi-bin/epoll_cgi.pl
63%{_mandir}/man3/*
64%{_mandir}/man1/*
65%perl_vendorlib/*
66
Note: See TracBrowser for help on using the repository browser.