]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without apidocs # do not build and package API docs | |
4 | %bcond_without vala # do not build Vala API | |
5 | # | |
6 | Summary: Map widget for Clutter | |
7 | Summary(pl.UTF-8): Widget mapy dla Cluttera | |
8 | Name: libchamplain | |
9 | Version: 0.12.5 | |
10 | Release: 1 | |
11 | License: LGPL v2 | |
12 | Group: X11/Libraries | |
13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libchamplain/0.12/%{name}-%{version}.tar.xz | |
14 | # Source0-md5: 7cdf8e9f4120316f9feefd0fdb115972 | |
15 | URL: http://projects.gnome.org/libchamplain/ | |
16 | BuildRequires: autoconf >= 2.64 | |
17 | BuildRequires: automake | |
18 | BuildRequires: cairo-devel >= 1.4.0 | |
19 | BuildRequires: clutter-devel >= 1.12 | |
20 | BuildRequires: clutter-gtk-devel >= 0.90.0 | |
21 | BuildRequires: docbook-dtd412-xml | |
22 | BuildRequires: glib2-devel >= 1:2.16.0 | |
23 | BuildRequires: glibc-misc | |
24 | BuildRequires: gnome-common | |
25 | BuildRequires: gobject-introspection-devel >= 0.6.3 | |
26 | BuildRequires: gtk+3-devel >= 3.0.0 | |
27 | BuildRequires: gtk-doc >= 1.9 | |
28 | BuildRequires: libsoup-gnome-devel >= 2.26.0 | |
29 | BuildRequires: libtool >= 2:2.2.6 | |
30 | BuildRequires: memphis-devel >= 0.2.1 | |
31 | BuildRequires: pkgconfig | |
32 | BuildRequires: sqlite3-devel >= 3.0 | |
33 | %{?with_vala:BuildRequires: vala >= 0.11.0} | |
34 | Requires: cairo >= 1.4.0 | |
35 | Requires: glib2 >= 1:2.16.0 | |
36 | Requires: memphis >= 0.2.1 | |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
38 | ||
39 | %description | |
40 | Libchamplain is a C library aimed to provide a ClutterActor to display | |
41 | rasterized maps. | |
42 | ||
43 | %description -l pl.UTF-8 | |
44 | Libchamplain jest biblioteką C, której celem jest dostarczenie | |
45 | interfejcu ClutterActor do wyświetlania rastrowych map. | |
46 | ||
47 | %package devel | |
48 | Summary: Header files for the libchamplain library | |
49 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libchamplain | |
50 | Group: X11/Development/Libraries | |
51 | Requires: %{name} = %{version}-%{release} | |
52 | Requires: clutter-devel >= 1.12 | |
53 | Requires: clutter-gtk-devel >= 0.90.0 | |
54 | Requires: glib2-devel >= 1:2.16.0 | |
55 | Requires: gtk+3-devel >= 3.0.0 | |
56 | Requires: memphis-devel >= 0.2.1 | |
57 | Requires: sqlite3-devel >= 3.0 | |
58 | ||
59 | %description devel | |
60 | Header files for the libchamplain library. | |
61 | ||
62 | %description devel -l pl.UTF-8 | |
63 | Pliki nagłówkowe biblioteki libchamplain. | |
64 | ||
65 | %package apidocs | |
66 | Summary: libchamplain API documentation | |
67 | Summary(pl.UTF-8): Dokumentacja API biblioteki libchamplain | |
68 | Group: Documentation | |
69 | Requires: gtk-doc-common | |
70 | ||
71 | %description apidocs | |
72 | libchamplain API documentation. | |
73 | ||
74 | %description apidocs -l pl.UTF-8 | |
75 | Dokumentacja API biblioteki libchamplain. | |
76 | ||
77 | %package -n vala-libchamplain | |
78 | Summary: libchamplain API for Vala language | |
79 | Summary(pl.UTF-8): API libchamplain dla języka Vala | |
80 | Group: Development/Libraries | |
81 | Requires: %{name}-devel = %{version}-%{release} | |
82 | Requires: vala >= 0.11.0 | |
83 | ||
84 | %description -n vala-libchamplain | |
85 | libchamplain API for Vala language. | |
86 | ||
87 | %description -n vala-libchamplain -l pl.UTF-8 | |
88 | API libchamplain dla języka Vala. | |
89 | ||
90 | %prep | |
91 | %setup -q | |
92 | ||
93 | %build | |
94 | %{__gtkdocize} | |
95 | %{__libtoolize} | |
96 | %{__aclocal} -I m4 | |
97 | %{__autoheader} | |
98 | %{__autoconf} | |
99 | %{__automake} | |
100 | %configure \ | |
101 | --disable-silent-rules \ | |
102 | --disable-static \ | |
103 | --enable-gtk \ | |
104 | %{__enable_disable apidocs gtk-doc} \ | |
105 | %{__enable_disable vala vala} \ | |
106 | --with-html-dir=%{_gtkdocdir} | |
107 | %{__make} | |
108 | ||
109 | %install | |
110 | rm -rf $RPM_BUILD_ROOT | |
111 | ||
112 | %{__make} install \ | |
113 | DESTDIR=$RPM_BUILD_ROOT | |
114 | ||
115 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
116 | ||
117 | %clean | |
118 | rm -rf $RPM_BUILD_ROOT | |
119 | ||
120 | %post -p /sbin/ldconfig | |
121 | %postun -p /sbin/ldconfig | |
122 | ||
123 | %files | |
124 | %defattr(644,root,root,755) | |
125 | %doc AUTHORS ChangeLog NEWS README | |
126 | %attr(755,root,root) %{_libdir}/libchamplain-0.12.so.*.*.* | |
127 | %attr(755,root,root) %ghost %{_libdir}/libchamplain-0.12.so.0 | |
128 | %attr(755,root,root) %{_libdir}/libchamplain-gtk-0.12.so.*.*.* | |
129 | %attr(755,root,root) %ghost %{_libdir}/libchamplain-gtk-0.12.so.0 | |
130 | %{_libdir}/girepository-1.0/Champlain-0.12.typelib | |
131 | %{_libdir}/girepository-1.0/GtkChamplain-0.12.typelib | |
132 | ||
133 | %files devel | |
134 | %defattr(644,root,root,755) | |
135 | %attr(755,root,root) %{_libdir}/libchamplain-0.12.so | |
136 | %attr(755,root,root) %{_libdir}/libchamplain-gtk-0.12.so | |
137 | %{_includedir}/libchamplain-0.12 | |
138 | %{_includedir}/libchamplain-gtk-0.12 | |
139 | %{_pkgconfigdir}/champlain-0.12.pc | |
140 | %{_pkgconfigdir}/champlain-gtk-0.12.pc | |
141 | %{_pkgconfigdir}/champlain-memphis-0.12.pc | |
142 | %{_datadir}/gir-1.0/Champlain-0.12.gir | |
143 | %{_datadir}/gir-1.0/GtkChamplain-0.12.gir | |
144 | ||
145 | %if %{with apidocs} | |
146 | %files apidocs | |
147 | %defattr(644,root,root,755) | |
148 | %{_gtkdocdir}/libchamplain-0.12 | |
149 | %{_gtkdocdir}/libchamplain-gtk-0.12 | |
150 | %endif | |
151 | ||
152 | %if %{with vala} | |
153 | %files -n vala-libchamplain | |
154 | %defattr(644,root,root,755) | |
155 | %{_datadir}/vala/vapi/champlain-0.12.vapi | |
156 | %{_datadir}/vala/vapi/champlain-gtk-0.12.vapi | |
157 | %endif |