Rev | Line | |
---|
[405] | 1 | # $Id: sophie-tools.spec.in 400 2011-11-11 17:11:23Z nanardon $ |
---|
[301] | 2 | |
---|
[405] | 3 | %define realname Sophie-Tools |
---|
| 4 | %define version @VERSION@ |
---|
| 5 | %define release %mkrel %{?svnrelease:0.%{svnrelease}}%{?!svnrelease:1} |
---|
| 6 | |
---|
| 7 | Name: sophie-tools |
---|
[301] | 8 | Version: %{version} |
---|
| 9 | Release: %{release} |
---|
| 10 | License: GPL or Artistic |
---|
| 11 | Group: Development/Perl |
---|
[405] | 12 | Summary: Sophie's tools |
---|
[301] | 13 | Source: %{realname}-%{version}.tar.gz |
---|
[405] | 14 | Url: http://search.cpan.org/dist/%{realname} |
---|
[301] | 15 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
---|
| 16 | BuildArch: noarch |
---|
[405] | 17 | BuildRequires: perl(RPC::XML) |
---|
[301] | 18 | |
---|
[405] | 19 | Requires: perl-Term-ReadLine-Gnu |
---|
| 20 | Requires: perl(Config::General) |
---|
[301] | 21 | |
---|
| 22 | %description |
---|
[405] | 23 | Command line tools to query Sophie website (http://sophie.zarb.org/) |
---|
[301] | 24 | |
---|
| 25 | %prep |
---|
| 26 | %setup -q -n %{realname}-%{version} |
---|
| 27 | |
---|
| 28 | %build |
---|
| 29 | %{__perl} Makefile.PL INSTALLDIRS=vendor |
---|
| 30 | %make |
---|
| 31 | |
---|
| 32 | %check |
---|
| 33 | make test |
---|
| 34 | |
---|
| 35 | %install |
---|
| 36 | rm -rf %buildroot |
---|
| 37 | %makeinstall_std |
---|
| 38 | |
---|
[427] | 39 | mkdir -p %buildroot/etc/init.d |
---|
| 40 | install -m755 sysinit/sophie-notify %buildroot/etc/init.d/sophie-notify |
---|
| 41 | |
---|
[301] | 42 | %clean |
---|
| 43 | rm -rf %buildroot |
---|
| 44 | |
---|
| 45 | %files |
---|
| 46 | %defattr(-,root,root) |
---|
| 47 | %doc Changes README |
---|
[427] | 48 | /etc/init.d/sophie-notify |
---|
[301] | 49 | %_bindir/* |
---|
[405] | 50 | %{_mandir}/*/* |
---|
[301] | 51 | %perl_vendorlib/* |
---|
| 52 | |
---|
Note: See
TracBrowser
for help on using the repository browser.