Blame firstboot.spec

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