diff options
Diffstat (limited to 'mga-mirrors.spec.in')
-rw-r--r-- | mga-mirrors.spec.in | 31 |
1 files changed, 14 insertions, 17 deletions
diff --git a/mga-mirrors.spec.in b/mga-mirrors.spec.in index 04b0f5e..7c234b4 100644 --- a/mga-mirrors.spec.in +++ b/mga-mirrors.spec.in @@ -1,18 +1,16 @@ -# $Id$ +%define name mga-mirrors +%define oname MGA-Mirrors +%define version @VERSION@ +%define release %mkrel 1 -%define realname mga-mirrors -%define version @VERSION@ -%define release %mkrel 1 - -Name: %{realname} +Name: %{name} Version: %{version} Release: %{release} License: GPL or Artistic Group: Development/Perl Summary: Mageia Mirrors management -Source: %{realname}-%{version}.tar.gz -Url: http://mirrors.mageia.org/ -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot +Source: %{oname}-%{version}.tar.gz +Url: https://mirrors.mageia.org/ BuildArch: noarch BuildRequires: perl(Catalyst::Plugin::Prototype) @@ -23,6 +21,7 @@ BuildRequires: perl(Catalyst::Plugin::Session::State::Cookie) BuildRequires: perl(Catalyst::Plugin::Session) BuildRequires: perl(Catalyst::Action::RenderView) BuildRequires: perl(Catalyst::View::TT) +BuildRequires: perl(Catalyst::View::GraphViz) BuildRequires: perl(Catalyst::Plugin::ConfigLoader) BuildRequires: perl(Catalyst::Plugin::Static::Simple) BuildRequires: perl(Catalyst::Plugin::Prototype) @@ -30,6 +29,9 @@ BuildRequires: perl(DBD::Pg) BuildRequires: perl(Mail::Mailer) BuildRequires: perl(Catalyst::Plugin::Prototype) BuildRequires: perl(Catalyst::Plugin::Session::Store::FastMmap) +BuildRequires: perl(Net::DNS) +BuildRequires: perl(Config::General) +BuildRequires: perl(Class::Data::Inheritable) Requires: perl(Catalyst::Plugin::Session::State::Cookie) Requires: perl(Catalyst::Plugin::Session::Store::FastMmap) @@ -47,11 +49,11 @@ Requires: perl(DBD::Pg) Mageia Mirrors management %prep -%setup -q -n %{realname}-%{version} +%setup -q -n %{oname}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor -%make +%make_build %if 0 %check @@ -59,8 +61,7 @@ make test %endif %install -rm -rf %buildroot -%makeinstall_std +%make_install mkdir -p %{buildroot}%_sysconfdir install mga-mirrors.ini.in %{buildroot}%_sysconfdir/mga-mirrors.ini @@ -68,11 +69,7 @@ install mga-mirrors.ini.in %{buildroot}%_sysconfdir/mga-mirrors.ini mkdir -p %{buildroot}%_var/www/cgi-bin install script/mga_mirrors_cgi.pl %{buildroot}%_var/www/cgi-bin/mga_mirrors_cgi.pl -%clean -rm -rf %buildroot - %files -%defattr(-,root,root) %doc Changes README %attr(0640,root,apache) %config(noreplace) %_sysconfdir/mga-mirrors.ini %_sysconfdir/cron.d/mga_mirrors |