3 %bcond_without glade # Glade catalog
4 %bcond_without vala # do not build Vala API
6 Summary: Library to access weather information from online services for numerous locations
7 Summary(pl.UTF-8): Biblioteka dostępu do informacji pogodowych z serwisów internetowych dla różnych miejsc
13 Source0: http://ftp.gnome.org/pub/GNOME/sources/libgweather/3.18/%{name}-%{version}.tar.xz
14 # Source0-md5: 631c9a36be0314163d0b801c97736581
15 URL: http://www.gnome.org/
16 BuildRequires: autoconf >= 2.64
17 BuildRequires: automake >= 1:1.11
18 BuildRequires: geocode-glib-devel
19 BuildRequires: gettext-tools >= 0.18
20 %{?with_glade:BuildRequires: glade-devel >= 2.0}
21 BuildRequires: glib2-devel >= 1:2.35.1
22 BuildRequires: gnome-common >= 2.20.0
23 BuildRequires: gobject-introspection-devel >= 0.10.0
24 BuildRequires: gtk+3-devel >= 3.14.0
25 BuildRequires: gtk-doc >= 1.11
26 BuildRequires: intltool >= 0.50.0
27 BuildRequires: libsoup-devel >= 2.34.0
28 BuildRequires: libtool >= 2:2.2.6
29 BuildRequires: libxml2-devel >= 1:2.6.30
30 BuildRequires: pkgconfig >= 1:0.19
31 BuildRequires: tar >= 1:1.22
32 %{?with_vala:BuildRequires: vala >= 2:0.18.0}
34 Requires(post,postun): glib2 >= 1:2.35.1
35 Requires: glib2 >= 1:2.35.1
36 Requires: gtk+3 >= 3.14.0
37 Requires: libsoup >= 2.34.0
38 Requires: libxml2 >= 1:2.6.30
39 # sr@Latn vs. sr@latin
40 Conflicts: glibc-misc < 6:2.7
41 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44 libgweather is a library to access weather information from online
45 services for numerous locations.
47 %description -l pl.UTF-8
48 libgweather to biblioteka pozwalająca na dostęp do informacji
49 pogodowych z serwisów internetowych dla różnych miejsc.
52 Summary: Header files for libgweather
53 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libgweather
54 Group: X11/Development/Libraries
55 Requires: %{name} = %{version}-%{release}
56 Requires: gtk+3-devel >= 3.14.0
57 Requires: libsoup-devel >= 2.34.0
58 Requires: libxml2-devel >= 1:2.6.30
59 Obsoletes: gnome-applets-devel <= 2.21.4
62 Header files for libgweather.
64 %description devel -l pl.UTF-8
65 Pliki nagłówkowe biblioteki libgweather.
68 Summary: Static libgweather library
69 Summary(pl.UTF-8): Statyczna biblioteka libgweather
70 Group: X11/Development/Libraries
71 Requires: %{name}-devel = %{version}-%{release}
74 Static libgweather library.
76 %description static -l pl.UTF-8
77 Statyczna biblioteka libgweather.
80 Summary: libgweather API documentation
81 Summary(pl.UTF-8): Dokumentacja API biblioteki libgweather
83 Requires: gtk-doc-common
86 libgweather API documentation.
88 %description apidocs -l pl.UTF-8
89 Dokumentacja API biblioteki libgweather.
92 Summary: libgweather catalog file for Glade
93 Summary(pl.UTF-8): Plik katalogu libgweather dla Glade
94 Group: X11/Development/Libraries
95 Requires: %{name}-devel = %{version}-%{release}
96 Requires: glade >= 2.0
99 libgweather catalog file for Glade.
101 %description glade -l pl.UTF-8
102 Plik katalogu libgweather dla Glade.
104 %package -n vala-libgweather
105 Summary: libgweather API for Vala language
106 Summary(pl.UTF-8): API biblioteki libgweather dla języka Vala
107 Group: Development/Libraries
108 Requires: %{name}-devel = %{version}-%{release}
109 Requires: vala >= 2:0.18.0
111 %description -n vala-libgweather
112 libgweather API for Vala language.
114 %description -n vala-libgweather -l pl.UTF-8
115 API biblioteki libgweather dla języka Vala.
129 %{!?with_glade:--disable-glade-catalog} \
131 --disable-silent-rules \
133 %{__enable_disable vala} \
134 --with-html-dir=%{_gtkdocdir} \
135 --with-zoneinfo-dir=%{_datadir}/zoneinfo
137 %{__make} -j1 -C data
141 rm -rf $RPM_BUILD_ROOT
144 DESTDIR=$RPM_BUILD_ROOT
146 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/es_ES
147 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
149 %find_lang libgweather-3.0 --all-name
152 rm -rf $RPM_BUILD_ROOT
156 %glib_compile_schemas
160 %glib_compile_schemas
162 %files -f libgweather-3.0.lang
163 %defattr(644,root,root,755)
164 %doc AUTHORS HACKING NEWS README
165 %attr(755,root,root) %{_libdir}/libgweather-3.so.*.*.*
166 %attr(755,root,root) %ghost %{_libdir}/libgweather-3.so.6
167 %{_datadir}/glib-2.0/schemas/org.gnome.GWeather.enums.xml
168 %{_datadir}/glib-2.0/schemas/org.gnome.GWeather.gschema.xml
169 %dir %{_datadir}/libgweather
170 %{_datadir}/libgweather/Locations.xml
171 %{_datadir}/libgweather/locations.dtd
172 %{_libdir}/girepository-1.0/GWeather-3.0.typelib
175 %defattr(644,root,root,755)
176 %attr(755,root,root) %{_libdir}/libgweather-3.so
177 %{_includedir}/libgweather-3.0
178 %{_pkgconfigdir}/gweather-3.0.pc
179 %{_datadir}/gir-1.0/GWeather-3.0.gir
182 %defattr(644,root,root,755)
183 %{_libdir}/libgweather-3.a
186 %defattr(644,root,root,755)
187 %{_gtkdocdir}/libgweather-3.0
191 %defattr(644,root,root,755)
192 %{_datadir}/glade/catalogs/libgweather.xml
196 %files -n vala-libgweather
197 %defattr(644,root,root,755)
198 %{_datadir}/vala/vapi/gweather-3.0.vapi