[348] | 1 | %define realname Epoll |
---|
[94] | 2 | %define version @VERSION@ |
---|
[147] | 3 | %define release %mkrel 1 |
---|
[94] | 4 | |
---|
| 5 | Name: Epoll |
---|
| 6 | Version: %{version} |
---|
| 7 | Release: %{release} |
---|
| 8 | License: GPL or Artistic |
---|
| 9 | Group: Development/Perl |
---|
| 10 | Summary: A web voting application |
---|
| 11 | Source: %{realname}-%{version}.tar.gz |
---|
[360] | 12 | Url: http://forge.ipsl.jussieu.fr/epoll/ |
---|
[94] | 13 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
---|
| 14 | BuildArch: noarch |
---|
| 15 | |
---|
[255] | 16 | BuildRequires: perl(Catalyst::Plugin::Prototype) |
---|
[275] | 17 | BuildRequires: perl(Catalyst::Plugin::I18N) |
---|
[255] | 18 | |
---|
[287] | 19 | Requires: perl(Catalyst::P::S::State::Cookie) |
---|
| 20 | Requires: perl(Catalyst::Plugin::Session) |
---|
| 21 | Requires: perl(Catalyst::Plugin::Session::Store::DBI) |
---|
| 22 | Requires: perl(Catalyst::Action::RenderView) |
---|
| 23 | Requires: perl(Catalyst::View::TT) |
---|
| 24 | Requires: perl(Catalyst::Plugin::ConfigLoader) |
---|
| 25 | Requires: perl(Catalyst::Plugin::Static::Simple) |
---|
[275] | 26 | Requires: perl(Catalyst::Plugin::Prototype) |
---|
| 27 | Requires: perl(Catalyst::Plugin::I18N) |
---|
| 28 | |
---|
[94] | 29 | %description |
---|
[360] | 30 | A web voting application, made with anonymity, vote protection and conviviality. |
---|
[94] | 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 |
---|
| 41 | make test |
---|
| 42 | %endif |
---|
| 43 | |
---|
| 44 | %install |
---|
| 45 | rm -rf %buildroot |
---|
| 46 | %makeinstall_std |
---|
| 47 | |
---|
[122] | 48 | mkdir -p %buildroot/etc |
---|
[124] | 49 | install -m 700 epoll.yml.example %buildroot%_sysconfdir/epoll.yml |
---|
| 50 | mkdir -p %buildroot%_var/www/cgi-bin |
---|
[348] | 51 | install -m 755 script/epoll_cgi.pl %buildroot%_var/www/cgi-bin/epoll_cgi.pl |
---|
[122] | 52 | |
---|
[94] | 53 | %clean |
---|
| 54 | rm -rf %buildroot |
---|
| 55 | |
---|
| 56 | %files |
---|
| 57 | %defattr(-,root,root) |
---|
| 58 | %doc Changes README |
---|
[125] | 59 | %doc sql/postgres.dump |
---|
[123] | 60 | %attr(0640,root,apache) %config(noreplace) %_sysconfdir/epoll.yml |
---|
[94] | 61 | %_bindir/* |
---|
[348] | 62 | %_var/www/cgi-bin/epoll_cgi.pl |
---|
[94] | 63 | %{_mandir}/man3/* |
---|
| 64 | %{_mandir}/man1/* |
---|
| 65 | %perl_vendorlib/* |
---|
| 66 | |
---|