mirmon/mirmon.spec

Name: mirmon
Summary: Monitor the state of mirrors
Version: 2.9
Release: 1
License: BSD
Group: Applications/Internet
URL: http://people.cs.uu.nl/henkp/mirmon/
Description: This packages contains a mirmon program - an utility to monitor the state of mirrors.

CentOS 7 x86_64

The build was not successful.

Build Status

CentOS 6 x86_64

The build was succesful. The following RPMs were generated:

Build Status

Contents

The spec file used by the build system currently has the following contents:

Summary:        Monitor the state of mirrors
Name:           mirmon
Version:        2.9
Release:        1%{?dist}
License:        BSD
Group:          Applications/Internet
URL:            http://people.cs.uu.nl/henkp/mirmon/
Source:         http://people.cs.uu.nl/henkp/mirmon/mirmon-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}
BuildArch:      noarch

%description
This packages contains a mirmon program - an utility to monitor the state of mirrors.

%prep
%setup -q

%{__cat} <<EOF >mirmon.conf
EOF

%{__cat} <<EOF >mirmon.cron
#*/05 * * * * root /bin/date +\%s > /var/www/html/TIME
*/15 * * * * root /usr/bin/mirmon -get all
EOF


%{__cat} <<EOF >mirmon.httpd
#
#  Web application to manage mirrors
#

Alias /mirmon /usr/share/mirmon

#<Directory "/usr/share/mirmon">
#  Order Deny,Allow
#  Deny from all
#  Allow from 127.0.0.1
#</Directory>
EOF

%install
mkdir -p %buildroot{%_bindir,%_datadir/%name}
install -pm755 mirmon %buildroot%_bindir/
install -Dp -m0644 mirmon.cron %{buildroot}%{_sysconfdir}/cron.d/mirmon
install -Dp -m0644 mirmon.httpd %{buildroot}%{_sysconfdir}/httpd/conf.d/mirmon.conf
cp -a countries.list icons %buildroot%_datadir/%name/

%files
%defattr(-, root, root, 0755)
%config(noreplace) %{_sysconfdir}/httpd/conf.d/*.conf
%config(noreplace) %{_sysconfdir}/cron.d/mirmon
%{_bindir}/*
%{_datadir}/%{name}
%doc *.txt

%changelog
* Wed Oct 16 2013 David Hrbáč <david@hrbac.cz> - 2.9-1
- new upstream release

* Fri Mar 14 2013 David Hrbáč <david@hrbac.cz> - 2.8-1
- new upstream release

* Mon Dec 17 2012 David Hrbáč <david@hrbac.cz> - 2.7-1
- new upstream release

* Mon May 28 2012 David Hrbáč <david@hrbac.cz> - 2.6-1
- new upstream release

* Thu Apr 19 2012 David Hrbáč <david@hrbac.cz> - 2.5-1
- new upstream release

* Tue Jan 31 2012 David Hrbáč <david@hrbac.cz> - 2.4-1
- new upstream release

* Wed Sep 01 2010 David Hrbáč <david@hrbac.cz> - 2.3-1
- initial release