aboutsummaryrefslogtreecommitdiffstats
path: root/mga-mirrors.spec.in
blob: 15c174b9c445689f31e4719d46d309aecae73ad4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# $Id$

%define realname   mga-mirrors
%define version    @VERSION@
%define release    %mkrel 1

Name:       %{realname}
Version:    %{version}
Release:    %{release}
License:    GPL or Artistic
Group:      Development/Perl
Summary:    Mageia Mirrors management
Source:     %{realname}-%{version}.tar.gz
Url:        https://mirrors.mageia.org/
BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildArch:  noarch

BuildRequires: perl(Catalyst::Plugin::Prototype)
BuildRequires: perl(Module::Install)
BuildRequires: perl(Catalyst)
BuildRequires: perl(Catalyst::Devel)
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::Plugin::ConfigLoader)
BuildRequires: perl(Catalyst::Plugin::Static::Simple)
BuildRequires: perl(Catalyst::Plugin::Prototype)
BuildRequires: perl(DBD::Pg)
BuildRequires: perl(Mail::Mailer)
BuildRequires: perl(Catalyst::Plugin::Prototype)
BuildRequires: perl(Catalyst::Plugin::Session::Store::FastMmap)

Requires: perl(Catalyst::Plugin::Session::State::Cookie)
Requires: perl(Catalyst::Plugin::Session::Store::FastMmap)
Requires: perl(Catalyst::Plugin::Session)
Requires: perl(Catalyst::Plugin::Session::Store::DBI)
Requires: perl(Catalyst::Action::RenderView)
Requires: perl(Catalyst::View::TT)
Requires: perl(Catalyst::View::GraphViz)
Requires: perl(Catalyst::Plugin::ConfigLoader)
Requires: perl(Catalyst::Plugin::Static::Simple)
Requires: perl(Catalyst::Plugin::Prototype)
Requires: perl(DBD::Pg)

%description
Mageia Mirrors management

%prep
%setup -q -n %{realname}-%{version} 

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%if 0
%check
make test
%endif

%install
rm -rf %buildroot
%makeinstall_std

mkdir -p %{buildroot}%_sysconfdir
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
%_bindir/*
%_var/www/cgi-bin/mga_mirrors_cgi.pl
%{_mandir}/man3/*
%{_mandir}/man1/*
%perl_vendorlib/*