Rev | Line | |
---|
[94] | 1 | %define realname Vote |
---|
| 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 |
---|
| 12 | Url: http://search.cpan.org/dist/%{realname} |
---|
| 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 |
---|
| 30 | A web voting application |
---|
| 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 |
---|
[122] | 43 | make checkmd5 |
---|
[94] | 44 | |
---|
| 45 | %install |
---|
| 46 | rm -rf %buildroot |
---|
| 47 | %makeinstall_std |
---|
| 48 | |
---|
[122] | 49 | mkdir -p %buildroot/etc |
---|
[124] | 50 | install -m 700 epoll.yml.example %buildroot%_sysconfdir/epoll.yml |
---|
| 51 | mkdir -p %buildroot%_var/www/cgi-bin |
---|
| 52 | install -m 755 script/vote_cgi.pl %buildroot%_var/www/cgi-bin/vote_cgi.pl |
---|
[122] | 53 | |
---|
[94] | 54 | %clean |
---|
| 55 | rm -rf %buildroot |
---|
| 56 | |
---|
| 57 | %files |
---|
| 58 | %defattr(-,root,root) |
---|
| 59 | %doc Changes README |
---|
[125] | 60 | %doc sql/postgres.dump |
---|
[123] | 61 | %attr(0640,root,apache) %config(noreplace) %_sysconfdir/epoll.yml |
---|
[94] | 62 | %_bindir/* |
---|
[124] | 63 | %_var/www/cgi-bin/vote_cgi.pl |
---|
[94] | 64 | %{_mandir}/man3/* |
---|
| 65 | %{_mandir}/man1/* |
---|
| 66 | %perl_vendorlib/* |
---|
| 67 | |
---|
Note: See
TracBrowser
for help on using the repository browser.