]>
Commit | Line | Data |
---|---|---|
989c1ea2 MB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # do not build and package API docs | |
813bec92 | 4 | %bcond_without glade3 # Glade 3 support |
4f9b7023 JB |
5 | %bcond_without imcontext # Clutter input method support |
6 | %bcond_without gesture # Clutter Gesture support | |
989c1ea2 MB |
7 | # |
8 | Summary: Mx Toolkit | |
813bec92 | 9 | Summary(pl.UTF-8): Toolkit widgetów Mx |
989c1ea2 | 10 | Name: mx |
bb7a47b2 | 11 | Version: 1.4.7 |
deae1175 | 12 | Release: 3 |
813bec92 | 13 | License: LGPL v2.1 |
989c1ea2 | 14 | Group: X11/Libraries |
bb7a47b2 MB |
15 | Source0: https://github.com/downloads/clutter-project/mx/%{name}-%{version}.tar.xz |
16 | # Source0-md5: 19b1e4918a5ae6d014fc0dab2bb3d0a1 | |
32d7465c | 17 | Patch0: gdk-pixbuf.patch |
bb7a47b2 | 18 | Patch1: 0001-Replace-GL-data-types-with-equivalent-glib-types.patch |
4f4cc2c7 | 19 | URL: http://www.clutter-project.org/ |
813bec92 | 20 | BuildRequires: autoconf >= 2.50 |
3a912da1 | 21 | BuildRequires: automake >= 1:1.11 |
4f4cc2c7 | 22 | BuildRequires: clutter-devel >= 1.8.0 |
4f9b7023 JB |
23 | %{?with_gesture:BuildRequires: clutter-gesture-devel} |
24 | %{?with_imcontext:BuildRequires: clutter-imcontext-devel >= 0.1} | |
989c1ea2 | 25 | BuildRequires: dbus-glib-devel >= 0.82 |
e8f8cbb6 AF |
26 | BuildRequires: gettext-devel |
27 | BuildRequires: gdk-pixbuf2-devel | |
4f4cc2c7 | 28 | BuildRequires: glib2-devel >= 1:2.28.0 |
989c1ea2 MB |
29 | BuildRequires: gobject-introspection-devel >= 0.6.4 |
30 | BuildRequires: gtk+2-devel >= 2:2.20.0 | |
31 | BuildRequires: gtk-doc >= 1.14 | |
813bec92 JB |
32 | BuildRequires: intltool >= 0.35.0 |
33 | %{?with_glade3:BuildRequires: libgladeui-devel >= 3.4.5} | |
989c1ea2 MB |
34 | BuildRequires: libtool |
35 | BuildRequires: pkgconfig | |
36 | BuildRequires: startup-notification-devel >= 0.9 | |
3a912da1 | 37 | BuildRequires: tar >= 1:1.22 |
989c1ea2 | 38 | BuildRequires: xorg-lib-libXrandr-devel >= 1.2.0 |
3a912da1 | 39 | BuildRequires: xz |
4f4cc2c7 JB |
40 | Requires: clutter >= 1.8.0 |
41 | Requires: dbus-glib >= 0.82 | |
42 | Requires: glib2 >= 1:2.28.0 | |
43 | Requires: gtk+2 >= 2:2.20.0 | |
44 | Requires: startup-notification >= 0.9 | |
45 | Requires: xorg-lib-libXrandr >= 1.2.0 | |
989c1ea2 MB |
46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
47 | ||
48 | %description | |
49 | Mx is a widget toolkit using Clutter that provides a set of standard | |
50 | interface elements, including buttons, progress bars, scroll bars and | |
51 | others. It also implements some standard managers. One other | |
52 | interesting feature is the possibility setting style properties from a | |
53 | CSS format file. | |
54 | ||
813bec92 JB |
55 | %description -l pl.UTF-8 |
56 | Mx to toolkit widgetów korzystający z biblioteki Clutter, | |
57 | udostępniający zbiór podstawowych elementów interfejsów graficznych, | |
58 | w tym przyciski, paski postępu, paski przewijania i inne. Implementuje | |
59 | także niektórych standardowych zarządców. Interesującą funkcją jest | |
de22a65e | 60 | możliwość ustawiania właściwości styli poprzez plik w formacie CSS. |
813bec92 | 61 | |
989c1ea2 MB |
62 | %package devel |
63 | Summary: Header files for mx libraries | |
64 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek mx | |
65 | Group: X11/Development/Libraries | |
66 | Requires: %{name} = %{version}-%{release} | |
4f4cc2c7 JB |
67 | Requires: clutter-devel >= 1.8.0 |
68 | Requires: dbus-glib-devel >= 0.82 | |
32d7465c | 69 | Requires: gdk-pixbuf2-devel |
4f4cc2c7 | 70 | Requires: glib2-devel >= 1:2.28.0 |
989c1ea2 | 71 | Requires: gtk+2-devel >= 2:2.20.0 |
4f4cc2c7 JB |
72 | Requires: startup-notification-devel >= 0.9 |
73 | Requires: xorg-lib-libXrandr-devel >= 1.2.0 | |
989c1ea2 MB |
74 | |
75 | %description devel | |
76 | Header files for mx libraries. | |
77 | ||
78 | %description devel -l pl.UTF-8 | |
79 | Pliki nagłówkowe bibliotek mx. | |
80 | ||
81 | %package apidocs | |
82 | Summary: mx libraries API documentation | |
83 | Summary(pl.UTF-8): Dokumentacja API bibliotek mx | |
84 | Group: Documentation | |
85 | Requires: gtk-doc-common | |
86 | ||
87 | %description apidocs | |
88 | API documentation for mx libraries. | |
89 | ||
90 | %description apidocs -l pl.UTF-8 | |
91 | Dokumentacja API bibliotek mx. | |
92 | ||
93 | %prep | |
94 | %setup -q | |
32d7465c | 95 | %patch0 -p1 |
bb7a47b2 | 96 | %patch1 -p1 |
989c1ea2 MB |
97 | |
98 | %build | |
99 | %{__libtoolize} | |
100 | %{__aclocal} -I m4 | |
101 | %{__autoconf} | |
102 | %{__autoheader} | |
103 | %{__automake} | |
104 | %configure \ | |
105 | %{__enable_disable apidocs gtk-doc} \ | |
106 | --disable-silent-rules \ | |
4f9b7023 JB |
107 | --with-clutter-gesture%{!?with_gesture:=no} \ |
108 | --with-clutter-imcontext%{!?with_imcontext:=no} \ | |
813bec92 | 109 | %{?with_glade3:--with-glade} \ |
989c1ea2 MB |
110 | --with-html-dir=%{_gtkdocdir} |
111 | %{__make} | |
112 | ||
113 | %install | |
114 | rm -rf $RPM_BUILD_ROOT | |
115 | ||
116 | %{__make} install \ | |
117 | DESTDIR=$RPM_BUILD_ROOT | |
118 | ||
119 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
120 | ||
121 | %find_lang %{name}-1.0 | |
122 | ||
123 | %clean | |
124 | rm -rf $RPM_BUILD_ROOT | |
125 | ||
126 | %post -p /sbin/ldconfig | |
127 | %postun -p /sbin/ldconfig | |
128 | ||
129 | %files -f %{name}-1.0.lang | |
130 | %defattr(644,root,root,755) | |
131 | %doc AUTHORS ChangeLog NEWS README | |
132 | %attr(755,root,root) %{_bindir}/mx-create-image-cache | |
133 | %attr(755,root,root) %{_libdir}/libmx-1.0.so.*.*.* | |
134 | %attr(755,root,root) %ghost %{_libdir}/libmx-1.0.so.2 | |
135 | %attr(755,root,root) %{_libdir}/libmx-gtk-1.0.so.*.*.* | |
136 | %attr(755,root,root) %ghost %{_libdir}/libmx-gtk-1.0.so.0 | |
137 | %{_libdir}/girepository-1.0/Mx-1.0.typelib | |
138 | %{_libdir}/girepository-1.0/MxGtk-1.0.typelib | |
139 | %{_datadir}/mx | |
140 | ||
141 | %files devel | |
142 | %defattr(644,root,root,755) | |
143 | %attr(755,root,root) %{_libdir}/libmx-1.0.so | |
144 | %attr(755,root,root) %{_libdir}/libmx-gtk-1.0.so | |
145 | %{_datadir}/gir-1.0/Mx-1.0.gir | |
146 | %{_datadir}/gir-1.0/MxGtk-1.0.gir | |
147 | %{_includedir}/mx-1.0 | |
148 | %{_pkgconfigdir}/mx-1.0.pc | |
149 | %{_pkgconfigdir}/mx-gtk-1.0.pc | |
150 | ||
151 | %if %{with apidocs} | |
152 | %files apidocs | |
153 | %defattr(644,root,root,755) | |
154 | %{_gtkdocdir}/mx-gtk | |
155 | %{_gtkdocdir}/mx | |
156 | %endif |