mirror_from_pagure/mirror_from_pagure.spec
Pierre-Yves Chibon 75ee3327a1 Initial import of the code
This includes the script doing the actual mirroring, the systemd service
file and a spec file to compile and install this all

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2020-04-22 12:44:46 +02:00

54 lines
1.2 KiB
RPMSpec

Name: mirror_from_pagure
Version: 0.1
Release: 1%{?dist}
Summary: Small script and service to mirror a git repo from pagure locally
License: MIT
URL: https://pagure.io/Fedora-Infra/mirror_from_pagure
Source0: https://releases.pagure.org/Fedora-Infra/mirror_from_pagure/mirror_from_pagure-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python-devel
Requires: python
Requires: git
%{?systemd_requires}
%description
This program is a small script and service to mirror the ansible git repo
from pagure locally.
%prep
%build
%install
mkdir -p %{buildroot}%{_libexecdir}
install -m 0644 mirror_from_pagure.py %{buildroot}%{_libexecdir}
# Install the systemd file
mkdir -p %{buildroot}%{_unitdir}
install -p -m 644 files/mirror_from_pagure.service \
%{buildroot}%{_unitdir}/mirror_from_pagure.service
%post
%systemd_post mirror_from_pagure.service
%preun
%systemd_preun mirror_from_pagure.service
%postun
%systemd_postun_with_restart mirror_from_pagure.service
%files
%license LICENSE
%{_libexecdir}/mirror_from_pagure.py
%{_unitdir}/mirror_from_pagure.service
%changelog
* Wed Apr 22 2020 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.1-1
- initial package for Fedora