]>
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 |
7e622733 | 9 | Version: 3.28.1 |
d437c0b0 | 10 | Release: 1 |
c9828fba PZ |
11 | License: GPL v2+ |
12 | Group: X11/Libraries | |
33a39012 | 13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libgweather/3.28/%{name}-%{version}.tar.xz |
7e622733 | 14 | # Source0-md5: 45dee6905d80d57e422c103e227a68d0 |
c9828fba | 15 | URL: http://www.gnome.org/ |
3b3e465e | 16 | BuildRequires: geocode-glib-devel |
f56c3346 | 17 | BuildRequires: gettext-tools >= 0.18 |
bc0ad4ae | 18 | %{?with_glade:BuildRequires: glade-devel >= 2.0} |
cf4e621b | 19 | BuildRequires: glib2-devel >= 1:2.35.1 |
c9828fba | 20 | BuildRequires: gnome-common >= 2.20.0 |
642b0181 | 21 | BuildRequires: gobject-introspection-devel >= 0.10.0 |
3b3e465e | 22 | BuildRequires: gtk+3-devel >= 3.14.0 |
957c5fdb | 23 | BuildRequires: gtk-doc >= 1.11 |
21a08ec1 | 24 | BuildRequires: intltool >= 0.50.0 |
de1942ed | 25 | BuildRequires: libsoup-devel >= 2.44.0 |
ddb8530d | 26 | BuildRequires: libxml2-devel >= 1:2.6.30 |
33a39012 | 27 | BuildRequires: meson >= 0.43.0 |
1b4360b9 | 28 | BuildRequires: pkgconfig >= 1:0.19 |
c09eeea8 | 29 | BuildRequires: rpmbuild(macros) >= 1.592 |
65eac4a2 | 30 | BuildRequires: tar >= 1:1.22 |
280043a7 | 31 | %{?with_vala:BuildRequires: vala >= 2:0.18.0} |
65eac4a2 | 32 | BuildRequires: xz |
c09eeea8 | 33 | Requires(post,postun): /sbin/ldconfig |
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 |
de1942ed | 37 | Requires: libsoup >= 2.44.0 |
02c189b8 | 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 |
de1942ed | 57 | Requires: libsoup-devel >= 2.44.0 |
ddb8530d | 58 | Requires: libxml2-devel >= 1:2.6.30 |
7da92f12 | 59 | Obsoletes: gnome-applets-devel <= 2.21.4 |
33a39012 | 60 | Obsoletes: libgweather-static < 3.28.0 |
c9828fba PZ |
61 | |
62 | %description devel | |
63 | Header files for libgweather. | |
64 | ||
244020ad JB |
65 | %description devel -l pl.UTF-8 |
66 | Pliki nagłówkowe biblioteki libgweather. | |
67 | ||
c9828fba PZ |
68 | %package static |
69 | Summary: Static libgweather library | |
244020ad | 70 | Summary(pl.UTF-8): Statyczna biblioteka libgweather |
1b4360b9 | 71 | Group: X11/Development/Libraries |
c9828fba PZ |
72 | Requires: %{name}-devel = %{version}-%{release} |
73 | ||
74 | %description static | |
75 | Static libgweather library. | |
76 | ||
244020ad JB |
77 | %description static -l pl.UTF-8 |
78 | Statyczna biblioteka libgweather. | |
79 | ||
1f4859e3 PZ |
80 | %package apidocs |
81 | Summary: libgweather API documentation | |
82 | Summary(pl.UTF-8): Dokumentacja API biblioteki libgweather | |
83 | Group: Documentation | |
84 | Requires: gtk-doc-common | |
bb9e321a ER |
85 | %if "%{_rpmversion}" >= "5" |
86 | BuildArch: noarch | |
87 | %endif | |
1f4859e3 PZ |
88 | |
89 | %description apidocs | |
90 | libgweather API documentation. | |
91 | ||
92 | %description apidocs -l pl.UTF-8 | |
93 | Dokumentacja API biblioteki libgweather. | |
94 | ||
a3e1184f MB |
95 | %package glade |
96 | Summary: libgweather catalog file for Glade | |
bc0ad4ae JB |
97 | Summary(pl.UTF-8): Plik katalogu libgweather dla Glade |
98 | Group: X11/Development/Libraries | |
99 | Requires: %{name}-devel = %{version}-%{release} | |
100 | Requires: glade >= 2.0 | |
a3e1184f MB |
101 | |
102 | %description glade | |
103 | libgweather catalog file for Glade. | |
104 | ||
105 | %description glade -l pl.UTF-8 | |
106 | Plik katalogu libgweather dla Glade. | |
107 | ||
280043a7 | 108 | %package -n vala-libgweather |
977b4ca8 ŁK |
109 | Summary: libgweather API for Vala language |
110 | Summary(pl.UTF-8): API biblioteki libgweather dla języka Vala | |
111 | Group: Development/Libraries | |
112 | Requires: %{name}-devel = %{version}-%{release} | |
113 | Requires: vala >= 2:0.18.0 | |
63f9bae8 ER |
114 | %if "%{_rpmversion}" >= "5" |
115 | BuildArch: noarch | |
116 | %endif | |
280043a7 MB |
117 | |
118 | %description -n vala-libgweather | |
119 | libgweather API for Vala language. | |
120 | ||
121 | %description -n vala-libgweather -l pl.UTF-8 | |
02c189b8 | 122 | API biblioteki libgweather dla języka Vala. |
280043a7 | 123 | |
c9828fba PZ |
124 | %prep |
125 | %setup -q | |
126 | ||
127 | %build | |
33a39012 MB |
128 | %meson build \ |
129 | -Dglade_catalog=%{!?with_glade:false}%{?with_glade:true} \ | |
130 | -Dgtk_doc=true \ | |
131 | -Dzoneinfo_dir=%{_datadir}/zoneinfo \ | |
132 | -Denable_vala=%{!?with_vala:false}%{?with_vala:true} | |
133 | ||
134 | %meson_build -C build | |
c9828fba PZ |
135 | |
136 | %install | |
137 | rm -rf $RPM_BUILD_ROOT | |
138 | ||
33a39012 | 139 | %meson_install -C build |
c9828fba | 140 | |
21a08ec1 | 141 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/es_ES |
1b4360b9 | 142 | |
280043a7 | 143 | %find_lang libgweather-3.0 --all-name |
4d39f76c | 144 | |
c9828fba PZ |
145 | %clean |
146 | rm -rf $RPM_BUILD_ROOT | |
147 | ||
148 | %post | |
149 | /sbin/ldconfig | |
21a08ec1 | 150 | %glib_compile_schemas |
c9828fba | 151 | |
a24a2447 MB |
152 | %postun |
153 | /sbin/ldconfig | |
21a08ec1 | 154 | %glib_compile_schemas |
c9828fba | 155 | |
4d0c23ce | 156 | %files -f libgweather-3.0.lang |
c9828fba | 157 | %defattr(644,root,root,755) |
3b3e465e | 158 | %doc AUTHORS HACKING NEWS README |
4d0c23ce | 159 | %attr(755,root,root) %{_libdir}/libgweather-3.so.*.*.* |
33a39012 | 160 | %attr(755,root,root) %ghost %{_libdir}/libgweather-3.so.15 |
21a08ec1 ŁK |
161 | %{_datadir}/glib-2.0/schemas/org.gnome.GWeather.enums.xml |
162 | %{_datadir}/glib-2.0/schemas/org.gnome.GWeather.gschema.xml | |
4d39f76c MB |
163 | %dir %{_datadir}/libgweather |
164 | %{_datadir}/libgweather/Locations.xml | |
165 | %{_datadir}/libgweather/locations.dtd | |
4d0c23ce | 166 | %{_libdir}/girepository-1.0/GWeather-3.0.typelib |
c9828fba PZ |
167 | |
168 | %files devel | |
169 | %defattr(644,root,root,755) | |
4d0c23ce ŁK |
170 | %attr(755,root,root) %{_libdir}/libgweather-3.so |
171 | %{_includedir}/libgweather-3.0 | |
172 | %{_pkgconfigdir}/gweather-3.0.pc | |
173 | %{_datadir}/gir-1.0/GWeather-3.0.gir | |
c9828fba | 174 | |
1f4859e3 PZ |
175 | %files apidocs |
176 | %defattr(644,root,root,755) | |
33a39012 | 177 | %{_gtkdocdir}/libgweather |
280043a7 | 178 | |
bc0ad4ae | 179 | %if %{with glade} |
a3e1184f MB |
180 | %files glade |
181 | %defattr(644,root,root,755) | |
182 | %{_datadir}/glade/catalogs/libgweather.xml | |
bc0ad4ae | 183 | %endif |
a3e1184f | 184 | |
280043a7 MB |
185 | %if %{with vala} |
186 | %files -n vala-libgweather | |
187 | %defattr(644,root,root,755) | |
188 | %{_datadir}/vala/vapi/gweather-3.0.vapi | |
33a39012 | 189 | %{_datadir}/vala/vapi/gweather-3.0.deps |
280043a7 | 190 | %endif |