3 %bcond_without vala # do not build Vala API
5 Summary: Library to access weather information from online services for numerous locations
6 Summary(pl.UTF-8): Biblioteka dostępu do informacji pogodowych z serwisów internetowych dla różnych miejsc
12 Source0: http://ftp.gnome.org/pub/GNOME/sources/libgweather/3.14/%{name}-%{version}.tar.xz
13 # Source0-md5: c5b5b8ad48d33cc54ca86357b9021d75
14 URL: http://www.gnome.org/
15 BuildRequires: autoconf >= 2.64
16 BuildRequires: automake >= 1:1.11
17 BuildRequires: gettext-devel >= 0.18
18 BuildRequires: geocode-glib-devel
19 BuildRequires: glib2-devel >= 1:2.35.1
20 BuildRequires: gnome-common >= 2.20.0
21 BuildRequires: gobject-introspection-devel >= 0.10.0
22 BuildRequires: gtk+3-devel >= 3.14.0
23 BuildRequires: gtk-doc >= 1.11
24 BuildRequires: intltool >= 0.50.0
25 BuildRequires: libsoup-devel >= 2.34.0
26 BuildRequires: libtool >= 2:2.2.6
27 BuildRequires: libxml2-devel >= 1:2.6.30
28 BuildRequires: pkgconfig >= 1:0.19
29 BuildRequires: tar >= 1:1.22
30 %{?with_vala:BuildRequires: vala >= 2:0.18.0}
32 Requires(post,postun): glib2 >= 1:2.35.1
33 Requires: glib2 >= 1:2.35.1
34 Requires: gtk+3 >= 3.14.0
35 Requires: libsoup >= 2.34.0
36 Requires: libxml2 >= 1:2.6.30
37 # sr@Latn vs. sr@latin
38 Conflicts: glibc-misc < 6:2.7
39 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42 libgweather is a library to access weather information from online
43 services for numerous locations.
45 %description -l pl.UTF-8
46 libgweather to biblioteka pozwalająca na dostęp do informacji
47 pogodowych z serwisów internetowych dla różnych miejsc.
50 Summary: Header files for libgweather
51 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libgweather
52 Group: X11/Development/Libraries
53 Requires: %{name} = %{version}-%{release}
54 Requires: gtk+3-devel >= 3.14.0
55 Requires: libsoup-devel >= 2.34.0
56 Requires: libxml2-devel >= 1:2.6.30
57 Obsoletes: gnome-applets-devel <= 2.21.4
60 Header files for libgweather.
62 %description devel -l pl.UTF-8
63 Pliki nagłówkowe biblioteki libgweather.
66 Summary: Static libgweather library
67 Summary(pl.UTF-8): Statyczna biblioteka libgweather
68 Group: X11/Development/Libraries
69 Requires: %{name}-devel = %{version}-%{release}
72 Static libgweather library.
74 %description static -l pl.UTF-8
75 Statyczna biblioteka libgweather.
78 Summary: libgweather API documentation
79 Summary(pl.UTF-8): Dokumentacja API biblioteki libgweather
81 Requires: gtk-doc-common
84 libgweather API documentation.
86 %description apidocs -l pl.UTF-8
87 Dokumentacja API biblioteki libgweather.
90 Summary: libgweather catalog file for Glade
91 Summary(pl.UTF-8): Plik katalogu libgweather dla Glade
92 Group: X11/Development/Libraries
93 Requires: %{name}-devel = %{version}-%{release}
94 Requires: glade >= 2.0
97 libgweather catalog file for Glade.
99 %description glade -l pl.UTF-8
100 Plik katalogu libgweather dla Glade.
102 %package -n vala-libgweather
103 Summary: libgweather API for Vala language
104 Summary(pl.UTF-8): API biblioteki libgweather dla języka Vala
105 Group: Development/Libraries
106 Requires: %{name}-devel = %{version}-%{release}
107 Requires: vala >= 2:0.18.0
109 %description -n vala-libgweather
110 libgweather API for Vala language.
112 %description -n vala-libgweather -l pl.UTF-8
113 API biblioteki libgweather dla języka Vala.
127 %{__enable_disable vala vala} \
128 --with-zoneinfo-dir=%{_datadir}/zoneinfo \
130 --with-html-dir=%{_gtkdocdir} \
131 --disable-silent-rules \
134 %{__make} -j1 -C data
138 rm -rf $RPM_BUILD_ROOT
141 DESTDIR=$RPM_BUILD_ROOT
143 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/es_ES
144 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
146 %find_lang libgweather-3.0 --all-name
149 rm -rf $RPM_BUILD_ROOT
153 %glib_compile_schemas
157 %glib_compile_schemas
159 %files -f libgweather-3.0.lang
160 %defattr(644,root,root,755)
161 %doc AUTHORS HACKING NEWS README
162 %attr(755,root,root) %{_libdir}/libgweather-3.so.*.*.*
163 %attr(755,root,root) %ghost %{_libdir}/libgweather-3.so.6
164 %{_datadir}/glib-2.0/schemas/org.gnome.GWeather.enums.xml
165 %{_datadir}/glib-2.0/schemas/org.gnome.GWeather.gschema.xml
166 %dir %{_datadir}/libgweather
167 %{_datadir}/libgweather/Locations.xml
168 %{_datadir}/libgweather/locations.dtd
169 %{_libdir}/girepository-1.0/GWeather-3.0.typelib
172 %defattr(644,root,root,755)
173 %attr(755,root,root) %{_libdir}/libgweather-3.so
174 %{_includedir}/libgweather-3.0
175 %{_pkgconfigdir}/gweather-3.0.pc
176 %{_datadir}/gir-1.0/GWeather-3.0.gir
179 %defattr(644,root,root,755)
180 %{_libdir}/libgweather-3.a
183 %defattr(644,root,root,755)
184 %{_gtkdocdir}/libgweather-3.0
187 %defattr(644,root,root,755)
188 %{_datadir}/glade/catalogs/libgweather.xml
191 %files -n vala-libgweather
192 %defattr(644,root,root,755)
193 %{_datadir}/vala/vapi/gweather-3.0.vapi