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 | |
---|
[275] | 19 | Requires: perl(Catalyst::Plugin::Prototype) |
---|
| 20 | Requires: perl(Catalyst::Plugin::I18N) |
---|
| 21 | |
---|
[94] | 22 | %description |
---|
| 23 | A web voting application |
---|
| 24 | |
---|
| 25 | %prep |
---|
| 26 | %setup -q -n %{realname}-%{version} |
---|
| 27 | |
---|
| 28 | %build |
---|
| 29 | %{__perl} Makefile.PL INSTALLDIRS=vendor |
---|
| 30 | %make |
---|
| 31 | |
---|
| 32 | %if 0 |
---|
| 33 | %check |
---|
| 34 | make test |
---|
| 35 | %endif |
---|
[122] | 36 | make checkmd5 |
---|
[94] | 37 | |
---|
| 38 | %install |
---|
| 39 | rm -rf %buildroot |
---|
| 40 | %makeinstall_std |
---|
| 41 | |
---|
[122] | 42 | mkdir -p %buildroot/etc |
---|
[124] | 43 | install -m 700 epoll.yml.example %buildroot%_sysconfdir/epoll.yml |
---|
| 44 | mkdir -p %buildroot%_var/www/cgi-bin |
---|
| 45 | install -m 755 script/vote_cgi.pl %buildroot%_var/www/cgi-bin/vote_cgi.pl |
---|
[122] | 46 | |
---|
[94] | 47 | %clean |
---|
| 48 | rm -rf %buildroot |
---|
| 49 | |
---|
| 50 | %files |
---|
| 51 | %defattr(-,root,root) |
---|
| 52 | %doc Changes README |
---|
[125] | 53 | %doc sql/postgres.dump |
---|
[123] | 54 | %attr(0640,root,apache) %config(noreplace) %_sysconfdir/epoll.yml |
---|
[94] | 55 | %_bindir/* |
---|
[124] | 56 | %_var/www/cgi-bin/vote_cgi.pl |
---|
[94] | 57 | %{_mandir}/man3/* |
---|
| 58 | %{_mandir}/man1/* |
---|
| 59 | %perl_vendorlib/* |
---|
| 60 | |
---|
Note: See
TracBrowser
for help on using the repository browser.