1 Summary: A graphical interface for modifying the keyboard
2 Summary(pl.UTF-8): Graficzny interfejs do zmiany klawiatury
3 Name: system-config-keyboard
8 Source0: https://fedorahosted.org/releases/s/y/system-config-keyboard/%{name}-%{version}.tar.gz
9 # Source0-md5: 012b1aec6d237f853bea6824e71d19ed
10 Patch0: s-c-keyboard-do_not_remove_the_OK_button.patch
11 Patch1: sck-1.3.1-no-pyxf86config.patch
13 Patch3: parse-config.patch
14 URL: https://fedorahosted.org/system-config-keyboard/
15 BuildRequires: desktop-file-utils
16 BuildRequires: gettext-tools
17 BuildRequires: intltool
18 BuildRequires: sed >= 4.0
19 Requires(post,postun): gtk-update-icon-cache
20 Requires(post,postun): hicolor-icon-theme
21 Requires: firstboot >= 1.99
22 Requires: gtk+2 >= 2:2.6
23 Requires: python >= 1:2.0
24 Requires: usermode >= 1.108
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 system-config-keyboard is a graphical user interface that allows the
30 user to change the default keyboard of the system.
32 %description -l pl.UTF-8
33 system-config-keyboard to graficzny interfejs użytkownika
34 umożliwiający użytkownikowi zmianę domyślnej klawiatury w systemie.
47 rm -rf $RPM_BUILD_ROOT
49 INSTROOT=$RPM_BUILD_ROOT
52 desktop-file-install --vendor system --delete-original \
53 --dir $RPM_BUILD_ROOT%{_desktopdir} \
54 --add-category Application \
55 --add-category System \
56 $RPM_BUILD_ROOT%{_desktopdir}/system-config-keyboard.desktop
58 sed -i 's/\.py/.pyc/' $RPM_BUILD_ROOT%{_sbindir}/system-config-keyboard
60 %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
61 %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
62 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
63 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
65 %py_postclean %{_datadir}/%{name}
70 rm -rf $RPM_BUILD_ROOT
73 %update_icon_cache hicolor
76 %update_icon_cache hicolor
78 %files -f %{name}.lang
79 %defattr(644,root,root,755)
80 %config(noreplace) %verify(not md5 mtime size) /etc/security/console.apps/%{name}
81 %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/%{name}
82 %attr(755,root,root) %{_bindir}/%{name}
83 %attr(755,root,root) %{_sbindir}/%{name}
84 %dir %{_datadir}/%{name}
85 %{_datadir}/%{name}/*.py[co]
86 %dir %{_datadir}/%{name}/pixmaps
87 %{_datadir}/%{name}/pixmaps/%{name}.png
88 %{_desktopdir}/%{name}.desktop
89 %{_iconsdir}/hicolor/*/apps/%{name}.png
91 %dir %{_datadir}/firstboot
92 %dir %{_datadir}/firstboot/modules
93 %{_datadir}/firstboot/modules/*.py
96 %dir %{py_sitescriptdir}/system_config_keyboard
97 %{py_sitescriptdir}/system_config_keyboard/*.py[co]