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
RevLine 
[94]1%define realname   Vote
2%define version    @VERSION@
[147]3%define release    %mkrel 1
[94]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
[255]16BuildRequires: perl(Catalyst::Plugin::Prototype)
[275]17BuildRequires: perl(Catalyst::Plugin::I18N)
[255]18
[275]19Requires: perl(Catalyst::Plugin::Prototype)
20Requires: perl(Catalyst::Plugin::I18N)
21
[94]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
[122]36make checkmd5
[94]37
38%install
39rm -rf %buildroot
40%makeinstall_std
41
[122]42mkdir -p %buildroot/etc
[124]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
[122]46
[94]47%clean
48rm -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.