aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2024-01-04 00:26:57 -0800
committerDan Fandrich <dan@coneharvesters.com>2024-01-12 00:54:02 -0800
commit4a099bbda3808f8293cc4a92c54db6a3ada7a6f6 (patch)
tree46f16b875595fca90197cbdabf76baaa33c191c4
parentf213188b9f1efd1ea4e75ddf176a46eab6a054aa (diff)
downloadmgamirrors-4a099bbda3808f8293cc4a92c54db6a3ada7a6f6.tar
mgamirrors-4a099bbda3808f8293cc4a92c54db6a3ada7a6f6.tar.gz
mgamirrors-4a099bbda3808f8293cc4a92c54db6a3ada7a6f6.tar.bz2
mgamirrors-4a099bbda3808f8293cc4a92c54db6a3ada7a6f6.tar.xz
mgamirrors-4a099bbda3808f8293cc4a92c54db6a3ada7a6f6.zip
Sync the spec file template with Mageia's
This removes a bunch of obsolete cruft.
-rw-r--r--mga-mirrors.spec.in31
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