7132968
Summary: Initial system configuration utility
7132968
Name: initial-setup
7132968
URL: http://fedoraproject.org/wiki/FirstBoot
087a6c6
Version: 0.3
7132968
Release: 1%{?dist}
7132968
BuildArch: noarch
7132968
7132968
# This is a Red Hat maintained package which is specific to
7132968
# our distribution.
7132968
#
7132968
# The source is thus available only from within this SRPM
7132968
# or via direct git checkout:
7132968
# git clone git://fedorapeople.org/home/fedora/msivak/public_git/firstboot2.git
7132968
Source0: %{name}-%{version}.tar.gz
7132968
7132968
License: GPLv2+
7132968
Group: System Environment/Base
7132968
BuildRequires: gettext
7132968
BuildRequires: python2-devel
7132968
BuildRequires: python-setuptools
7132968
BuildRequires: python-nose
7132968
BuildRequires: systemd-units
7132968
BuildRequires: gtk3-devel
7132968
BuildRequires: gtk-doc
7132968
BuildRequires: gobject-introspection-devel
7132968
BuildRequires: glade-devel
7132968
BuildRequires: pygobject3
7132968
BuildRequires: python-babel
087a6c6
BuildRequires: anaconda >= 19.11
7132968
Requires: gtk3
7132968
Requires: python
087a6c6
Requires: anaconda >= 19.11
7132968
Requires(post): systemd-units
7132968
Requires(preun): systemd-units
7132968
Requires(postun): systemd-units
7132968
Requires: firstboot(windowmanager)
7132968
Requires: libreport-python
7132968
7132968
%description
7132968
The initial-setup utility runs after installation.  It guides the user through
7132968
a series of steps that allows for easier configuration of the machine.
7132968
7132968
%prep
7132968
%setup -q
7132968
7132968
# remove upstream egg-info
7132968
rm -rf *.egg-info
7132968
7132968
%build
7132968
%{__python} setup.py build
7132968
%{__python} setup.py compile_catalog -D %{name} -d locale
7132968
7132968
# Check is disabled until Gtk bug rhbz#902401 is resolved
7132968
#%check
7132968
#%{__python} setup.py nosetests
7132968
7132968
%install
7132968
%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
7132968
%find_lang %{name}
7132968
7132968
%post
7132968
if [ $1 -ne 2 -a ! -f /etc/sysconfig/initial-setup ]; then
7132968
  platform="$(arch)"
7132968
  if [ "$platform" = "s390" -o "$platform" = "s390x" ]; then
7132968
    echo "RUN_INITIAL_SETUP=YES" > /etc/sysconfig/initial-setup
7132968
  else
7132968
    %systemd_post initial-setup-graphical.service
7132968
    %systemd_post initial-setup-text.service
7132968
  fi
7132968
fi
7132968
7132968
%preun
7132968
%systemd_preun initial-setup-graphical.service
7132968
%systemd_preun initial-setup-text.service
7132968
7132968
%postun
7132968
%systemd_postun_with_restart initial-setup-graphical.service
7132968
%systemd_postun_with_restart initial-setup-text.service
7132968
7132968
%files -f %{name}.lang
7132968
%doc COPYING README
7132968
%dir %{_datadir}/initial-setup/
7132968
%dir %{_datadir}/initial-setup/modules/
7132968
%{python_sitelib}/*
7132968
%{_bindir}/initial-setup
7132968
%{_bindir}/firstboot-windowmanager
7132968
%{_datadir}/initial-setup/modules/*
7132968
7132968
%{_unitdir}/initial-setup-graphical.service
7132968
%{_unitdir}/initial-setup-text.service
7132968
7132968
%ifarch s390 s390x
7132968
%{_sysconfdir}/profile.d/initial-setup.sh
7132968
%{_sysconfdir}/profile.d/initial-setup.csh
7132968
%endif
7132968
7132968
7132968
%changelog
087a6c6
* Wed Mar 13 2013 Martin Sivak <msivak@euryale.brq.redhat.com> - 0.3-1
087a6c6
- Use updated Anaconda API
087a6c6
- Fix systemd units
087a6c6
- Add localization spokes to TUI
087a6c6
7132968
* Tue Feb 13 2013 Martin Sivak <msivak@redhat.com> 0.2-1
7132968
- Updates for package review
7132968
- Firstboot-windowmanager script
7132968
7132968
* Tue Feb 13 2013 Martin Sivak <msivak@redhat.com> 0.1-3
7132968
- Updates for package review
7132968
7132968
* Tue Jan 22 2013 Martin Sivak <msivak@redhat.com> 0.1-2
7132968
- Updates for package review
7132968
7132968
* Tue Nov 06 2012 Martin Sivak <msivak@redhat.com> 0.1-1
7132968
- Initial release