]>
Commit | Line | Data |
---|---|---|
1f1189ae | 1 | Summary: A keyboard configuration library |
4a919f16 | 2 | Summary(pl.UTF-8): Biblioteka do konfiguracji klawiatury |
1f1189ae | 3 | Name: libgnomekbd |
605fc55d | 4 | Version: 2.20.0 |
98e73c1d | 5 | Release: 2 |
1f1189ae MB |
6 | License: LGPL |
7 | Group: Libraries | |
605fc55d PZ |
8 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libgnomekbd/2.20/%{name}-%{version}.tar.bz2 |
9 | # Source0-md5: 0b495d355e25c3531419cb3996be7e28 | |
9d9e8b9a | 10 | Patch0: %{name}-desktop.patch |
605fc55d | 11 | Patch1: %{name}-popt.patch |
1f1189ae | 12 | URL: http://www.gnome.org/ |
605fc55d | 13 | BuildRequires: GConf2-devel >= 2.19.1 |
1f1189ae MB |
14 | BuildRequires: autoconf >= 2.59 |
15 | BuildRequires: automake >= 1:1.8 | |
16 | BuildRequires: dbus-glib-devel >= 0.73 | |
605fc55d PZ |
17 | BuildRequires: gtk+2-devel >= 2:2.10.14 |
18 | BuildRequires: intltool >= 0.36.1 | |
19 | BuildRequires: libglade2-devel >= 1:2.6.2 | |
20 | BuildRequires: libgnomeui-devel >= 2.19.1 | |
1f1189ae | 21 | BuildRequires: libtool |
605fc55d | 22 | BuildRequires: libxklavier-devel >= 3.2 |
1f1189ae MB |
23 | BuildRequires: pkgconfig |
24 | BuildRequires: rpmbuild(macros) >= 1.311 | |
4a919f16 | 25 | Requires(post,postun): /sbin/ldconfig |
1f1189ae MB |
26 | Requires(post,postun): gtk+2 |
27 | Requires(post,postun): hicolor-icon-theme | |
9d9e8b9a | 28 | Requires(post,preun): GConf2 |
d1544c79 | 29 | Conflicts: control-center < 1:2.17.92 |
1f1189ae MB |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
31 | ||
32 | %description | |
33 | The libgnomekbd package contains a GNOME library which manages | |
34 | keyboard configuration and offers various widgets related to keyboard | |
35 | configuration. | |
36 | ||
4a919f16 JB |
37 | %description -l pl.UTF-8 |
38 | Pakiet libgnomekbd zawiera bibliotekę GNOME zarządzającą konfiguracją | |
39 | klawiatury i oferującą różne widgety związane z konfiguracją | |
40 | klawiatury. | |
41 | ||
1f1189ae MB |
42 | %package devel |
43 | Summary: Header files for libgnomekbd | |
4a919f16 | 44 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libgnomekbd |
1f1189ae MB |
45 | Group: Development/Libraries |
46 | Requires: %{name} = %{version}-%{release} | |
47 | ||
48 | %description devel | |
49 | Header files for libgnomekbd. | |
50 | ||
4a919f16 JB |
51 | %description devel -l pl.UTF-8 |
52 | Pliki nagłówkowe biblioteki libgnomekbd. | |
53 | ||
1f1189ae MB |
54 | %package static |
55 | Summary: Static libgnomekbd library | |
4a919f16 | 56 | Summary(pl.UTF-8): Statyczna biblioteka libgnomekbd |
1f1189ae MB |
57 | Group: Development/Libraries |
58 | Requires: %{name}-devel = %{version}-%{release} | |
59 | ||
60 | %description static | |
61 | Static libgnomekbd library. | |
62 | ||
4a919f16 JB |
63 | %description static -l pl.UTF-8 |
64 | Statyczna biblioteka libgnomekbd. | |
65 | ||
1f1189ae MB |
66 | %prep |
67 | %setup -q | |
9d9e8b9a | 68 | %patch0 -p1 |
605fc55d | 69 | %patch1 -p1 |
1f1189ae MB |
70 | |
71 | %build | |
72 | %{__glib_gettextize} | |
73 | %{__intltoolize} | |
74 | %{__libtoolize} | |
75 | %{__aclocal} | |
76 | %{__autoconf} | |
77 | %{__automake} | |
78 | %configure \ | |
79 | --disable-schemas-install \ | |
80 | --enable-static | |
81 | %{__make} | |
82 | ||
83 | %install | |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
86 | %{__make} install \ | |
87 | DESTDIR=$RPM_BUILD_ROOT | |
88 | ||
89 | %find_lang %{name} | |
90 | ||
91 | %clean | |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
94 | %post | |
95 | /sbin/ldconfig | |
96 | %gconf_schema_install desktop_gnome_peripherals_keyboard_xkb.schemas | |
97 | %update_icon_cache hicolor | |
98 | ||
99 | %preun | |
100 | %gconf_schema_uninstall desktop_gnome_peripherals_keyboard_xkb.schemas | |
101 | ||
102 | %postun | |
103 | /sbin/ldconfig | |
104 | %update_icon_cache hicolor | |
105 | ||
106 | %files -f %{name}.lang | |
107 | %defattr(644,root,root,755) | |
108 | %doc AUTHORS ChangeLog | |
109 | %attr(755,root,root) %{_bindir}/gkbd-indicator-plugins-capplet | |
110 | %attr(755,root,root) %{_libdir}/libgnomekbd.so.*.*.* | |
111 | %attr(755,root,root) %{_libdir}/libgnomekbdui.so.*.*.* | |
112 | %{_sysconfdir}/gconf/schemas/desktop_gnome_peripherals_keyboard_xkb.schemas | |
113 | %{_desktopdir}/gkbd-indicator-plugins-capplet.desktop | |
114 | %{_iconsdir}/hicolor/*/*/*.png | |
115 | %{_datadir}/libgnomekbd | |
116 | ||
117 | %files devel | |
118 | %defattr(644,root,root,755) | |
119 | %attr(755,root,root) %{_libdir}/libgnomekbd.so | |
120 | %attr(755,root,root) %{_libdir}/libgnomekbdui.so | |
121 | %{_includedir}/libgnomekbd | |
122 | %{_libdir}/libgnomekbd.la | |
123 | %{_libdir}/libgnomekbdui.la | |
124 | %{_pkgconfigdir}/libgnomekbd.pc | |
125 | %{_pkgconfigdir}/libgnomekbdui.pc | |
126 | ||
127 | %files static | |
128 | %defattr(644,root,root,755) | |
129 | %{_libdir}/libgnomekbd.a | |
130 | %{_libdir}/libgnomekbdui.a |