Blob Blame History Raw
Summary: Initial system configuration utility
Name: initial-setup
Version: 0.2
Release: 1%{?dist}
BuildArch: noarch

# This is a Red Hat maintained package which is specific to
# our distribution.
# The source is thus available only from within this SRPM
# or via direct git checkout:
# git clone git://
Source0: %{name}-%{version}.tar.gz

License: GPLv2+
Group: System Environment/Base
BuildRequires: gettext
BuildRequires: python2-devel
BuildRequires: python-setuptools
BuildRequires: python-nose
BuildRequires: systemd-units
BuildRequires: gtk3-devel
BuildRequires: gtk-doc
BuildRequires: gobject-introspection-devel
BuildRequires: glade-devel
BuildRequires: pygobject3
BuildRequires: python-babel
BuildRequires: anaconda >= 18.40
Requires: gtk3
Requires: python
Requires: anaconda >= 18.40
Requires(post): systemd-units
Requires(preun): systemd-units
Requires(postun): systemd-units
Requires: firstboot(windowmanager)
Requires: libreport-python

The initial-setup utility runs after installation.  It guides the user through
a series of steps that allows for easier configuration of the machine.

%setup -q

# remove upstream egg-info
rm -rf *.egg-info

%{__python} build
%{__python} compile_catalog -D %{name} -d locale

# Check is disabled until Gtk bug rhbz#902401 is resolved
#%{__python} nosetests

%{__python} install --skip-build --root $RPM_BUILD_ROOT
%find_lang %{name}

if [ $1 -ne 2 -a ! -f /etc/sysconfig/initial-setup ]; then
  if [ "$platform" = "s390" -o "$platform" = "s390x" ]; then
    echo "RUN_INITIAL_SETUP=YES" > /etc/sysconfig/initial-setup
    %systemd_post initial-setup-graphical.service
    %systemd_post initial-setup-text.service
    %systemd_post initial-setup-xserver.service

%systemd_preun initial-setup-graphical.service
%systemd_preun initial-setup-text.service
%systemd_preun initial-setup-xserver.service

%systemd_postun_with_restart initial-setup-graphical.service
%systemd_postun_with_restart initial-setup-text.service
%systemd_postun_with_restart initial-setup-xserver.service

%files -f %{name}.lang
%dir %{_datadir}/initial-setup/
%dir %{_datadir}/initial-setup/modules/


%ifarch s390 s390x

* Tue Feb 13 2013 Martin Sivak <> 0.2-1
- Updates for package review
- Firstboot-windowmanager script

* Tue Feb 13 2013 Martin Sivak <> 0.1-3
- Updates for package review

* Tue Jan 22 2013 Martin Sivak <> 0.1-2
- Updates for package review

* Tue Nov 06 2012 Martin Sivak <> 0.1-1
- Initial release