# $Id: sophie-tools.spec.in 400 2011-11-11 17:11:23Z nanardon $ %define realname Sophie-Tools %define version @VERSION@ %define release %mkrel %{?svnrelease:0.%{svnrelease}}%{?!svnrelease:1} Name: sophie-tools Version: %{version} Release: %{release} License: GPL or Artistic Group: Development/Perl Summary: Sophie's tools Source: %{realname}-%{version}.tar.gz Url: http://search.cpan.org/dist/%{realname} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildArch: noarch BuildRequires: perl(RPC::XML) Requires: perl-Term-ReadLine-Gnu Requires: perl(Config::General) %description Command line tools to query Sophie website (http://sophie.zarb.org/) %prep %setup -q -n %{realname}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make %check make test %install rm -rf %buildroot %makeinstall_std mkdir -p %buildroot/etc/init.d install -m755 sysinit/sophie-notify %buildroot/etc/init.d/sophie-notify %clean rm -rf %buildroot %files %defattr(-,root,root) %doc Changes README /etc/init.d/sophie-notify %_bindir/* %{_mandir}/*/* %perl_vendorlib/*