]>
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 |
2ac84f77 | 9 | Version: 3.32.1 |
d437c0b0 | 10 | Release: 1 |
c9828fba PZ |
11 | License: GPL v2+ |
12 | Group: X11/Libraries | |
2ac84f77 JB |
13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libgweather/3.32/%{name}-%{version}.tar.xz |
14 | # Source0-md5: 048de183cbeaf7353a875cb5ebd9b4f9 | |
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 |
642b0181 | 20 | BuildRequires: gobject-introspection-devel >= 0.10.0 |
3b3e465e | 21 | BuildRequires: gtk+3-devel >= 3.14.0 |
957c5fdb | 22 | BuildRequires: gtk-doc >= 1.11 |
de1942ed | 23 | BuildRequires: libsoup-devel >= 2.44.0 |
ddb8530d | 24 | BuildRequires: libxml2-devel >= 1:2.6.30 |
2ac84f77 JB |
25 | BuildRequires: meson >= 0.48.0 |
26 | BuildRequires: ninja >= 1.5 | |
1b4360b9 | 27 | BuildRequires: pkgconfig >= 1:0.19 |
2ac84f77 | 28 | BuildRequires: rpmbuild(macros) >= 1.736 |
65eac4a2 | 29 | BuildRequires: tar >= 1:1.22 |
280043a7 | 30 | %{?with_vala:BuildRequires: vala >= 2:0.18.0} |
65eac4a2 | 31 | BuildRequires: xz |
c09eeea8 | 32 | Requires(post,postun): /sbin/ldconfig |
cf4e621b | 33 | Requires(post,postun): glib2 >= 1:2.35.1 |
02c189b8 | 34 | Requires: glib2 >= 1:2.35.1 |
3b3e465e | 35 | Requires: gtk+3 >= 3.14.0 |
de1942ed | 36 | Requires: libsoup >= 2.44.0 |
02c189b8 | 37 | Requires: libxml2 >= 1:2.6.30 |
c9828fba PZ |
38 | # sr@Latn vs. sr@latin |
39 | Conflicts: glibc-misc < 6:2.7 | |
40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
41 | ||
42 | %description | |
43 | libgweather is a library to access weather information from online | |
44 | services for numerous locations. | |
45 | ||
244020ad JB |
46 | %description -l pl.UTF-8 |
47 | libgweather to biblioteka pozwalająca na dostęp do informacji | |
48 | pogodowych z serwisów internetowych dla różnych miejsc. | |
49 | ||
c9828fba PZ |
50 | %package devel |
51 | Summary: Header files for libgweather | |
244020ad | 52 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libgweather |
c9828fba PZ |
53 | Group: X11/Development/Libraries |
54 | Requires: %{name} = %{version}-%{release} | |
3b3e465e | 55 | Requires: gtk+3-devel >= 3.14.0 |
de1942ed | 56 | Requires: libsoup-devel >= 2.44.0 |
ddb8530d | 57 | Requires: libxml2-devel >= 1:2.6.30 |
7da92f12 | 58 | Obsoletes: gnome-applets-devel <= 2.21.4 |
33a39012 | 59 | Obsoletes: libgweather-static < 3.28.0 |
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 | |
bb9e321a ER |
84 | %if "%{_rpmversion}" >= "5" |
85 | BuildArch: noarch | |
86 | %endif | |
1f4859e3 PZ |
87 | |
88 | %description apidocs | |
89 | libgweather API documentation. | |
90 | ||
91 | %description apidocs -l pl.UTF-8 | |
92 | Dokumentacja API biblioteki libgweather. | |
93 | ||
a3e1184f MB |
94 | %package glade |
95 | Summary: libgweather catalog file for Glade | |
bc0ad4ae JB |
96 | Summary(pl.UTF-8): Plik katalogu libgweather dla Glade |
97 | Group: X11/Development/Libraries | |
98 | Requires: %{name}-devel = %{version}-%{release} | |
99 | Requires: glade >= 2.0 | |
a3e1184f MB |
100 | |
101 | %description glade | |
102 | libgweather catalog file for Glade. | |
103 | ||
104 | %description glade -l pl.UTF-8 | |
105 | Plik katalogu libgweather dla Glade. | |
106 | ||
280043a7 | 107 | %package -n vala-libgweather |
977b4ca8 ŁK |
108 | Summary: libgweather API for Vala language |
109 | Summary(pl.UTF-8): API biblioteki libgweather dla języka Vala | |
110 | Group: Development/Libraries | |
111 | Requires: %{name}-devel = %{version}-%{release} | |
112 | Requires: vala >= 2:0.18.0 | |
63f9bae8 ER |
113 | %if "%{_rpmversion}" >= "5" |
114 | BuildArch: noarch | |
115 | %endif | |
280043a7 MB |
116 | |
117 | %description -n vala-libgweather | |
118 | libgweather API for Vala language. | |
119 | ||
120 | %description -n vala-libgweather -l pl.UTF-8 | |
02c189b8 | 121 | API biblioteki libgweather dla języka Vala. |
280043a7 | 122 | |
c9828fba PZ |
123 | %prep |
124 | %setup -q | |
125 | ||
126 | %build | |
33a39012 MB |
127 | %meson build \ |
128 | -Dglade_catalog=%{!?with_glade:false}%{?with_glade:true} \ | |
129 | -Dgtk_doc=true \ | |
130 | -Dzoneinfo_dir=%{_datadir}/zoneinfo \ | |
131 | -Denable_vala=%{!?with_vala:false}%{?with_vala:true} | |
132 | ||
2ac84f77 | 133 | %ninja_build -C build |
c9828fba PZ |
134 | |
135 | %install | |
136 | rm -rf $RPM_BUILD_ROOT | |
137 | ||
2ac84f77 | 138 | %ninja_install -C build |
c9828fba | 139 | |
2ac84f77 | 140 | # just a copy of es |
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) |
2ac84f77 | 158 | %doc AUTHORS MAINTAINERS NEWS README.md |
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 |