-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathsynctool.spec
87 lines (68 loc) · 2.61 KB
/
synctool.spec
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
85
86
87
# norootforbuild
%define debug_package %{nil}
%define __spec_install_port /usr/lib/rpm/brp-compress
%define __os_install_post /usr/lib/rpm/brp-compress
%define __find_requires %{nil}
Autoreq: 0
Name: synctool
License: GPL v3 or later
Group: system/utility
Summary: synchronized config files
Version: @VERSION@
Release: @RELEASE@%{?dist}
BuildArch: noarch
URL: https://github.com/celane/synctool
Source: https://github.com/celane/synctool/releases/download/v%{version}/synctool-%{version}.tar.gz
Requires: ssh
Requires: python3
BuildRequires: discount
BuildRequires: python3-smartypants
BuildRequires: help2man
BuildRequires: git
BuildRequires: make
%description
Synchronize config files for multiple systems
%prep
%setup
%build
chmod a+x src/*.py
ln -s src/synctool_master.py ./synctool
help2man -n"Cluster configuration management tool" -s8 --manual="System Administration Utilities" -o synctool.8 -N -l ./synctool
ln -s src/dsh.py ./dsh
help2man -n"Cluster configuration copy tool" -s8 --manual="System Administration Utilities" -o dsh.8 -N -l ./dsh
%install
install -d %buildroot/usr/share/doc/%{name}-%{version}-%{release}/contrib
install Changelog README LICENSE synctool.conf.example %{buildroot}/usr/share/doc/%{name}-%{version}-%{release}/
install -d %buildroot/usr/share/man/man8
install *.8 %buildroot/usr/share/man/man8/
./setup.sh --installdir=%buildroot/opt/synctool --build-docs --fix
mv %buildroot/opt/synctool/doc %buildroot/usr/share/doc/%{name}-%{version}-%{release}/html
install -d %buildroot/etc/profile.d
install contrib/synctool.profile.sh %buildroot/etc/profile.d/synctool.sh
install -d %buildroot/etc/bash_completion.d
install contrib/synctool.bash_completion %buildroot/etc/bash_completion.d/synctool
mv contrib %{buildroot}/usr/share/doc/%{name}-%{version}-%{release}/
%clean
%files
%defattr(-,root,root)
/usr/share/man/man8/
%docdir /usr/share/doc/%{name}-%{version}-%{release}/
/usr/share/doc/%{name}-%{version}-%{release}/
/opt/synctool/
%config /etc/profile.d/synctool.sh
%config /etc/bash_completion.d/synctool
%changelog
* Tue Sep 12 2023 [email protected]
- build from git repository
* Wed May 26 2021 [email protected]
- improve manpage generation
* Thu Jul 19 2018 [email protected]
- change to work with python2 in rpm build
* Fri Jul 1 2016 [email protected]
- update to 6.2
* Sat Jun 30 2012 [email protected]
- update to 5.2
- remove synctool-client, since no longer needed
- automatic manpage generation from --help
* Wed Dec 22 2010 [email protected]
- copy from prev version