]>
Commit | Line | Data |
---|---|---|
1f1189ae MB |
1 | # |
2 | # TODO: | |
3 | # - pl summary and description | |
4 | # | |
5 | Summary: A keyboard configuration library | |
6 | Name: libgnomekbd | |
73823be7 | 7 | Version: 2.18.0 |
1f1189ae MB |
8 | Release: 1 |
9 | License: LGPL | |
10 | Group: Libraries | |
73823be7 MB |
11 | Source0: http://ftp.gnome.org/pub/gnome/sources/libgnomekbd/2.18/%{name}-%{version}.tar.bz2 |
12 | # Source0-md5: f176e026158f678144511fb343ec7269 | |
1f1189ae | 13 | URL: http://www.gnome.org/ |
73823be7 | 14 | BuildRequires: GConf2-devel >= 2.18.0.1 |
1f1189ae MB |
15 | BuildRequires: autoconf >= 2.59 |
16 | BuildRequires: automake >= 1:1.8 | |
17 | BuildRequires: dbus-glib-devel >= 0.73 | |
18 | BuildRequires: gtk+2-devel >= 2:2.10.9 | |
19 | BuildRequires: intltool >= 0.35.5 | |
20 | BuildRequires: libglade2-devel >= 1:2.6.0 | |
21 | BuildRequires: libgnomeui-devel >= 2.17.92 | |
22 | BuildRequires: libtool | |
23 | BuildRequires: libxklavier-devel >= 3.0 | |
24 | BuildRequires: pkgconfig | |
25 | BuildRequires: rpmbuild(macros) >= 1.311 | |
26 | Requires(post,preun): GConf2 | |
27 | Requires(post,postun): gtk+2 | |
28 | Requires(post,postun): hicolor-icon-theme | |
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 | ||
37 | %package devel | |
38 | Summary: Header files for libgnomekbd | |
39 | Group: Development/Libraries | |
40 | Requires: %{name} = %{version}-%{release} | |
41 | ||
42 | %description devel | |
43 | Header files for libgnomekbd. | |
44 | ||
45 | %package static | |
46 | Summary: Static libgnomekbd library | |
47 | Group: Development/Libraries | |
48 | Requires: %{name}-devel = %{version}-%{release} | |
49 | ||
50 | %description static | |
51 | Static libgnomekbd library. | |
52 | ||
53 | %prep | |
54 | %setup -q | |
55 | ||
56 | %build | |
57 | %{__glib_gettextize} | |
58 | %{__intltoolize} | |
59 | %{__libtoolize} | |
60 | %{__aclocal} | |
61 | %{__autoconf} | |
62 | %{__automake} | |
63 | %configure \ | |
64 | --disable-schemas-install \ | |
65 | --enable-static | |
66 | %{__make} | |
67 | ||
68 | %install | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %{__make} install \ | |
72 | DESTDIR=$RPM_BUILD_ROOT | |
73 | ||
74 | %find_lang %{name} | |
75 | ||
76 | %clean | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
79 | %post | |
80 | /sbin/ldconfig | |
81 | %gconf_schema_install desktop_gnome_peripherals_keyboard_xkb.schemas | |
82 | %update_icon_cache hicolor | |
83 | ||
84 | %preun | |
85 | %gconf_schema_uninstall desktop_gnome_peripherals_keyboard_xkb.schemas | |
86 | ||
87 | %postun | |
88 | /sbin/ldconfig | |
89 | %update_icon_cache hicolor | |
90 | ||
91 | %files -f %{name}.lang | |
92 | %defattr(644,root,root,755) | |
93 | %doc AUTHORS ChangeLog | |
94 | %attr(755,root,root) %{_bindir}/gkbd-indicator-plugins-capplet | |
95 | %attr(755,root,root) %{_libdir}/libgnomekbd.so.*.*.* | |
96 | %attr(755,root,root) %{_libdir}/libgnomekbdui.so.*.*.* | |
97 | %{_sysconfdir}/gconf/schemas/desktop_gnome_peripherals_keyboard_xkb.schemas | |
98 | %{_desktopdir}/gkbd-indicator-plugins-capplet.desktop | |
99 | %{_iconsdir}/hicolor/*/*/*.png | |
100 | %{_datadir}/libgnomekbd | |
101 | ||
102 | %files devel | |
103 | %defattr(644,root,root,755) | |
104 | %attr(755,root,root) %{_libdir}/libgnomekbd.so | |
105 | %attr(755,root,root) %{_libdir}/libgnomekbdui.so | |
106 | %{_includedir}/libgnomekbd | |
107 | %{_libdir}/libgnomekbd.la | |
108 | %{_libdir}/libgnomekbdui.la | |
109 | %{_pkgconfigdir}/libgnomekbd.pc | |
110 | %{_pkgconfigdir}/libgnomekbdui.pc | |
111 | ||
112 | %files static | |
113 | %defattr(644,root,root,755) | |
114 | %{_libdir}/libgnomekbd.a | |
115 | %{_libdir}/libgnomekbdui.a |