]> git.pld-linux.org Git - SPECS.git/blob - system-config-keyboard.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / system-config-keyboard.spec
1 Summary:        A graphical interface for modifying the keyboard
2 Summary(pl.UTF-8):      Graficzny interfejs do zmiany klawiatury
3 Name:           system-config-keyboard
4 Version:        1.3.1
5 Release:        1
6 License:        GPL v2+
7 Group:          Base
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
12 Patch2:         kbdconf.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
25 BuildArch:      noarch
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 system-config-keyboard is a graphical user interface that allows the
30 user to change the default keyboard of the system.
31
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.
35
36 %prep
37 %setup -q
38 %patch0 -p1
39 %patch1 -p1
40 %patch2 -p1
41 %patch3 -p1
42
43 %build
44 %{__make}
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48 %{__make} install \
49         INSTROOT=$RPM_BUILD_ROOT
50
51
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
57
58 sed -i 's/\.py/.pyc/' $RPM_BUILD_ROOT%{_sbindir}/system-config-keyboard
59
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}
64
65 %py_postclean %{_datadir}/%{name}
66
67 %find_lang %{name}
68
69 %clean
70 rm -rf $RPM_BUILD_ROOT
71
72 %post
73 %update_icon_cache hicolor
74
75 %postun
76 %update_icon_cache hicolor
77
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
90
91 %dir %{_datadir}/firstboot
92 %dir %{_datadir}/firstboot/modules
93 %{_datadir}/firstboot/modules/*.py
94
95 # python-%{name}
96 %dir %{py_sitescriptdir}/system_config_keyboard
97 %{py_sitescriptdir}/system_config_keyboard/*.py[co]
This page took 1.194787 seconds and 3 git commands to generate.