]>
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 | |
280043a7 | 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 |
9a0fd730 | 9 | Version: 3.16.1 |
f56c3346 | 10 | Release: 1 |
c9828fba PZ |
11 | License: GPL v2+ |
12 | Group: X11/Libraries | |
f56c3346 | 13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libgweather/3.16/%{name}-%{version}.tar.xz |
9a0fd730 | 14 | # Source0-md5: 6960114adbfa2728815b4bd2b14b1a54 |
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 |
70182b1a | 27 | BuildRequires: libsoup-devel >= 2.34.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 |
65eac4a2 | 31 | BuildRequires: tar >= 1:1.22 |
280043a7 | 32 | %{?with_vala:BuildRequires: vala >= 2:0.18.0} |
65eac4a2 | 33 | BuildRequires: xz |
cf4e621b | 34 | Requires(post,postun): glib2 >= 1:2.35.1 |
02c189b8 | 35 | Requires: glib2 >= 1:2.35.1 |
3b3e465e | 36 | Requires: gtk+3 >= 3.14.0 |
02c189b8 JB |
37 | Requires: libsoup >= 2.34.0 |
38 | Requires: libxml2 >= 1:2.6.30 | |
c9828fba PZ |
39 | # sr@Latn vs. sr@latin |
40 | Conflicts: glibc-misc < 6:2.7 | |
41 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
42 | ||
43 | %description | |
44 | libgweather is a library to access weather information from online | |
45 | services for numerous locations. | |
46 | ||
244020ad JB |
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. | |
50 | ||
c9828fba PZ |
51 | %package devel |
52 | Summary: Header files for libgweather | |
244020ad | 53 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libgweather |
c9828fba PZ |
54 | Group: X11/Development/Libraries |
55 | Requires: %{name} = %{version}-%{release} | |
3b3e465e | 56 | Requires: gtk+3-devel >= 3.14.0 |
cf4e621b | 57 | Requires: libsoup-devel >= 2.34.0 |
ddb8530d | 58 | Requires: libxml2-devel >= 1:2.6.30 |
7da92f12 | 59 | Obsoletes: gnome-applets-devel <= 2.21.4 |
c9828fba PZ |
60 | |
61 | %description devel | |
62 | Header files for libgweather. | |
63 | ||
244020ad JB |
64 | %description devel -l pl.UTF-8 |
65 | Pliki nagłówkowe biblioteki libgweather. | |
66 | ||
c9828fba PZ |
67 | %package static |
68 | Summary: Static libgweather library | |
244020ad | 69 | Summary(pl.UTF-8): Statyczna biblioteka libgweather |
1b4360b9 | 70 | Group: X11/Development/Libraries |
c9828fba PZ |
71 | Requires: %{name}-devel = %{version}-%{release} |
72 | ||
73 | %description static | |
74 | Static libgweather library. | |
75 | ||
244020ad JB |
76 | %description static -l pl.UTF-8 |
77 | Statyczna biblioteka libgweather. | |
78 | ||
1f4859e3 PZ |
79 | %package apidocs |
80 | Summary: libgweather API documentation | |
81 | Summary(pl.UTF-8): Dokumentacja API biblioteki libgweather | |
82 | Group: Documentation | |
83 | Requires: gtk-doc-common | |
84 | ||
85 | %description apidocs | |
86 | libgweather API documentation. | |
87 | ||
88 | %description apidocs -l pl.UTF-8 | |
89 | Dokumentacja API biblioteki libgweather. | |
90 | ||
a3e1184f MB |
91 | %package glade |
92 | Summary: libgweather catalog file for Glade | |
bc0ad4ae JB |
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 | |
a3e1184f MB |
97 | |
98 | %description glade | |
99 | libgweather catalog file for Glade. | |
100 | ||
101 | %description glade -l pl.UTF-8 | |
102 | Plik katalogu libgweather dla Glade. | |
103 | ||
280043a7 | 104 | %package -n vala-libgweather |
977b4ca8 ŁK |
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 | |
280043a7 MB |
110 | |
111 | %description -n vala-libgweather | |
112 | libgweather API for Vala language. | |
113 | ||
114 | %description -n vala-libgweather -l pl.UTF-8 | |
02c189b8 | 115 | API biblioteki libgweather dla języka Vala. |
280043a7 | 116 | |
c9828fba PZ |
117 | %prep |
118 | %setup -q | |
119 | ||
120 | %build | |
a9867bbe | 121 | %{__gtkdocize} |
c9828fba PZ |
122 | %{__intltoolize} |
123 | %{__libtoolize} | |
8726bc62 | 124 | %{__aclocal} -I m4 |
c9828fba | 125 | %{__autoconf} |
1b4360b9 | 126 | %{__autoheader} |
c9828fba | 127 | %{__automake} |
2715db3e | 128 | %configure \ |
bc0ad4ae | 129 | %{!?with_glade:--disable-glade-catalog} \ |
1f4859e3 | 130 | --enable-gtk-doc \ |
642b0181 | 131 | --disable-silent-rules \ |
bc0ad4ae JB |
132 | --enable-static \ |
133 | %{__enable_disable vala} \ | |
134 | --with-html-dir=%{_gtkdocdir} \ | |
135 | --with-zoneinfo-dir=%{_datadir}/zoneinfo | |
4d0c23ce | 136 | |
9fae6b8b SS |
137 | %{__make} -j1 -C data |
138 | %{__make} | |
c9828fba PZ |
139 | |
140 | %install | |
141 | rm -rf $RPM_BUILD_ROOT | |
142 | ||
143 | %{__make} install \ | |
144 | DESTDIR=$RPM_BUILD_ROOT | |
145 | ||
21a08ec1 | 146 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/es_ES |
4d0c23ce | 147 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
1b4360b9 | 148 | |
280043a7 | 149 | %find_lang libgweather-3.0 --all-name |
4d39f76c | 150 | |
c9828fba PZ |
151 | %clean |
152 | rm -rf $RPM_BUILD_ROOT | |
153 | ||
154 | %post | |
155 | /sbin/ldconfig | |
21a08ec1 | 156 | %glib_compile_schemas |
c9828fba | 157 | |
a24a2447 MB |
158 | %postun |
159 | /sbin/ldconfig | |
21a08ec1 | 160 | %glib_compile_schemas |
c9828fba | 161 | |
4d0c23ce | 162 | %files -f libgweather-3.0.lang |
c9828fba | 163 | %defattr(644,root,root,755) |
3b3e465e | 164 | %doc AUTHORS HACKING NEWS README |
4d0c23ce | 165 | %attr(755,root,root) %{_libdir}/libgweather-3.so.*.*.* |
280043a7 | 166 | %attr(755,root,root) %ghost %{_libdir}/libgweather-3.so.6 |
21a08ec1 ŁK |
167 | %{_datadir}/glib-2.0/schemas/org.gnome.GWeather.enums.xml |
168 | %{_datadir}/glib-2.0/schemas/org.gnome.GWeather.gschema.xml | |
4d39f76c MB |
169 | %dir %{_datadir}/libgweather |
170 | %{_datadir}/libgweather/Locations.xml | |
171 | %{_datadir}/libgweather/locations.dtd | |
4d0c23ce | 172 | %{_libdir}/girepository-1.0/GWeather-3.0.typelib |
c9828fba PZ |
173 | |
174 | %files devel | |
175 | %defattr(644,root,root,755) | |
4d0c23ce ŁK |
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 | |
c9828fba PZ |
180 | |
181 | %files static | |
182 | %defattr(644,root,root,755) | |
4d0c23ce | 183 | %{_libdir}/libgweather-3.a |
1f4859e3 PZ |
184 | |
185 | %files apidocs | |
186 | %defattr(644,root,root,755) | |
4d0c23ce | 187 | %{_gtkdocdir}/libgweather-3.0 |
280043a7 | 188 | |
bc0ad4ae | 189 | %if %{with glade} |
a3e1184f MB |
190 | %files glade |
191 | %defattr(644,root,root,755) | |
192 | %{_datadir}/glade/catalogs/libgweather.xml | |
bc0ad4ae | 193 | %endif |
a3e1184f | 194 | |
280043a7 MB |
195 | %if %{with vala} |
196 | %files -n vala-libgweather | |
197 | %defattr(644,root,root,755) | |
198 | %{_datadir}/vala/vapi/gweather-3.0.vapi | |
199 | %endif |