]>
Commit | Line | Data |
---|---|---|
280043a7 MB |
1 | # |
2 | # Conditional build: | |
bc0ad4ae JB |
3 | %bcond_without glade # Glade catalog |
4 | %bcond_without vala # do not build Vala API | |
63f9bae8 | 5 | |
244020ad JB |
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 | |
c9828fba | 8 | Name: libgweather |
eb161a78 | 9 | Version: 3.24.1 |
d437c0b0 | 10 | Release: 1 |
c9828fba PZ |
11 | License: GPL v2+ |
12 | Group: X11/Libraries | |
16a65507 | 13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libgweather/3.24/%{name}-%{version}.tar.xz |
eb161a78 | 14 | # Source0-md5: ea9071ac273158ac81b2cdec83373624 |
c9828fba | 15 | URL: http://www.gnome.org/ |
957c5fdb ŁK |
16 | BuildRequires: autoconf >= 2.64 |
17 | BuildRequires: automake >= 1:1.11 | |
3b3e465e | 18 | BuildRequires: geocode-glib-devel |
f56c3346 | 19 | BuildRequires: gettext-tools >= 0.18 |
bc0ad4ae | 20 | %{?with_glade:BuildRequires: glade-devel >= 2.0} |
cf4e621b | 21 | BuildRequires: glib2-devel >= 1:2.35.1 |
c9828fba | 22 | BuildRequires: gnome-common >= 2.20.0 |
642b0181 | 23 | BuildRequires: gobject-introspection-devel >= 0.10.0 |
3b3e465e | 24 | BuildRequires: gtk+3-devel >= 3.14.0 |
957c5fdb | 25 | BuildRequires: gtk-doc >= 1.11 |
21a08ec1 | 26 | BuildRequires: intltool >= 0.50.0 |
de1942ed | 27 | BuildRequires: libsoup-devel >= 2.44.0 |
7ae3b956 | 28 | BuildRequires: libtool >= 2:2.2.6 |
ddb8530d | 29 | BuildRequires: libxml2-devel >= 1:2.6.30 |
1b4360b9 | 30 | BuildRequires: pkgconfig >= 1:0.19 |
c09eeea8 | 31 | BuildRequires: rpmbuild(macros) >= 1.592 |
65eac4a2 | 32 | BuildRequires: tar >= 1:1.22 |
280043a7 | 33 | %{?with_vala:BuildRequires: vala >= 2:0.18.0} |
65eac4a2 | 34 | BuildRequires: xz |
c09eeea8 | 35 | Requires(post,postun): /sbin/ldconfig |
cf4e621b | 36 | Requires(post,postun): glib2 >= 1:2.35.1 |
02c189b8 | 37 | Requires: glib2 >= 1:2.35.1 |
3b3e465e | 38 | Requires: gtk+3 >= 3.14.0 |
de1942ed | 39 | Requires: libsoup >= 2.44.0 |
02c189b8 | 40 | Requires: libxml2 >= 1:2.6.30 |
c9828fba PZ |
41 | # sr@Latn vs. sr@latin |
42 | Conflicts: glibc-misc < 6:2.7 | |
43 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
44 | ||
45 | %description | |
46 | libgweather is a library to access weather information from online | |
47 | services for numerous locations. | |
48 | ||
244020ad JB |
49 | %description -l pl.UTF-8 |
50 | libgweather to biblioteka pozwalająca na dostęp do informacji | |
51 | pogodowych z serwisów internetowych dla różnych miejsc. | |
52 | ||
c9828fba PZ |
53 | %package devel |
54 | Summary: Header files for libgweather | |
244020ad | 55 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libgweather |
c9828fba PZ |
56 | Group: X11/Development/Libraries |
57 | Requires: %{name} = %{version}-%{release} | |
3b3e465e | 58 | Requires: gtk+3-devel >= 3.14.0 |
de1942ed | 59 | Requires: libsoup-devel >= 2.44.0 |
ddb8530d | 60 | Requires: libxml2-devel >= 1:2.6.30 |
7da92f12 | 61 | Obsoletes: gnome-applets-devel <= 2.21.4 |
c9828fba PZ |
62 | |
63 | %description devel | |
64 | Header files for libgweather. | |
65 | ||
244020ad JB |
66 | %description devel -l pl.UTF-8 |
67 | Pliki nagłówkowe biblioteki libgweather. | |
68 | ||
c9828fba PZ |
69 | %package static |
70 | Summary: Static libgweather library | |
244020ad | 71 | Summary(pl.UTF-8): Statyczna biblioteka libgweather |
1b4360b9 | 72 | Group: X11/Development/Libraries |
c9828fba PZ |
73 | Requires: %{name}-devel = %{version}-%{release} |
74 | ||
75 | %description static | |
76 | Static libgweather library. | |
77 | ||
244020ad JB |
78 | %description static -l pl.UTF-8 |
79 | Statyczna biblioteka libgweather. | |
80 | ||
1f4859e3 PZ |
81 | %package apidocs |
82 | Summary: libgweather API documentation | |
83 | Summary(pl.UTF-8): Dokumentacja API biblioteki libgweather | |
84 | Group: Documentation | |
85 | Requires: gtk-doc-common | |
bb9e321a ER |
86 | %if "%{_rpmversion}" >= "5" |
87 | BuildArch: noarch | |
88 | %endif | |
1f4859e3 PZ |
89 | |
90 | %description apidocs | |
91 | libgweather API documentation. | |
92 | ||
93 | %description apidocs -l pl.UTF-8 | |
94 | Dokumentacja API biblioteki libgweather. | |
95 | ||
a3e1184f MB |
96 | %package glade |
97 | Summary: libgweather catalog file for Glade | |
bc0ad4ae JB |
98 | Summary(pl.UTF-8): Plik katalogu libgweather dla Glade |
99 | Group: X11/Development/Libraries | |
100 | Requires: %{name}-devel = %{version}-%{release} | |
101 | Requires: glade >= 2.0 | |
a3e1184f MB |
102 | |
103 | %description glade | |
104 | libgweather catalog file for Glade. | |
105 | ||
106 | %description glade -l pl.UTF-8 | |
107 | Plik katalogu libgweather dla Glade. | |
108 | ||
280043a7 | 109 | %package -n vala-libgweather |
977b4ca8 ŁK |
110 | Summary: libgweather API for Vala language |
111 | Summary(pl.UTF-8): API biblioteki libgweather dla języka Vala | |
112 | Group: Development/Libraries | |
113 | Requires: %{name}-devel = %{version}-%{release} | |
114 | Requires: vala >= 2:0.18.0 | |
63f9bae8 ER |
115 | %if "%{_rpmversion}" >= "5" |
116 | BuildArch: noarch | |
117 | %endif | |
280043a7 MB |
118 | |
119 | %description -n vala-libgweather | |
120 | libgweather API for Vala language. | |
121 | ||
122 | %description -n vala-libgweather -l pl.UTF-8 | |
02c189b8 | 123 | API biblioteki libgweather dla języka Vala. |
280043a7 | 124 | |
c9828fba PZ |
125 | %prep |
126 | %setup -q | |
127 | ||
128 | %build | |
a9867bbe | 129 | %{__gtkdocize} |
c9828fba PZ |
130 | %{__intltoolize} |
131 | %{__libtoolize} | |
8726bc62 | 132 | %{__aclocal} -I m4 |
c9828fba | 133 | %{__autoconf} |
1b4360b9 | 134 | %{__autoheader} |
c9828fba | 135 | %{__automake} |
2715db3e | 136 | %configure \ |
bc0ad4ae | 137 | %{!?with_glade:--disable-glade-catalog} \ |
1f4859e3 | 138 | --enable-gtk-doc \ |
642b0181 | 139 | --disable-silent-rules \ |
bc0ad4ae JB |
140 | --enable-static \ |
141 | %{__enable_disable vala} \ | |
142 | --with-html-dir=%{_gtkdocdir} \ | |
143 | --with-zoneinfo-dir=%{_datadir}/zoneinfo | |
4d0c23ce | 144 | |
9fae6b8b SS |
145 | %{__make} -j1 -C data |
146 | %{__make} | |
c9828fba PZ |
147 | |
148 | %install | |
149 | rm -rf $RPM_BUILD_ROOT | |
150 | ||
151 | %{__make} install \ | |
152 | DESTDIR=$RPM_BUILD_ROOT | |
153 | ||
21a08ec1 | 154 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/es_ES |
4d0c23ce | 155 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
1b4360b9 | 156 | |
280043a7 | 157 | %find_lang libgweather-3.0 --all-name |
4d39f76c | 158 | |
c9828fba PZ |
159 | %clean |
160 | rm -rf $RPM_BUILD_ROOT | |
161 | ||
162 | %post | |
163 | /sbin/ldconfig | |
21a08ec1 | 164 | %glib_compile_schemas |
c9828fba | 165 | |
a24a2447 MB |
166 | %postun |
167 | /sbin/ldconfig | |
21a08ec1 | 168 | %glib_compile_schemas |
c9828fba | 169 | |
4d0c23ce | 170 | %files -f libgweather-3.0.lang |
c9828fba | 171 | %defattr(644,root,root,755) |
3b3e465e | 172 | %doc AUTHORS HACKING NEWS README |
4d0c23ce | 173 | %attr(755,root,root) %{_libdir}/libgweather-3.so.*.*.* |
280043a7 | 174 | %attr(755,root,root) %ghost %{_libdir}/libgweather-3.so.6 |
21a08ec1 ŁK |
175 | %{_datadir}/glib-2.0/schemas/org.gnome.GWeather.enums.xml |
176 | %{_datadir}/glib-2.0/schemas/org.gnome.GWeather.gschema.xml | |
4d39f76c MB |
177 | %dir %{_datadir}/libgweather |
178 | %{_datadir}/libgweather/Locations.xml | |
179 | %{_datadir}/libgweather/locations.dtd | |
4d0c23ce | 180 | %{_libdir}/girepository-1.0/GWeather-3.0.typelib |
c9828fba PZ |
181 | |
182 | %files devel | |
183 | %defattr(644,root,root,755) | |
4d0c23ce ŁK |
184 | %attr(755,root,root) %{_libdir}/libgweather-3.so |
185 | %{_includedir}/libgweather-3.0 | |
186 | %{_pkgconfigdir}/gweather-3.0.pc | |
187 | %{_datadir}/gir-1.0/GWeather-3.0.gir | |
c9828fba PZ |
188 | |
189 | %files static | |
190 | %defattr(644,root,root,755) | |
4d0c23ce | 191 | %{_libdir}/libgweather-3.a |
1f4859e3 PZ |
192 | |
193 | %files apidocs | |
194 | %defattr(644,root,root,755) | |
4d0c23ce | 195 | %{_gtkdocdir}/libgweather-3.0 |
280043a7 | 196 | |
bc0ad4ae | 197 | %if %{with glade} |
a3e1184f MB |
198 | %files glade |
199 | %defattr(644,root,root,755) | |
200 | %{_datadir}/glade/catalogs/libgweather.xml | |
bc0ad4ae | 201 | %endif |
a3e1184f | 202 | |
280043a7 MB |
203 | %if %{with vala} |
204 | %files -n vala-libgweather | |
205 | %defattr(644,root,root,755) | |
206 | %{_datadir}/vala/vapi/gweather-3.0.vapi | |
207 | %endif |