18b471e
Name:           pcp2pdf
18b471e
Version:        0.3
aab46a4
Release:        27%{?dist}
18b471e
Summary:        Utility to create PDF reports from PCP archives
18b471e
18b471e
License:        GPLv2+
18b471e
URL:            https://github.com/performancecopilot/pcp2pdf
18b471e
Source0:        https://github.com/performancecopilot/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
18b471e
Patch0:         fix-spurious-python-interpreter.patch
18b471e
18b471e
Requires:       python3-reportlab
18b471e
Requires:       python3-matplotlib
18b471e
Requires:       python3-pcp
18b471e
18b471e
BuildArch:      noarch
18b471e
BuildRequires:  python3-devel
5118815
BuildRequires:  python3-setuptools
18b471e
18b471e
%description
18b471e
Utility to create PDF reports from Performance Co-Pilot archives. It allows to
18b471e
choose sampling rate, custom graphs, custom labels and selection of which
18b471e
metrics should appear in the report.
18b471e
18b471e
%prep
18b471e
%setup -q
18b471e
%patch0 -p1 -b .orig
18b471e
18b471e
%build
18b471e
%{__python3} setup.py build
18b471e
18b471e
%install
18b471e
%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
18b471e
install -d $RPM_BUILD_ROOT%{_mandir}/man1
18b471e
install -p -m 0644 man/pcp2pdf.1 $RPM_BUILD_ROOT%{_mandir}/man1
18b471e
# FIXME: bash completion is not yet there
18b471e
rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
18b471e
18b471e
%files
18b471e
%license COPYING
18b471e
%doc README.md
18b471e
%config(noreplace) %{_sysconfdir}/pcp/pcp2pdf
18b471e
# Note that when this lands it should go in {_datadir}/bash-completion/completions/
18b471e
# and not in {_sysconfdir}/bash_completion.d
18b471e
%{_bindir}/%{name}
18b471e
%{_mandir}/*/*
9631b77
%{_datadir}/%{name}/*
18b471e
# For noarch packages: sitelib
18b471e
%{python3_sitelib}/*
18b471e
18b471e
18b471e
%changelog
aab46a4
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-27
aab46a4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
aab46a4
6f20adc
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.3-26
6f20adc
- Rebuilt for Python 3.11
6f20adc
558d9d3
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-25
558d9d3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
558d9d3
d00b498
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-24
d00b498
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
d00b498
67ac7d8
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.3-23
67ac7d8
- Rebuilt for Python 3.10
67ac7d8
66120bd
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-22
66120bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
66120bd
5118815
* Mon Oct 05 2020 Michele Baldessari <michele@acksyn.org> - 0.3-21
5118815
- Add python3-setuptools BR
5118815
2a16d0f
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-20
2a16d0f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2a16d0f
bb29b4d
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.3-19
bb29b4d
- Rebuilt for Python 3.9
bb29b4d
f2a892f
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-18
f2a892f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
f2a892f
39ebb1f
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.3-17
39ebb1f
- Rebuilt for Python 3.8.0rc1 (#1748018)
39ebb1f
be55c73
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.3-16
be55c73
- Rebuilt for Python 3.8
be55c73
77e8d12
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-15
77e8d12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
77e8d12
215c49d
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-14
215c49d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
215c49d
5510ad0
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-13
5510ad0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
5510ad0
d236f9d
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.3-12
d236f9d
- Rebuilt for Python 3.7
d236f9d
c94761c
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-11
c94761c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c94761c
fb01539
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-10
fb01539
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
fb01539
5c4e8fe
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-9
5c4e8fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
5c4e8fe
033d682
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.3-8
033d682
- Rebuild for Python 3.6
033d682
c50ffa5
* Tue Sep 27 2016 Lukas Berk <lberk@redhat.com> - 0.3-7
c50ffa5
- Rebuild for broken python3-matplotlib dependency
c50ffa5
d70d1d4
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-6
d70d1d4
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
d70d1d4
ccf01ed
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-5
ccf01ed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
ccf01ed
08a5f12
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-4
08a5f12
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
08a5f12
4f44059
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-3
4f44059
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
4f44059
9631b77
* Fri Jun 05 2015 Michele Baldessari <michele@acksyn.org> - 0.3-3
9631b77
- Own /usr/share/pcp2pdf
18b471e
* Wed Jun 03 2015 Michele Baldessari <michele@acksyn.org> - 0.3-2
18b471e
- Incorporate suggestions from Fedora review (remove buildroot, defattr,
18b471e
  remove a spurios /usr/bin/python line, do not use macros when not needed) 
18b471e
* Mon Jun 01 2015 Michele Baldessari <michele@acksyn.org> - 0.3-1
18b471e
- New upstream
18b471e
* Mon Mar 02 2015 Michele Baldessari <michele@redhat.com> - 0.2-1
18b471e
- New upstream
18b471e
* Mon Mar 02 2015 Michele Baldessari <michele@redhat.com> - 0.1-3
18b471e
- Fix URLs
18b471e
* Mon Mar 02 2015 Michele Baldessari <michele@redhat.com> - 0.1-2
18b471e
- Port to Python 3
18b471e
* Tue Oct 28 2014 Michele Baldessari <michele@redhat.com> - 0.1-1
18b471e
- Initial release