Blame SPECS/firstboot.spec

9bfde3
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
9bfde3
9bfde3
Summary: Initial system configuration utility
9bfde3
Name: firstboot
9bfde3
URL: http://fedoraproject.org/wiki/FirstBoot
6cc3d3
Version: 19.9
6cc3d3
Release: 1%{?dist}
9bfde3
# This is a Red Hat maintained package which is specific to
9bfde3
# our distribution.  Thus the source is only available from
9bfde3
# within this srpm.
9bfde3
Source0: %{name}-%{version}.tar.bz2
9bfde3
9bfde3
License: GPLv2+
9bfde3
Group: System Environment/Base
9bfde3
ExclusiveOS: Linux
9bfde3
BuildArch: noarch
9bfde3
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
9bfde3
BuildRequires: gettext
9bfde3
BuildRequires: python-devel, python-setuptools-devel
9bfde3
BuildRequires: systemd-units
9bfde3
Requires: pygtk2, python
9bfde3
Requires: python-meh
9bfde3
Requires(post): systemd-units systemd-sysv chkconfig
9bfde3
Requires(preun): systemd-units
9bfde3
Requires(postun): systemd-units
9bfde3
Requires: firstboot(windowmanager)
9bfde3
Requires: libreport-python
9bfde3
9bfde3
%define debug_package %{nil}
9bfde3
9bfde3
Obsoletes: firstboot-tui < 1.90-1
9bfde3
9bfde3
%description
9bfde3
The firstboot utility runs after installation.  It guides the user through
9bfde3
a series of steps that allows for easier configuration of the machine.
9bfde3
9bfde3
%prep
9bfde3
%setup -q
9bfde3
9bfde3
%build
9bfde3
9bfde3
%install
9bfde3
rm -rf %{buildroot}
9bfde3
make DESTDIR=%{buildroot} SITELIB=%{python_sitelib} install
9bfde3
%find_lang %{name}
9bfde3
9bfde3
%clean
9bfde3
rm -rf %{buildroot}
9bfde3
9bfde3
%post
9bfde3
if [ $1 -ne 2 -a ! -f /etc/sysconfig/firstboot ]; then
9bfde3
  platform="$(arch)"
9bfde3
  if [ "$platform" = "s390" -o "$platform" = "s390x" ]; then
9bfde3
    echo "RUN_FIRSTBOOT=YES" > /etc/sysconfig/firstboot
9bfde3
  else
9bfde3
    %systemd_post firstboot-graphical.service
9bfde3
  fi
9bfde3
fi
9bfde3
9bfde3
%preun
9bfde3
if [ $1 = 0 ]; then
9bfde3
  rm -rf /usr/share/firstboot/*.pyc
9bfde3
  rm -rf /usr/share/firstboot/modules/*.pyc
9bfde3
fi
9bfde3
%systemd_preun firstboot-graphical.service
9bfde3
9bfde3
%postun
9bfde3
%systemd_postun_with_restart firstboot-graphical.service
9bfde3
9bfde3
%triggerun -- firstboot < 1.117
9bfde3
%{_bindir}/systemd-sysv-convert --save firstboot > /dev/null 2>&1 ||:
9bfde3
/bin/systemctl enable firstboot-graphical.service > /dev/null 2>&1
9bfde3
/sbin/chkconfig --del firstboot > /dev/null 2>&1 || :
9bfde3
/bin/systemctl try-restart firstboot-graphical.service > /dev/null 2>&1 || :
9bfde3
9bfde3
%files -f %{name}.lang
9bfde3
%defattr(-,root,root,-)
9bfde3
%dir %{_datadir}/firstboot/
9bfde3
%dir %{_datadir}/firstboot/modules/
9bfde3
%dir %{_datadir}/firstboot/themes/
9bfde3
%dir %{_datadir}/firstboot/themes/default
9bfde3
%{python_sitelib}/*
9bfde3
%{_sbindir}/firstboot
9bfde3
%{_datadir}/firstboot/themes/default/*
9bfde3
%{_unitdir}/firstboot-graphical.service
9bfde3
%ifarch s390 s390x
9bfde3
%dir %{_sysconfdir}/profile.d
9bfde3
%{_sysconfdir}/profile.d/firstboot.sh
9bfde3
%{_sysconfdir}/profile.d/firstboot.csh
9bfde3
%endif
9bfde3
9bfde3
9bfde3
%changelog
6cc3d3
* Mon Mar 03 2014 Martin Kolman <mkolman@redhat.com> 19.9-1
6cc3d3
- Update translations (mkolman@redhat.com)
6cc3d3
  Related: rhbz#1030331
6cc3d3
6cc3d3
* Mon Feb 24 2014 Martin Kolman <mkolman@redhat.com> 19.8-1
6cc3d3
- Update translations (mkolman@redhat.com)
6cc3d3
  Resolves: rhbz#1030331
6cc3d3
6cc3d3
* Tue Feb 11 2014 Vratislav Podzimek <vpodzime@redhat.com> 19.7-1
6cc3d3
- Update translations (vpodzime@redhat.com)
6cc3d3
  Resolves: rhbz#1030331
6cc3d3
6cc3d3
* Tue Jan 21 2014 Vratislav Podzimek <vpodzime@redhat.com> 19.6-1
6cc3d3
- Exit the main process correctly even if reboot is required (vpodzime)
6cc3d3
  Resolves: rhbz#903579
6cc3d3
  Resolves: rhbz#1042666
6cc3d3
- Translate the error message if not run as root (vpodzime)
6cc3d3
  Related: rhbz#1044339
6cc3d3
6cc3d3
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 19.5-2
6cc3d3
- Mass rebuild 2013-12-27
6cc3d3
6cc3d3
* Mon Dec 09 2013 Vratislav Podzimek <vpodzime@redhat.com> 19.5-1
6cc3d3
- Fix missing Loader._needs_network call (alikins)
6cc3d3
  Resolves: rhbz#1033696
6cc3d3
9bfde3
* Thu Nov 07 2013 Vratislav Podzimek <vpodzime@redhat.com> 19.4-2
9bfde3
- Don't panic if there are no modules found (vpodzime)
9bfde3
  Resolves: rhbz#1026941
9bfde3
9bfde3
* Tue Aug 27 2013 Vratislav Podzimek <vpodzime@redhat.com> 19.3-1
9bfde3
- Run after the initial-setup-graphical.service (if enabled) (vpodzime)
9bfde3
- ABRT now uses a different directory for problem data (#952633) (vpodzime)
9bfde3
- Make firstboot a noarch package (#921509) (vpodzime)
9bfde3
- Use /usr/bin/python instead of /usr/bin/env python (#987016) (vpodzime)
9bfde3
- Remove an unused import causing tracebacks (#965748) (vpodzime)
9bfde3
9bfde3
* Wed Mar 13 2013 Martin Sivak <msivak@redhat.com> 19.2-1
9bfde3
- Fix a typo in variable name (sherr@redhat.com)
9bfde3
- Fix one two year old refactoring leftover.. (msivak@redhat.com)
9bfde3
9bfde3
* Thu Feb 28 2013 Martin Sivak <msivak@redhat.com> 19.1-1
9bfde3
- Remove all modules that are going to be provided by anaconda and initial-
9bfde3
  setup (msivak@redhat.com)
9bfde3
9bfde3
* Fri Jan 25 2013 Martin Sivak <msivak@redhat.com> 18.7-1
9bfde3
- Use proper systemd macro for unit files location (#883995) (msivak@redhat.com)
9bfde3
9bfde3
* Tue Nov 06 2012 Martin Sivak <msivak@redhat.com> 18.6-1
9bfde3
- Add support for MATE's window manager (#873342) (msivak@redhat.com)
9bfde3
9bfde3
* Thu Oct 18 2012 Martin Sivak <msivak@redhat.com> 18.5-1
9bfde3
- Add interlingua localization (nikka@fedoraproject.org)
9bfde3
9bfde3
* Wed Sep 19 2012 Martin Sivak <msivak@redhat.com> 18.4-1
9bfde3
- Scriptlets replaced with new systemd macros (#850112) (vpavlin@redhat.com)
9bfde3
- When creating first user in system with no root, force the user to be admin
9bfde3
  (#856194) (msivak@redhat.com)
9bfde3
9bfde3
* Wed Sep 12 2012 Martin Sivak <msivak@redhat.com> 18.3-1
9bfde3
- patch systemd service to refer to display-manager.service
9bfde3
  not prefdm.service (awilliam@redhat.com)
9bfde3
- Make the created user administrator by default (#856194)
9bfde3
9bfde3
* Thu Aug 23 2012 Brian C. Lane <bcl@redhat.com> 18.2-1
9bfde3
- Fix traceback when /etc/sysconfig/i18n doesn't exist (#849967)
9bfde3
  (vpodzime@redhat.com)
9bfde3
- Don't crash firstboot with python-meh's Gtk3 UI (#849118)
9bfde3
  (vpodzime@redhat.com)
9bfde3
9bfde3
* Tue Jun 26 2012 Martin Gracik <mgracik@redhat.com> 18.1-1
9bfde3
- Change archive type to gz (mgracik@redhat.com)
9bfde3
9bfde3
* Tue Jun 26 2012 Martin Gracik <mgracik@redhat.com> 18.0-1
9bfde3
- new package built with tito
9bfde3
9bfde3
* Thu May 17 2012 Brian C. Lane <bcl@redhat.com> 17.3-1
9bfde3
- Let WM place the window (#821077) (bcl)
9bfde3
- Fix no modules error handling (mgracik)
9bfde3
- Check if firstboot is run under root (#816628) (mgracik)
9bfde3
9bfde3
* Fri Apr 20 2012 Martin Gracik <mgracik@redhat.com> 17.2-1
9bfde3
- Get the dimensions of the actual monitor (#800662)
9bfde3
- Add the admin user to dialout group (#771918)
9bfde3
9bfde3
* Wed Apr 11 2012 Martin Gracik <mgracik@redhat.com> 17.1-1
9bfde3
- Use -merge for xrdb (#808919)
9bfde3
- Translation updates
9bfde3
- Improve module loading (#797896)
9bfde3
- Load the screens before making the sidebar
9bfde3
- Use pwquality for password strength checking
9bfde3
9bfde3
* Thu Mar 01 2012 Martin Gracik <mgracik@redhat.com> 17.0-1
9bfde3
- Disable minimize and maximize buttons on s-c-u (#747829)
9bfde3
- Change priority of create_user module (#750527)
9bfde3
- Clear the user entry text fields (#736193)
9bfde3
- firstboot-text.service no longer exists (#750195)
9bfde3
- Do not run firstboot in text mode automatically (#737118)
9bfde3
- Relabel reused home directory (#750090)
9bfde3
- Do not catch exceptions from system-config-date (#737882)
9bfde3
- Add a firstboot-text wrapper (#734306)
9bfde3
- Translation updates (#734305)
9bfde3
9bfde3
* Tue Jul 26 2011 Martin Gracik <mgracik@redhat.com> 16.1-2
9bfde3
- Enable firstboot after install (#725566)
9bfde3
9bfde3
* Mon Jul 25 2011 Martin Gracik <mgracik@redhat.com> 16.1-1
9bfde3
- Don't run firstboot if it's set in /etc/sysconfig/firstboot (#723526)
9bfde3
- Copy skel files even if the home directory exists (#598957)
9bfde3
9bfde3
* Tue Jul 19 2011 Martin Gracik <mgracik@redhat.com> 16.0-1
9bfde3
- Honor the tty set by console kernel argument (#701648)
9bfde3
- Translation updates
9bfde3
9bfde3
* Tue Jul 19 2011 Martin Gracik <mgracik@redhat.com> 1.118-1
9bfde3
- Get UID_MIN from /etc/login.defs (#717113)
9bfde3
- Drop SysV support (Jóhann B. Guðmundsson) (#714668)
9bfde3
- Fix firstboot-text.service (#696320)
9bfde3
- Fix firstboot for s390 architecture (#463564)
9bfde3
- Set the theme directory
9bfde3
- Changes to systemd service files
9bfde3
- Save exception to a file
9bfde3
- Remove init file from the spec
9bfde3
- New systemd service files
9bfde3
- Remove old init from setup
9bfde3
- Remove the old init
9bfde3
- Use the new loader in moduleset
9bfde3
- Rewritten the firstboot executable
9bfde3
- Added reconfig property to module and moduleset
9bfde3
- Added new constants
9bfde3
- Rewritten frontend
9bfde3
- Rewritten loader
9bfde3
- Update systemd config to prevent tty conflict (#681292)
9bfde3
- Fix username guessing
9bfde3
- We need to quit plymouth before running firstboot (#679171)
9bfde3
9bfde3
* Fri Feb 18 2011 Martin Gracik <mgracik@redhat.com> 1.117-1
9bfde3
- Fix username guessing with unicode chars (#678070)
9bfde3
9bfde3
* Tue Feb 15 2011 Martin Gracik <mgracik@redhat.com> 1.116-1
9bfde3
- systemd's ValidNoProcess renamed to RemainAfterExit
9bfde3
- Don't run Xorg with -nr option and use vt1
9bfde3
- Translation updates
9bfde3
9bfde3
* Fri Jan 14 2011 Martin Gracik <mgracik@redhat.com> 1.115-1
9bfde3
- Don't enable firstboot service on upgrade (#626676)
9bfde3
- Set HOME to /root rather than / (#578903)
9bfde3
- Translation updates
9bfde3
9bfde3
* Mon Dec 20 2010 Martin Gracik <mgracik@redhat.com> 1.114-1
9bfde3
- Support other window managers than metacity (#605675)
9bfde3
- firstboot -> metacity dep (#605675) (rdieter)
9bfde3
- Change how we check for user account
9bfde3
- Use StrengthMeter widget instead of ProgressBar
9bfde3
- Add StrengthMeter widget to pwcheck
9bfde3
- Increase the weight of cracklib password check
9bfde3
- Show the password strength in a progress bar
9bfde3
- Add strength fraction property to pwcheck
9bfde3
- Translation updates
9bfde3
- Change the way we warn for a weak password
9bfde3
- Add the pwcheck module for getting the password strength
9bfde3
- Do not show tabs in date and time module
9bfde3
- Allow the user to be added to wheel group (#462161)
9bfde3
- Guess user name from full name (#517269)
9bfde3
9bfde3
* Thu Aug 26 2010 Martin Gracik <mgracik@redhat.com> 1.113-1
9bfde3
- Updated the .pot file
9bfde3
- Changed string formatting for translations (#618610)
9bfde3
- Syntax changed in new systemd
9bfde3
- Make sure we start before tty1 in text mode
9bfde3
- Don't use the legacy sysv services anymore
9bfde3
- Translation updates
9bfde3
9bfde3
* Tue Aug 10 2010 Martin Gracik <mgracik@redhat.com> 1.112-1
9bfde3
- Add systemd support (adamw)
9bfde3
- Translation updates
9bfde3
9bfde3
* Thu Jul 15 2010 Martin Gracik <mgracik@redhat.com> 1.111-1
9bfde3
- Fixed indenting
9bfde3
- Set the LANG variable if running our own X frontend (#599296)
9bfde3
- Added the spec file obsoletes version number
9bfde3
- Add requirement for cracklib-python
9bfde3
- Allow more control when creating new user (#602030)
9bfde3
- Fix functioning of module sets (#595320)
9bfde3
- Don't try to use the X frontend when run in console (#537717)
9bfde3
- Update to work with new python-meh with report support (#562659)
9bfde3
- Add weak password checking (#612362)
9bfde3
- Source the lang.sh file instead of just i18n (#563547)
9bfde3
- Run Xorg with -nr option, so we have less flicker (ajax)
9bfde3
- Many translation updates
9bfde3
9bfde3
* Wed Oct 14 2009 Chris Lumens <clumens@redhat.com> 1.110-1
9bfde3
- Always attempt to display the Fedora logo, if present (jmccann).
9bfde3
- Fix a bunch of small firstboot UI problems (jmccann).
9bfde3
9bfde3
* Thu Sep 10 2009 Chris Lumens <clumens@redhat.com> 1.109-1
9bfde3
- Change the init script return value for LSB purposes (atodorov, #521828).
9bfde3
- We don't really need an X log file anymore (#521387).
9bfde3
- Pull in updated translations.
9bfde3
- Improve logging when modules cannot be loaded (jlaska).
9bfde3
9bfde3
* Tue Aug 11 2009 Chris Lumens <clumens@redhat.com> 1.108-1
9bfde3
- Move python-meh initialization to after we have gtk imported (#515419).
9bfde3
- Do @VERSION@ substitution on progs/firstboot.
9bfde3
- Switch to using system-config-keyboard for the keyboard bits (katzj).
9bfde3
- Stop using rhpl.ethtool (katzj).
9bfde3
9bfde3
* Tue Jul 28 2009 Chris Lumens <clumens@redhat.com> 1.107-1
9bfde3
- Convert to using python-meh.
9bfde3
9bfde3
* Tue May 05 2009 Chris Lumens <clumens@redhat.com> 1.106-1
9bfde3
- Display an error message when the user doesn't supply a password (#480927).
9bfde3
- Lots of translation updates.
9bfde3
9bfde3
* Fri Jan 16 2009 Chris Lumens <clumens@redhat.com> 1.105-1
9bfde3
- Fix a typo in starting up X.
9bfde3
9bfde3
* Tue Dec 16 2008 Chris Lumens <clumens@redhat.com> 1.104-1
9bfde3
- Let X tell us when it's ready to run (ajax).
9bfde3
- Add a Requires: for authconfig-gtk (#474733).
9bfde3
- Log errors changing file permissions and notify (#473191).
9bfde3
- Improve the dialogs around reusing a home directory (#470461).
9bfde3
- Fix a crash when cancelling contacting an NTP server (#475304).
9bfde3
- Since you have to create a user now, change the message.
9bfde3
9bfde3
* Tue Nov 04 2008 Chris Lumens <clumens@redhat.com> 1.103-1
9bfde3
- Try another way of waiting for X to terminate (#469501).
9bfde3
9bfde3
* Mon Oct 27 2008 Chris Lumens <clumens@redhat.com> 1.102-1
9bfde3
- Be smarter about finding a graphics theme to use.
9bfde3
9bfde3
* Wed Oct 22 2008 Chris Lumens <clumens@redhat.com> 1.101-1
9bfde3
- Wait to make sure X is completely dead before continuing (ajax).
9bfde3
- Don't display that ugly root weave background anymore (ajax).
9bfde3
- Lots of translation updates.
9bfde3
9bfde3
* Fri Sep 12 2008 Chris Lumens <clumens@redhat.com> 1.100-1
9bfde3
- Force creating a user unless the network button was checked (jmccann, #461656).
9bfde3
- Don't sit at the bootup splash screen indefinitely (#458553).
9bfde3
9bfde3
* Thu Jul 31 2008 Chris Lumens <clumens@redhat.com> 1.99-1
9bfde3
- Enable the correct keyboard layout (#453228).
9bfde3
- Remove the timezone tab from the default date & time module (#442394).
9bfde3
- Raise NotImplementedError instead of TypeError.
9bfde3
- Allow modules to focus a UI element before they are displayed (#457422).
9bfde3
- Lots of updated translations.
9bfde3
9bfde3
* Tue May 13 2008 Chris Lumens <clumens@redhat.com> 1.98-1
9bfde3
- Remove the rhgb interface.
9bfde3
- Use subprocess for starting X instead of rhpxl.
9bfde3
- Don't run system-config-display from the init if there's no X config
9bfde3
  file.
9bfde3
- Fix tracebacks when trying to chown broken symlinks (#445092).
9bfde3
- Set up the keyboard if firstboot is run as a program (#445281).
9bfde3
- Lots of updated translations.
9bfde3
9bfde3
* Wed Apr 16 2008 Chris Lumens <clumens@redhat.com> 1.97-1
9bfde3
- Don't allow creating a user with no password (#442613).
9bfde3
- In low resolution cases, wrap the sidebar text earlier (#442394).
9bfde3
- Update translation files for EULA URL change (stickster@gmail.com).
9bfde3
9bfde3
* Thu Apr 10 2008 Chris Lumens <clumens@redhat.com> 1.96-1
9bfde3
- Don't package additional_cds module for now (#441749).
9bfde3
- Add the date and time module (#441504).
9bfde3
- The license agreement has moved URLs.
9bfde3
9bfde3
* Mon Apr 07 2008 Chris Lumens <clumens@redhat.com> 1.95-4
9bfde3
- Fix another init script typo (#441016).
9bfde3
9bfde3
* Fri Apr 04 2008 Chris Lumens <clumens@redhat.com> 1.95-3
9bfde3
- Fix a typo in the init script.
9bfde3
9bfde3
* Thu Apr 03 2008 Chris Lumens <clumens@redhat.com> 1.95-2
9bfde3
- Require another program we need.
9bfde3
9bfde3
* Thu Apr 03 2008 Chris Lumens <clumens@redhat.com> 1.95-1
9bfde3
- Check for RUN_FIRSTBOOT=NO in the init script.
9bfde3
- Don't display broken images if files aren't found in the primary location.
9bfde3
9bfde3
* Wed Apr 02 2008 Chris Lumens <clumens@redhat.com> 1.94-1
9bfde3
- Look in the right directory for Fedora artwork (#439283).
9bfde3
- Require libuser-python (#439307).
9bfde3
- Translation updates.
9bfde3
9bfde3
* Wed Mar 26 2008 Chris Lumens <clumens@redhat.com> 1.93-1
9bfde3
- Add in the text mode interface.
9bfde3
- Wait for the X server to exit (#431469).
9bfde3
- Lots of translation updates.
9bfde3
9bfde3
* Thu Jan 31 2008 Chris Lumens <clumens@redhat.com> 1.92-1
9bfde3
- Add a reworked user creation page (#429195).
9bfde3
- If the user's home dir already exists, offer to set ownership (#426631).
9bfde3
9bfde3
* Mon Jan 28 2008 Chris Lumens <clumens@redhat.com> 1.91-2
9bfde3
- Put module in /usr/lib64 on 64-bit platforms.
9bfde3
9bfde3
* Wed Jan 02 2008 Chris Lumens <clumens@redhat.com> 1.91-1
9bfde3
- Reorganize to provide a python module.
9bfde3
- Provide real help output for the firstboot program.
9bfde3
9bfde3
* Wed Dec 05 2007 Chris Lumens <clumens@redhat.com> 1.90-3
9bfde3
- Don't provide a debuginfo package (#413011).
9bfde3
9bfde3
* Tue Nov 20 2007 Chris Lumens <clumens@redhat.com> 1.90-2
9bfde3
- Obsolete the old firstboot-tui package that no longer exists.
9bfde3
9bfde3
* Mon Nov 19 2007 Chris Lumens <clumens@redhat.com> 1.90-1
9bfde3
- First packaging of the new firstboot program.