Radek Novacek a483cb
Name:           virt-who
Radek Novacek 375ced
Version:        0.8
3dcc7a
Release:        12%{?dist}
Radek Novacek a483cb
Summary:        Agent for reporting virtual guest IDs to subscription-manager
Radek Novacek a483cb
Radek Novacek a483cb
License:        GPLv2+
Radek Novacek a483cb
URL:            https://fedorahosted.org/virt-who/
Radek Novacek a483cb
Source0:        https://fedorahosted.org/releases/v/i/virt-who/%{name}-%{version}.tar.gz
Radek Novacek a483cb
Radek Novacek a483cb
BuildArch:      noarch
Radek Novacek a483cb
BuildRequires:  python2-devel
Radek Novacek a483cb
Requires:       libvirt-python
Radek Novacek a483cb
Requires:       libvirt
Radek Novacek 375ced
# python-rhsm 1.0.4 contains new module for reading certificates
Radek Novacek 375ced
Requires:       python-rhsm >= 1.0.4
Radek Novacek 375ced
# python-suds is required for vSphere support
Radek Novacek 375ced
Requires:       python-suds
Radek Novacek 375ced
# m2crypto is required for Hyper-V support
Radek Novacek 375ced
Requires:       m2crypto
Radek Novacek 375ced
# for journal logging
Radek Novacek 375ced
Requires:       systemd-python
Radek Novacek 375ced
# systemd stuff
Radek Novacek 375ced
BuildRequires:  systemd
Radek Novacek 375ced
Requires(post): systemd
Radek Novacek 375ced
Requires(preun): systemd
Radek Novacek 375ced
Requires(postun): systemd
Radek Novacek 375ced
Radek Novacek 375ced
# Add Hyper-V support
Radek Novacek 375ced
Patch0:         virt-who-0.8-add-hyperv-support.patch
Radek Novacek 375ced
# Create PID file ASAP to prevent service stop fails
Radek Novacek 375ced
Patch1:         virt-who-0.8-create-pid-file-asap.patch
Radek Novacek 375ced
# Help and manpage improvements
Radek Novacek 375ced
Patch2:         virt-who-0.8-help-and-manpage-improvements.patch
Radek Novacek 375ced
# Fix adding https:// to ESX url
Radek Novacek 375ced
Patch3:         virt-who-0.8-fix-adding-https-to-esx-url.patch
Radek Novacek 375ced
# systemd support
Radek Novacek 375ced
Patch4:         virt-who-0.8-systemd.patch
Radek Novacek 375ced
# logging using journal
Radek Novacek 375ced
Patch5:         virt-who-0.8-journal-logging.patch
Radek Novacek 8d202c
# Increase ESXi compatibility
Radek Novacek 8d202c
Patch6:         virt-who-0.8-exsi-compatibility.patch
Radek Novacek a483cb
Radek Novacek a483cb
%description
Radek Novacek a483cb
Agent that collects information about virtual guests present in the system and
Radek Novacek a483cb
report them to the subscription manager.
Radek Novacek a483cb
Radek Novacek a483cb
%prep
Radek Novacek a483cb
%setup -q
Radek Novacek 375ced
%patch0 -p1
Radek Novacek 375ced
%patch1 -p1
Radek Novacek 375ced
%patch2 -p1
Radek Novacek 375ced
%patch3 -p1
Radek Novacek 375ced
%patch4 -p1
Radek Novacek 375ced
%patch5 -p1
Radek Novacek 8d202c
%patch6 -p1
Radek Novacek a483cb
Radek Novacek a483cb
%build
Radek Novacek a483cb
Radek Novacek a483cb
Radek Novacek a483cb
%install
Radek Novacek a483cb
make DESTDIR=$RPM_BUILD_ROOT install
Radek Novacek a483cb
Radek Novacek a483cb
# Don't run test suite in check section, because it need the system to be
Radek Novacek a483cb
# registered to subscription-manager server
Radek Novacek a483cb
Radek Novacek a483cb
Radek Novacek 375ced
%post
Radek Novacek 375ced
%systemd_post virt-who.service
Radek Novacek 375ced
Radek Novacek 375ced
%preun
Radek Novacek 375ced
%systemd_preun virt-who.service
Radek Novacek 375ced
Radek Novacek 375ced
%postun
Radek Novacek 375ced
%systemd_postun_with_restart virt-who.service 
Radek Novacek a483cb
Radek Novacek a483cb
%files
Radek Novacek 375ced
%doc README README.hyperv LICENSE
Radek Novacek a483cb
%{_bindir}/virt-who
Radek Novacek a483cb
%{_datadir}/virt-who/
Radek Novacek 375ced
%{_unitdir}/virt-who.service
Radek Novacek 6b1618
%attr(600, root, root) %config(noreplace) %{_sysconfdir}/sysconfig/virt-who
Radek Novacek 375ced
%{_mandir}/man8/virt-who.8.gz
Radek Novacek a483cb
Radek Novacek a483cb
Radek Novacek a483cb
%changelog
3dcc7a
* Fri Jun 19 2015 Fedora Release Engineering  - 0.8-12
3dcc7a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
3dcc7a
Radek Novacek 6b1618
* Tue Feb 03 2015 Radek Novacek  0.8-11
Radek Novacek 6b1618
- Fix permission of /etc/sysconfig/virt-who file
Radek Novacek 6b1618
- Resolves: #1186034
Radek Novacek 6b1618
fb0a63
* Sun Jun 08 2014 Fedora Release Engineering  - 0.8-10
fb0a63
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
fb0a63
2d4137
* Sun Aug 04 2013 Fedora Release Engineering  - 0.8-9
2d4137
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2d4137
Radek Novacek 8d202c
* Fri Jun 14 2013 Radek Novacek  0.8-8
Radek Novacek 8d202c
- Increase ESXi compatibility
Radek Novacek 8d202c
- Resolves: rhbz#923760
Radek Novacek 8d202c
90b601
* Fri Feb 15 2013 Fedora Release Engineering  - 0.8-7
90b601
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
90b601
Radek Novacek 375ced
* Tue Nov 27 2012 Radek Novacek  0.8-6
Radek Novacek 375ced
- Add systemd support
Radek Novacek 375ced
- specfile cleanup
Radek Novacek 375ced
Radek Novacek 375ced
* Thu Oct 25 2012 Radek Novacek  0.8-5
Radek Novacek 375ced
- Fix adding https:// to ESX url
Radek Novacek 375ced
Radek Novacek 375ced
* Wed Oct 24 2012 Radek Novacek  0.8-4
Radek Novacek 375ced
- Help and manpage improvements
Radek Novacek 375ced
Radek Novacek 375ced
* Wed Oct 17 2012 Radek Novacek  0.8-3
Radek Novacek 375ced
- Fix bugs in Hyper-V support (patch rebased)
Radek Novacek 375ced
- Create PID file ASAP to prevent service stop fails
Radek Novacek 375ced
Radek Novacek 375ced
* Thu Oct 11 2012 Radek Novacek  0.8-2
Radek Novacek 375ced
- Add support for accessing Hyper-V
Radek Novacek 375ced
Radek Novacek 375ced
* Wed Sep 26 2012 Radek Novacek  0.8-1
Radek Novacek 375ced
- Upstream version 0.8
Radek Novacek 375ced
- RFE: command line improvements
Radek Novacek 375ced
- Add support for accessing RHEV-M
Radek Novacek 375ced
- Fix printing tracebacks on terminal
Radek Novacek 375ced
Radek Novacek 375ced
* Thu Apr 26 2012 Radek Novacek  0.6-6
Radek Novacek 375ced
- Handle unknown libvirt event properly
Radek Novacek 375ced
Radek Novacek 375ced
* Wed Apr 18 2012 Radek Novacek  0.6-5
Radek Novacek 375ced
- Enable debug output to be written to stderr
Radek Novacek 375ced
- Log guest list to log even in non-debug mode
Radek Novacek 375ced
Radek Novacek 375ced
* Tue Apr 17 2012 Radek Novacek  0.6-4
Radek Novacek 375ced
- Fix regression in double fork patch
Radek Novacek 375ced
Radek Novacek 375ced
* Wed Mar 28 2012 Radek Novacek  0.6-3
Radek Novacek 375ced
- Do double fork when daemon is starting
Radek Novacek 375ced
Radek Novacek 375ced
* Fri Mar 09 2012 Radek Novacek  0.6-2
Radek Novacek 375ced
- Add python-suds require
Radek Novacek 375ced
- Requires python-rhsm >= 0.98.6
Radek Novacek 375ced
Radek Novacek 375ced
* Thu Mar 01 2012 Radek Novacek  0.6-1
Radek Novacek 375ced
- Rebase to virt-who-0.6
Radek Novacek 375ced
Radek Novacek 375ced
* Wed Oct 12 2011 Radek Novacek  0.3-3
Radek Novacek 375ced
- Use updateConsumer API instead of updateConsumerFact (fixes limit 255 chars of uuid list)
Radek Novacek 375ced
- Requires python-rhsm >= 0.96.13 
Radek Novacek 375ced
Radek Novacek 375ced
* Wed Sep 07 2011 Radek Novacek  - 0.3-2
Radek Novacek 375ced
- Add upstream patch that prevents failure when server not implements /status/ command
Radek Novacek 375ced
Radek Novacek 375ced
* Thu Sep 01 2011 Radek Novacek  - 0.3-1
Radek Novacek 375ced
- Add initscript and configuration file
bbd815
Radek Novacek 375ced
* Mon Aug 22 2011 Radek Novacek  - 0.2-2
Radek Novacek 375ced
- Bump release because of tagging in wrong branch
01adfa
Radek Novacek a483cb
* Mon Aug 22 2011 Radek Novacek  - 0.2-1
Radek Novacek a483cb
- Update to upstream version 0.2
Radek Novacek a483cb
- Add Requires: libvirt
Radek Novacek a483cb
Radek Novacek a483cb
* Fri Aug 19 2011 Radek Novacek  - 0.1-2
Radek Novacek a483cb
- Add BuildRoot tag (the package will be in RHEL5)
Radek Novacek a483cb
Radek Novacek a483cb
* Wed Aug 10 2011 Radek Novacek  - 0.1-1
Radek Novacek a483cb
- initial import