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