Blob Blame Raw
# This package depends on automagic byte compilation
# https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation_phase_2
%global _python_bytecompile_extra 1

Name:           fleet-commander-client
Version:        0.10.2
Release:        4%{?dist}
Summary:        Fleet Commander Client

BuildArch: noarch

License: LGPLv3+ and LGPLv2+ and MIT and BSD
URL: https://raw.githubusercontent.com/fleet-commander/fc-client/master/fleet-commander-client.spec
Source0: https://github.com/fleet-commander/fc-client/releases/download/%{version}/%{name}-%{version}.tar.xz

BuildRequires: python2-devel
BuildRequires: pygobject2
BuildRequires: dconf

%if 0%{?rhel} && 0%{?rhel} < 8
BuildRequires: pygobject3
BuildRequires: dbus-python
BuildRequires: python-dbusmock
%endif

%if 0%{?fedora} >=24 && 0%{?fedora} <= 27
BuildRequires: python2-gobject
BuildRequires: dbus-python
BuildRequires: python-dbusmock
%endif

%if 0%{?fedora} >= 28
BuildRequires: python2-gobject
BuildRequires: python2-dbus
BuildRequires: python2-dbusmock
%endif

Requires: NetworkManager
Requires: NetworkManager-libnm
Requires: systemd
Requires: dconf
Requires: python2
Requires: pygobject2
Requires(preun): systemd

%if 0%{?rhel} && 0%{?rhel} < 8
BuildRequires: pygobject3
BuildRequires: dbus-python
%endif

%if 0%{?fedora} >=24 && 0%{?fedora} <= 27
BuildRequires: python2-gobject
BuildRequires: dbus-python
%endif

%if 0%{?fedora} >= 28
BuildRequires: python2-gobject
BuildRequires: python2-dbus
%endif


%description
Profile data retriever for Fleet Commander client hosts. Fleet Commander is an
application that allows you to manage the desktop configuration of a large
network of users and workstations/laptops.

%prep
%setup -q

%build
%configure --with-systemdsystemunitdir=%{_unitdir}
%make_build

%install
%make_install

%preun
%systemd_preun fleet-commander-client.service

%post
%systemd_post fleet-commander-client.service

%postun
%systemd_postun_with_restart fleet-commander-client.service

%files
%license
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/python
%dir %{_datadir}/%{name}/python/fleetcommanderclient
%attr(644, -, -) %{_datadir}/%{name}/python/fleetcommanderclient/*.py
%attr(644, -, -) %{_datadir}/%{name}/python/fleetcommanderclient/*.py[co]
%dir %{_datadir}/%{name}/python/fleetcommanderclient/configadapters
%attr(644, -, -) %{_datadir}/%{name}/python/fleetcommanderclient/configadapters/*.py
%attr(644, -, -) %{_datadir}/%{name}/python/fleetcommanderclient/configadapters/*.py[co]
%config(noreplace) %{_sysconfdir}/xdg/%{name}.conf
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.freedesktop.FleetCommanderClient.conf
%{_unitdir}/fleet-commander-client.service
%{_datadir}/dbus-1/system-services/org.freedesktop.FleetCommanderClient.service

%changelog
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

* Wed Apr 11 2018 Oliver Gutierrez <ogutierrez@redhat.com> - 0.10.2-2
- Fixed building dependencies

* Wed Apr 11 2018 Oliver Gutierrez <ogutierrez@redhat.com> - 0.10.2-1
- Updated package for release 0.10.2

* Thu Mar 01 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.10.0-4
- Update Python 2 dependency declarations to new packaging standards
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)

* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

* Mon Jul 10 2017 Oliver Gutierrez <ogutierrez@redhat.com> - 0.10.0-1
- Updated package for release 0.10.0

* Mon Jul 10 2017 Oliver Gutierrez <ogutierrez@redhat.com> - 0.9.1-1
- Code migration to Python
- Updated package for release 0.9.1

* Fri Sep 16 2016 Alberto Ruiz <aruizrui@redhat.com> - 0.8.0-1
- new version

* Wed Feb 03 2016 Alberto Ruiz <aruiz@redhat.com> - 0.7.0-2
- Fix documentation string

* Tue Jan 19 2016 Alberto Ruiz <aruiz@redhat.com> - 0.7.0-1
- Update package for 0.7.0

* Fri Jan 15 2016 Alberto Ruiz <aruiz@redhat.com> - 0.3.0-1
- Initial RPM package