-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpysysbot.spec
118 lines (90 loc) · 3.99 KB
/
pysysbot.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
name: pysysbot
Version: 0.3.0
Release: 1%{?dist}
Summary: A simple python jabber bot for getting system information
License: BSD
URL: http://affolter-engineering.ch/pysysbot
Source0: https://github.com/fabaff/pysysbot/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: systemd
Requires: python3-slixmpp
Requires: python3-psutil
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
%description
This python jabber (XMPP) bot is based on the jabberbot framework. The bot
is capable to display details about the system it is running on. If you don't
want or can stay connected through SSH all the time this is an easy way to
get information about the remote system.
%prep
%autosetup -n %{name}-%{version}
%build
%py3_build
%install
%py3_install
install -Dp -m 0644 data/%{name}.service %{buildroot}%{_unitdir}/%{name}.service
install -Dp -m 0644 data/%{name}.conf %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf
install -Dp -m 0644 man/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
rm -rf %{buildroot}%{_defaultdocdir}
%post
%systemd_post %{name}.service
%preun
%systemd_preun %{name}.service
%postun
%systemd_postun_with_restart %{name}.service
%files
%doc AUTHORS ChangeLog README.rst
%license COPYING
%{_mandir}/man*/%{name}*.*
%{_bindir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/
%{_unitdir}/%{name}.service
%{python3_sitelib}/%{name}-*.egg-info/
%{python3_sitelib}/%{name}/
%changelog
* Wed May 08 2019 Fabian Affolter <[email protected]> - 0.3.0-1
- Remove Python 2 deps (rhbz#1701945)
- Update to new upstream release 0.3.0
* Sat Feb 02 2019 Fedora Release Engineering <[email protected]> - 0.1.3-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Jul 13 2018 Fedora Release Engineering <[email protected]> - 0.1.3-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Fri Feb 09 2018 Fedora Release Engineering <[email protected]> - 0.1.3-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering <[email protected]> - 0.1.3-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Sat Feb 11 2017 Fedora Release Engineering <[email protected]> - 0.1.3-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Tue Jul 19 2016 Fedora Release Engineering <[email protected]> - 0.1.3-5
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
* Thu Feb 04 2016 Fedora Release Engineering <[email protected]> - 0.1.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Thu Jun 18 2015 Fedora Release Engineering <[email protected]> - 0.1.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Sat Jun 07 2014 Fedora Release Engineering <[email protected]> - 0.1.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Wed Jan 22 2014 Fabian Affolter <[email protected]> - 0.1.3-1
- License update
- Update to new upstream release 0.1.3
* Tue Sep 17 2013 Fabian Affolter <[email protected]> - 0.1.2-1
- Update requirements
- License update
- Update to new upstream release 0.1.2
* Sun Sep 15 2013 Fabian Affolter <[email protected]> - 0.1.1-1
- New download location
- Update to new upstream release 0.1.1
* Tue Sep 03 2013 Fabian Affolter <[email protected]> - 0.1-1
- Simplified configuration file handling
- Update to new upstream release 0.1
* Tue Sep 03 2013 Fabian Affolter <[email protected]> - 0.0.5-1
- Man page added
- Add systemd macros
- Update to new upstream release 0.0.5
* Thu May 30 2013 Fabian Affolter <[email protected]> - 0.0.4-1
- Update spec file
- Update to new upstream release 0.0.4
* Wed Jun 29 2011 Fabian Affolter <[email protected]> - 0.0.1-1
- Initial spec for Fedora