256c553
%global forgeurl        https://github.com/trbs/bucky
256c553
%global commit          cda507241c8898c3a1926cae18371bce84be6d2c
256c553
%global forgesetupargs  -n bucky-%{commit}
256c553
69e5a5f
Name:           python-bucky
256c553
Version:        2.3.1
256c553
Release:        %autorelease -p
69e5a5f
Summary:        CollectD and StatsD adapter for Graphite
256c553
%forgemeta
69e5a5f
69e5a5f
License:        ASL 2.0
256c553
URL:            %{forgeurl}
69e5a5f
256c553
Source0:        %{forgesource}
69e5a5f
Source1:        python-bucky-example.conf
69e5a5f
Source2:        python-bucky-supervisord-example.conf
69e5a5f
69e5a5f
BuildArch:      noarch
6fd6b2f
bf145d2
BuildRequires:  python3-devel
bf145d2
BuildRequires:  python3-setuptools
69e5a5f
3c7cd4a
%global _description\
3c7cd4a
Bucky is a small server for collecting and translating metrics for\
3c7cd4a
Graphite. It can current collect metric data from CollectD daemons\
3c7cd4a
and from StatsD clients.
3c7cd4a
3c7cd4a
%description %_description
3c7cd4a
6fd6b2f
%package -n python3-bucky
6fd6b2f
Summary: %summary
6fd6b2f
Requires:       collectd
6fd6b2f
Requires:       python3-six
6fd6b2f
Requires:       python3-setuptools
6fd6b2f
Requires:       python3-watchdog
6fd6b2f
Requires:       python3-setproctitle
256c553
Requires:       python3-cryptography
6fd6b2f
%{?python_provide:%python_provide python3-bucky}
6fd6b2f
6fd6b2f
%description -n python3-bucky %_description
6fd6b2f
69e5a5f
%prep
256c553
%forgeautosetup
69e5a5f
%{__install} -m 644 %{SOURCE2} .
69e5a5f
69e5a5f
69e5a5f
%build
6fd6b2f
%py3_build
69e5a5f
69e5a5f
69e5a5f
%install
6fd6b2f
# Delete the Python 2 executable so that the Python 3
6fd6b2f
# version can take it's place.
6fd6b2f
rm -rf %{_bindir}/bucky
6fd6b2f
%py3_install
69e5a5f
%{__mkdir_p} %{buildroot}%{_localstatedir}/log/bucky
69e5a5f
%{__mkdir_p} %{buildroot}%{_localstatedir}/run/bucky
69e5a5f
%{__mkdir_p} %{buildroot}%{_sysconfdir}/bucky
69e5a5f
%{__install} -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/bucky/bucky.conf
69e5a5f
69e5a5f
69e5a5f
%pre
69e5a5f
getent group bucky >/dev/null || groupadd -r bucky
69e5a5f
getent passwd bucky >/dev/null || \
69e5a5f
    useradd -r -g bucky -d / \
69e5a5f
    -s /sbin/nologin -c "Bucky daemon" bucky
69e5a5f
69e5a5f
69e5a5f
%postun
69e5a5f
if [ $1 = 0 ]; then
69e5a5f
  getent passwd bucky >/dev/null && \
69e5a5f
      userdel -r bucky 2>/dev/null
69e5a5f
fi
69e5a5f
69e5a5f
 
6fd6b2f
%files -n python3-bucky
6fd6b2f
%license LICENSE
6fd6b2f
%doc THANKS README.rst python-bucky-supervisord-example.conf
69e5a5f
%{_bindir}/bucky
69e5a5f
%attr(-,bucky,bucky) %{_localstatedir}/log/bucky
69e5a5f
%attr(-,bucky,bucky) %{_localstatedir}/run/bucky
69e5a5f
%config(noreplace) %{_sysconfdir}/bucky/bucky.conf
6fd6b2f
%{python3_sitelib}/bucky/
00a29db
%{python3_sitelib}/bucky-%{version}-py%{python3_version}.egg-info
69e5a5f
69e5a5f
69e5a5f
%changelog
0cab1e5
* Sun Apr 09 2023 Jonathan Steffan <jsteffan@fedoraproject.org> - 2.3.1-0.1.20230409gitcda5072
256c553
- Update BuildRequires to python3-cryptography (RHBZ#2061786)
256c553
- Update to 2.3.1 prerelease with support for python3-cryptography
256c553
ecda8ce
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-18
ecda8ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
ecda8ce
76ae637
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-17
76ae637
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
76ae637
fa199db
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 2.3.0-16
fa199db
- Rebuilt for Python 3.11
fa199db
76649b0
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-15
76649b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
76649b0
b28fe4a
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-14
b28fe4a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
b28fe4a
0c8672d
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.3.0-13
0c8672d
- Rebuilt for Python 3.10
0c8672d
4096784
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-12
4096784
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
4096784
1298185
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-11
1298185
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
1298185
2675bdb
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.3.0-10
2675bdb
- Rebuilt for Python 3.9
2675bdb
042bec6
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-9
042bec6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
042bec6
9d98568
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.3.0-8
9d98568
- Rebuilt for Python 3.8.0rc1 (#1748018)
9d98568
6651d7a
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.3.0-7
6651d7a
- Rebuilt for Python 3.8
6651d7a
fa39625
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-6
fa39625
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
fa39625
86369bc
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-5
86369bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
86369bc
bf145d2
* Wed Oct 17 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.3.0-4
bf145d2
- Subpackage python2-bucky has been removed
bf145d2
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
bf145d2
c7b4cdf
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-3
c7b4cdf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
c7b4cdf
a840120
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.3.0-2
a840120
- Rebuilt for Python 3.7
a840120
1781294
* Fri Apr 13 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.3.0-1
6fd6b2f
- Add Python 3 subpackage and modernize spec file
6fd6b2f
- Add a missing dependency on python2/3-crypto
1781294
- Update to version 2.3.0
6fd6b2f
8501bb5
* Wed Feb 14 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.2.2-10
8501bb5
- Update Python 2 dependency declarations to new packaging standards
8501bb5
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
8501bb5
c9e0353
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.2-9
c9e0353
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c9e0353
3c7cd4a
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.2.2-8
3c7cd4a
- Python 2 binary package renamed to python2-bucky
3c7cd4a
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
3c7cd4a
045b9ee
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.2-7
045b9ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
045b9ee
c8b10e7
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.2-6
c8b10e7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
c8b10e7
8fbc49f
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.2-5
8fbc49f
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
8fbc49f
1a25eda
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.2-4
1a25eda
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
1a25eda
a3f702f
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.2-3
a3f702f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
a3f702f
7213f6a
* Sat Nov 22 2014 Jonathan Steffan <jsteffan@fedoraproject.org> - 2.2.2-2
7213f6a
- Add python-watchdog requirement
7213f6a
- Add python-setproctitle requirement
7213f6a
e6bced1
* Sat Nov 22 2014 Jonathan Steffan <jsteffan@fedoraproject.org> - 2.2.2-1
e6bced1
- Update to 2.2.2
e6bced1
2fec3a7
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.6-4
2fec3a7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2fec3a7
388b57e
* Tue Sep 24 2013 Jonathan Steffan <jsteffan@fedoraproject.org> - 0.2.6-3
388b57e
- Update requires (RHBZ#953834), adding python-setuptools
388b57e
33c8592
* Thu Sep 19 2013 Jonathan Steffan <jsteffan@fedoraproject.org> - 0.2.6-2
33c8592
- Update requires (RHBZ#953834)
33c8592
e937298
* Tue Sep 17 2013 Jonathan Steffan <jsteffan@fedoraproject.org> - 0.2.6-1
e937298
- Update to 0.2.6
e937298
f9624cd
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.4-2
f9624cd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
f9624cd
9e6149d
* Wed Mar 13 2013 Jonathan Steffan <jsteffan@fedoraproject.org> - 0.2.4-1
9e6149d
- Update to 0.2.4
9e6149d
3f3bdda
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.3-2
3f3bdda
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
3f3bdda
c8d0ee6
* Sat Nov 24 2012 Jonathan Steffan <jsteffan@fedoraproject.org> - 0.2.3-1
c8d0ee6
- Update to 0.2.3
c8d0ee6
69e5a5f
* Sat Aug 18 2012 Jonathan Steffan <jsteffan@fedoraproject.org> - 0.2.2-1
69e5a5f
- Update to 0.2.2
69e5a5f
69e5a5f
* Mon May 14 2012 Jonathan Steffan <jsteffan@fedoraproject.org> - 0.1.0-1
69e5a5f
- Initial package