source: trunk/epoll.spec.in @ 122

Last change on this file since 122 was 122, checked in by nanardon, 15 years ago
  • add control/md5sum containing md5sum of all files
  • rename configuration file to avoid later change in release
File size: 914 bytes
Line 
1%define realname   Vote
2%define version    @VERSION@
3%define release    %mkrel 0.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
16%description
17A web voting application
18
19%prep
20%setup -q -n %{realname}-%{version}
21
22%build
23%{__perl} Makefile.PL INSTALLDIRS=vendor
24%make
25
26%if 0
27%check
28make test
29%endif
30make checkmd5
31
32%install
33rm -rf %buildroot
34%makeinstall_std
35
36mkdir -p %buildroot/etc
37install -m 700 epoll.yml.example %buildroot/etc/epoll.yml
38
39%clean
40rm -rf %buildroot
41
42%files
43%defattr(-,root,root)
44%doc Changes README
45%config(noreplace) %_sysconfdir/epoll.yml
46%_bindir/*
47%{_mandir}/man3/*
48%{_mandir}/man1/*
49%perl_vendorlib/*
50
Note: See TracBrowser for help on using the repository browser.