gdm2setup-vl.spec 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. Name: gdm2setup
  2. Summary: GDM2 Setup utility
  3. Summary(ja): GDM2 設定ユーティリティ
  4. Version: 0.5.3
  5. Release: 1%{?_dist_release}
  6. License: GPLv3
  7. Group: User Interface/X
  8. URL: https://launchpad.net/gdm2setup
  9. Source0: http://launchpad.net/gdm2setup/0.2/0.5.0/+download/gdm2setup.tar.gz
  10. Source1: gdm2setup-0.5.3-ja.tar.bz2
  11. Source2: gdm2setup.desktop
  12. Patch0: gdm2setup-0.5.3-install-fix.patch
  13. Patch1: gdm2setup-0.5.3-vine.patch
  14. Patch2: gdm2setup-0.5.3-gettext.patch
  15. Patch3: gdm2setup-0.5.3-remove-blur-option.patch
  16. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  17. BuildArch: noarch
  18. BuildRequires: python-devel, python-setuptools
  19. Requires: pygtk2, gksu
  20. Vendor: Project Vine
  21. Distribution: Vine Linux
  22. Packager: daisuke
  23. %description
  24. A simple setup utility for the new GDM2 included in Karmic Ubuntu.
  25. GDM2Setup allows the user to set login wallpaper, select automatic
  26. login or prompted, user list or input box login, and much more.
  27. This application's goal is to put the older GDM setup utility
  28. functionality back into Ubuntu and other Gnome based Linux distributions.
  29. %prep
  30. %setup -q -n %{name}-%{version}-lucid -a 1
  31. %patch0 -p1
  32. %patch1 -p1 -b .vine
  33. %patch2 -p1 -b .gettext
  34. %patch3 -p1 -b .no-blur
  35. cp -f %{SOURCE2} gdm2setup.desktop
  36. %build
  37. %{__python} setup.py build
  38. %install
  39. rm -rf $RPM_BUILD_ROOT
  40. %{__python} setup.py install --prefix=$RPM_BUILD_ROOT%{_prefix}
  41. mv $RPM_BUILD_ROOT%{_bindir} $RPM_BUILD_ROOT%{_sbindir}
  42. mkdir -p $RPM_BUILD_ROOT%{_datadir}/locale/ja/LC_MESSAGES
  43. %{__install} -m644 po/ja.mo $RPM_BUILD_ROOT%{_datadir}/locale/ja/LC_MESSAGES/gdm2setup.mo
  44. %clean
  45. rm -rf $RPM_BUILD_ROOT
  46. %files
  47. %defattr(-,root,root,-)
  48. %doc ChangeLog LICENSE README
  49. %{_sbindir}/*
  50. %{python_sitelib}/*
  51. %{_datadir}/applications/*
  52. %{_datadir}/locale/ja/LC_MESSAGES/*
  53. %changelog
  54. * Thu Jun 02 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 0.5.3-1
  55. - initial build for Vine Linux
  56. - add Vine patch(1,3)
  57. - add gettext patch(2) and Japanese translation