source: trunk/epoll.spec.in @ 282

Last change on this file since 282 was 275, checked in by nanardon, 14 years ago
  • add code to support i18n
File size: 1.3 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::Plugin::Prototype)
20Requires: perl(Catalyst::Plugin::I18N)
21
22%description
23A 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
34make test
35%endif
36make checkmd5
37
38%install
39rm -rf %buildroot
40%makeinstall_std
41
42mkdir -p %buildroot/etc
43install -m 700 epoll.yml.example %buildroot%_sysconfdir/epoll.yml
44mkdir -p %buildroot%_var/www/cgi-bin
45install -m 755 script/vote_cgi.pl %buildroot%_var/www/cgi-bin/vote_cgi.pl
46
47%clean
48rm -rf %buildroot
49
50%files
51%defattr(-,root,root)
52%doc Changes README
53%doc sql/postgres.dump
54%attr(0640,root,apache) %config(noreplace) %_sysconfdir/epoll.yml
55%_bindir/*
56%_var/www/cgi-bin/vote_cgi.pl
57%{_mandir}/man3/*
58%{_mandir}/man1/*
59%perl_vendorlib/*
60
Note: See TracBrowser for help on using the repository browser.