%define realname Epoll %define version @VERSION@ %define release %mkrel 1 Name: Epoll Version: %{version} Release: %{release} License: GPL or Artistic Group: Development/Perl Summary: A web voting application Source: %{realname}-%{version}.tar.gz Url: http://forge.ipsl.jussieu.fr/epoll/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildArch: noarch BuildRequires: perl(Catalyst::Plugin::Prototype) BuildRequires: perl(Catalyst::Plugin::I18N) Requires: perl(Catalyst::P::S::State::Cookie) Requires: perl(Catalyst::Plugin::Session) Requires: perl(Catalyst::Plugin::Session::Store::DBI) Requires: perl(Catalyst::Action::RenderView) Requires: perl(Catalyst::View::TT) Requires: perl(Catalyst::Plugin::ConfigLoader) Requires: perl(Catalyst::Plugin::Static::Simple) Requires: perl(Catalyst::Plugin::Prototype) Requires: perl(Catalyst::Plugin::I18N) %description A web voting application, made with anonymity, vote protection and conviviality. %prep %setup -q -n %{realname}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make %if 0 %check make test %endif %install rm -rf %buildroot %makeinstall_std mkdir -p %buildroot/etc install -m 700 epoll.yml.example %buildroot%_sysconfdir/epoll.yml mkdir -p %buildroot%_var/www/cgi-bin install -m 755 script/epoll_cgi.pl %buildroot%_var/www/cgi-bin/epoll_cgi.pl %clean rm -rf %buildroot %files %defattr(-,root,root) %doc Changes README %doc sql/postgres.dump %attr(0640,root,apache) %config(noreplace) %_sysconfdir/epoll.yml %_bindir/* %_var/www/cgi-bin/epoll_cgi.pl %{_mandir}/man3/* %{_mandir}/man1/* %perl_vendorlib/*