]>
Commit | Line | Data |
---|---|---|
5ac078f3 ŁK |
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 | # | |
fca47040 | 6 | Summary: Map widget for Clutter |
643eb309 | 7 | Summary(pl.UTF-8): Widget mapy dla Cluttera |
fca47040 | 8 | Name: libchamplain |
0df954ce | 9 | Version: 0.12.5 |
8e44bffe | 10 | Release: 1 |
fca47040 | 11 | License: LGPL v2 |
643eb309 | 12 | Group: X11/Libraries |
3c4c9c1f | 13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libchamplain/0.12/%{name}-%{version}.tar.xz |
0df954ce | 14 | # Source0-md5: 7cdf8e9f4120316f9feefd0fdb115972 |
fca47040 | 15 | URL: http://projects.gnome.org/libchamplain/ |
3ba35565 | 16 | BuildRequires: autoconf >= 2.64 |
fca47040 | 17 | BuildRequires: automake |
643eb309 | 18 | BuildRequires: cairo-devel >= 1.4.0 |
8e44bffe | 19 | BuildRequires: clutter-devel >= 1.12 |
e2569fb5 | 20 | BuildRequires: clutter-gtk-devel >= 0.90.0 |
8f3ed790 | 21 | BuildRequires: docbook-dtd412-xml |
643eb309 | 22 | BuildRequires: glib2-devel >= 1:2.16.0 |
66dc2cc1 | 23 | BuildRequires: glibc-misc |
3ba35565 | 24 | BuildRequires: gnome-common |
643eb309 | 25 | BuildRequires: gobject-introspection-devel >= 0.6.3 |
e2569fb5 | 26 | BuildRequires: gtk+3-devel >= 3.0.0 |
643eb309 MB |
27 | BuildRequires: gtk-doc >= 1.9 |
28 | BuildRequires: libsoup-gnome-devel >= 2.26.0 | |
ab00fbe0 | 29 | BuildRequires: libtool >= 2:2.2.6 |
3ba35565 | 30 | BuildRequires: memphis-devel >= 0.2.1 |
643eb309 | 31 | BuildRequires: pkgconfig |
fca47040 | 32 | BuildRequires: sqlite3-devel >= 3.0 |
5ac078f3 | 33 | %{?with_vala:BuildRequires: vala >= 0.11.0} |
ab00fbe0 JB |
34 | Requires: cairo >= 1.4.0 |
35 | Requires: glib2 >= 1:2.16.0 | |
36 | Requires: memphis >= 0.2.1 | |
fca47040 PZ |
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 | ||
643eb309 MB |
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 | ||
fca47040 | 47 | %package devel |
643eb309 MB |
48 | Summary: Header files for the libchamplain library |
49 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libchamplain | |
50 | Group: X11/Development/Libraries | |
fca47040 | 51 | Requires: %{name} = %{version}-%{release} |
8e44bffe | 52 | Requires: clutter-devel >= 1.12 |
e2569fb5 | 53 | Requires: clutter-gtk-devel >= 0.90.0 |
643eb309 | 54 | Requires: glib2-devel >= 1:2.16.0 |
e2569fb5 | 55 | Requires: gtk+3-devel >= 3.0.0 |
3ba35565 MB |
56 | Requires: memphis-devel >= 0.2.1 |
57 | Requires: sqlite3-devel >= 3.0 | |
fca47040 PZ |
58 | |
59 | %description devel | |
643eb309 MB |
60 | Header files for the libchamplain library. |
61 | ||
62 | %description devel -l pl.UTF-8 | |
63 | Pliki nagłówkowe biblioteki libchamplain. | |
fca47040 PZ |
64 | |
65 | %package apidocs | |
66 | Summary: libchamplain API documentation | |
643eb309 | 67 | Summary(pl.UTF-8): Dokumentacja API biblioteki libchamplain |
fca47040 PZ |
68 | Group: Documentation |
69 | Requires: gtk-doc-common | |
70 | ||
71 | %description apidocs | |
72 | libchamplain API documentation. | |
73 | ||
643eb309 | 74 | %description apidocs -l pl.UTF-8 |
5ac078f3 ŁK |
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} | |
ab00fbe0 | 82 | Requires: vala >= 0.11.0 |
5ac078f3 ŁK |
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. | |
643eb309 | 89 | |
fca47040 PZ |
90 | %prep |
91 | %setup -q | |
fca47040 PZ |
92 | |
93 | %build | |
94 | %{__gtkdocize} | |
95 | %{__libtoolize} | |
96 | %{__aclocal} -I m4 | |
97 | %{__autoheader} | |
98 | %{__autoconf} | |
99 | %{__automake} | |
100 | %configure \ | |
d4c4f907 | 101 | --disable-silent-rules \ |
ab00fbe0 | 102 | --disable-static \ |
fca47040 | 103 | --enable-gtk \ |
5ac078f3 ŁK |
104 | %{__enable_disable apidocs gtk-doc} \ |
105 | %{__enable_disable vala vala} \ | |
fca47040 PZ |
106 | --with-html-dir=%{_gtkdocdir} |
107 | %{__make} | |
108 | ||
109 | %install | |
110 | rm -rf $RPM_BUILD_ROOT | |
111 | ||
fca47040 PZ |
112 | %{__make} install \ |
113 | DESTDIR=$RPM_BUILD_ROOT | |
114 | ||
e2569fb5 ŁK |
115 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
116 | ||
fca47040 PZ |
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 | |
3c4c9c1f AF |
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 | |
fca47040 PZ |
132 | |
133 | %files devel | |
134 | %defattr(644,root,root,755) | |
3c4c9c1f AF |
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 | |
fca47040 | 144 | |
5ac078f3 | 145 | %if %{with apidocs} |
fca47040 PZ |
146 | %files apidocs |
147 | %defattr(644,root,root,755) | |
0df954ce JB |
148 | %{_gtkdocdir}/libchamplain-0.12 |
149 | %{_gtkdocdir}/libchamplain-gtk-0.12 | |
5ac078f3 ŁK |
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 |