source: trunk/epoll.spec.in @ 336

Last change on this file since 336 was 287, checked in by nanardon, 14 years ago
  • fill dependencies
File size: 1.6 KB
Line 
1%define realname   Vote
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://search.cpan.org/dist/%{realname}
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
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
43make checkmd5
44
45%install
46rm -rf %buildroot
47%makeinstall_std
48
49mkdir -p %buildroot/etc
50install -m 700 epoll.yml.example %buildroot%_sysconfdir/epoll.yml
51mkdir -p %buildroot%_var/www/cgi-bin
52install -m 755 script/vote_cgi.pl %buildroot%_var/www/cgi-bin/vote_cgi.pl
53
54%clean
55rm -rf %buildroot
56
57%files
58%defattr(-,root,root)
59%doc Changes README
60%doc sql/postgres.dump
61%attr(0640,root,apache) %config(noreplace) %_sysconfdir/epoll.yml
62%_bindir/*
63%_var/www/cgi-bin/vote_cgi.pl
64%{_mandir}/man3/*
65%{_mandir}/man1/*
66%perl_vendorlib/*
67
Note: See TracBrowser for help on using the repository browser.