]>
Commit | Line | Data |
---|---|---|
9a9f3f2c MB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # disable gtk-doc | |
4 | # | |
cb1236ce JB |
5 | Summary: libxklavier library |
6 | Summary(pl.UTF-8): Biblioteka libxklavier | |
18e3f00e | 7 | Name: libxklavier |
aac10a67 PZ |
8 | Version: 5.1 |
9 | Release: 1 | |
cb1236ce | 10 | License: LGPL v2+ |
96df775d | 11 | Group: X11/Libraries |
aac10a67 PZ |
12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libxklavier/5.1/%{name}-%{version}.tar.bz2 |
13 | # Source0-md5: cbc2a760827c20aef61eb7b18a6ce598 | |
f8500c31 | 14 | URL: http://www.freedesktop.org/Software/LibXklavier |
edb8f2f3 MB |
15 | BuildRequires: autoconf >= 2.59 |
16 | BuildRequires: automake >= 1:1.10 | |
000d32da | 17 | BuildRequires: docbook-dtd412-xml |
18 | BuildRequires: gettext-devel | |
edb8f2f3 | 19 | BuildRequires: glib2-devel >= 1:2.16.0 |
9a9f3f2c | 20 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.7} |
24ba620d | 21 | BuildRequires: iso-codes |
da049f41 | 22 | BuildRequires: libtool |
760ce40a | 23 | BuildRequires: libxml2-devel >= 1:2.6.26 |
18e3f00e | 24 | BuildRequires: pkgconfig |
edb8f2f3 | 25 | BuildRequires: xorg-lib-libXi-devel >= 1.1.3 |
072747ac | 26 | BuildRequires: xorg-lib-libxkbfile-devel |
ab54560f | 27 | Requires: glib2 >= 1:2.16.0 |
24ba620d | 28 | Requires: iso-codes |
ab54560f JB |
29 | Requires: libxml2 >= 1:2.6.26 |
30 | Requires: xorg-lib-libXi >= 1.1.3 | |
485c4c8e | 31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
79421566 AF |
32 | |
33 | %description | |
cb1236ce | 34 | This library allows you to simplify XKB-related development. |
79421566 | 35 | |
e908bb86 JR |
36 | %description -l pl.UTF-8 |
37 | Ta biblioteka pozwala uprościć programowanie związane z XKB. | |
18e3f00e | 38 | |
79421566 | 39 | %package devel |
cb1236ce JB |
40 | Summary: Header files to develop libxklavier applications |
41 | Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia aplikacji z użyciem libxklavier | |
96df775d | 42 | Group: X11/Development/Libraries |
3c751c25 | 43 | Requires: %{name} = %{version}-%{release} |
ab54560f | 44 | Requires: glib2-devel >= 1:2.16.0 |
760ce40a | 45 | Requires: libxml2-devel >= 1:2.6.26 |
072747ac | 46 | Requires: xorg-lib-libxkbfile-devel |
ab54560f | 47 | Requires: xorg-lib-libXi-devel >= 1.1.3 |
79421566 AF |
48 | |
49 | %description devel | |
cb1236ce | 50 | Header files to develop libxklavier applications. |
18e3f00e | 51 | |
e908bb86 | 52 | %description devel -l pl.UTF-8 |
cb1236ce | 53 | Pliki nagłówkowe do tworzenia aplikacji z użyciem libxklavier. |
79421566 AF |
54 | |
55 | %package static | |
cb1236ce JB |
56 | Summary: Static version of libxklavier library |
57 | Summary(pl.UTF-8): Statyczna wersja biblioteki libxklavier | |
96df775d | 58 | Group: X11/Development/Libraries |
3c751c25 | 59 | Requires: %{name}-devel = %{version}-%{release} |
79421566 AF |
60 | |
61 | %description static | |
cb1236ce | 62 | Static version of libxklavier library. |
18e3f00e | 63 | |
e908bb86 | 64 | %description static -l pl.UTF-8 |
cb1236ce | 65 | Statyczna wersja biblioteki libxklavier. |
9a9f3f2c MB |
66 | |
67 | %package apidocs | |
cb1236ce JB |
68 | Summary: libxklavier API documentation |
69 | Summary(pl.UTF-8): Dokumentacja API libxklavier | |
9a9f3f2c MB |
70 | Group: Documentation |
71 | Requires: gtk-doc-common | |
72 | ||
73 | %description apidocs | |
cb1236ce | 74 | libxklavier API documentation. |
9a9f3f2c MB |
75 | |
76 | %description apidocs -l pl.UTF-8 | |
cb1236ce | 77 | Dokumentacja API libxklavier. |
79421566 AF |
78 | |
79 | %prep | |
80 | %setup -q | |
81 | ||
82 | %build | |
da049f41 | 83 | %{__libtoolize} |
0398722e AF |
84 | %{__aclocal} |
85 | %{__autoconf} | |
edb8f2f3 | 86 | %{__autoheader} |
0398722e | 87 | %{__automake} |
a9897a2b | 88 | %configure \ |
9a9f3f2c | 89 | --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \ |
a9897a2b | 90 | --with-xkb-bin-base=%{_bindir} \ |
760ce40a | 91 | --with-xkb-base=%{_datadir}/X11/xkb \ |
92 | --with-html-dir=%{_gtkdocdir} | |
79421566 AF |
93 | %{__make} |
94 | ||
95 | %install | |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | ||
18e3f00e JB |
98 | %{__make} install \ |
99 | DESTDIR=$RPM_BUILD_ROOT | |
79421566 | 100 | |
9a9f3f2c MB |
101 | %{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}/%{name}} |
102 | ||
79421566 AF |
103 | %clean |
104 | rm -rf $RPM_BUILD_ROOT | |
105 | ||
18e3f00e JB |
106 | %post -p /sbin/ldconfig |
107 | %postun -p /sbin/ldconfig | |
79421566 AF |
108 | |
109 | %files | |
110 | %defattr(644,root,root,755) | |
cb1236ce JB |
111 | %doc AUTHORS CREDITS ChangeLog NEWS README |
112 | %attr(755,root,root) %{_libdir}/libxklavier.so.*.*.* | |
408a4faf | 113 | %attr(755,root,root) %ghost %{_libdir}/libxklavier.so.16 |
79421566 AF |
114 | |
115 | %files devel | |
116 | %defattr(644,root,root,755) | |
cb1236ce JB |
117 | %attr(755,root,root) %{_libdir}/libxklavier.so |
118 | %{_libdir}/libxklavier.la | |
119 | %{_pkgconfigdir}/libxklavier.pc | |
120 | %{_includedir}/libxklavier | |
79421566 AF |
121 | |
122 | %files static | |
123 | %defattr(644,root,root,755) | |
cb1236ce | 124 | %{_libdir}/libxklavier.a |
9a9f3f2c MB |
125 | |
126 | %if %{with apidocs} | |
127 | %files apidocs | |
128 | %defattr(644,root,root,755) | |
129 | %{_gtkdocdir}/%{name} | |
130 | %endif |