~janbaudisch/git-mirror

17bfa06dec336854ff806982d32de3eea1fe2841 — Jan Baudisch 4 years ago cd77753 0.3.1
0.3.0
2 files changed, 17 insertions(+), 5 deletions(-)

M git-mirror.1
M git-mirror.spec
M git-mirror.1 => git-mirror.1 +2 -2
@@ 1,4 1,4 @@
.TH man 1 "17 April 2020" "0.2.2" "git-mirror man page"
.TH man 1 "16 May 2020" "0.3.0" "git-mirror man page"
.SH NAME
git-mirror \- a tool for mirroring a remote git repository to another one
.SH SYNOPSIS


@@ 21,4 21,4 @@ Updates the mirror repository with the primary. Only works if the given director
.B mirror
\- git url for the mirror repository, must be writable from the host
.SH AUTHOR
Jan Baudisch (dev@baudisch.xyz)
Jan Baudisch (jan@baudisch.xyz)

M git-mirror.spec => git-mirror.spec +15 -3
@@ 1,28 1,40 @@
%define debug_package %{nil}

Name: git-mirror
Version: 0.2.2
Version: 0.3.0
Release: 1%{?dist}
Summary: A tool for mirroring a remote git repository to another one
License: GPL-3.0
URL: https://git.sr.ht/~janbaudisch/git-mirror
Source0: https://git.sr.ht/~janbaudisch/git-mirror/archive/%{version}.tar.gz
BuildRequires: systemd
Requires: git

%description
git-mirror is a tool for mirroring a remote git repository to another one.

%define debug_package %{nil}

%prep
%autosetup

%build
gzip git-mirror.1
gzip git-mirror-auto.1

%install
install -Dpm 755 git-mirror %{buildroot}%{_bindir}/git-mirror
install -Dpm 755 git-mirror-auto %{buildroot}%{_bindir}/git-mirror-auto
install -Dpm 644 git-mirror.1.gz %{buildroot}%{_mandir}/man1/git-mirror.1.gz
install -Dpm 644 git-mirror-auto.1.gz %{buildroot}%{_mandir}/man1/git-mirror-auto.1.gz
install -Dpm 644 git-mirror-auto.service %{buildroot}%{_unitdir}/git-mirror-auto.service
install -Dpm 644 git-mirror-auto.timer %{buildroot}%{_unitdir}/git-mirror-auto.timer
install -Dpm 644 git-mirror-auto.env %{buildroot}%{_sysconfdir}/git-mirror/git-mirror-auto.env

%files
%license LICENSE
%{_bindir}/git-mirror
%{_bindir}/git-mirror-auto
%{_mandir}/man1/git-mirror.1.gz
%{_mandir}/man1/git-mirror-auto.1.gz
%{_unitdir}/git-mirror-auto.service
%{_unitdir}/git-mirror-auto.timer
%config(noreplace) %{_sysconfdir}/git-mirror/git-mirror-auto.env