source: bot/trunk/sophie-tools.spec.in @ 378

Last change on this file since 378 was 378, checked in by nanardon, 13 years ago
  • add `make rpm' target
  • Property svn:keywords set to Id
File size: 876 bytes
Line 
1# $Id$
2
3%define realname   Sophie-Tools
4%define version    @VERSION@
5%define release    %mkrel %{?svnrelease:0.%{svnrelease}}%{?!svnrelease:1}
6
7Name:       sophie-tools
8Version:    %{version}
9Release:    %{release}
10License:    GPL or Artistic
11Group:      Development/Perl
12Summary:    Sophie's tools
13Source:     %{realname}-%{version}.tar.gz
14Url:        http://search.cpan.org/dist/%{realname}
15BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-buildroot
16BuildArch:  noarch
17
18Requires: perl-Term-ReadLine-Gnu
19
20%description
21Command line tools to query Sophie website (http://sophie.zarb.org/)
22
23%prep
24%setup -q -n %{realname}-%{version}
25
26%build
27%{__perl} Makefile.PL INSTALLDIRS=vendor
28%make
29
30%check
31make test
32
33%install
34rm -rf %buildroot
35%makeinstall_std
36
37%clean
38rm -rf %buildroot
39
40%files
41%defattr(-,root,root)
42%doc Changes README
43%_bindir/*
44%{_mandir}/*/*
45%perl_vendorlib/*
46
Note: See TracBrowser for help on using the repository browser.