]> git.pld-linux.org Git - packages/libgweather.git/blame - libgweather.spec
Update to 3.28.1
[packages/libgweather.git] / libgweather.spec
CommitLineData
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
6Summary: Library to access weather information from online services for numerous locations
7Summary(pl.UTF-8): Biblioteka dostępu do informacji pogodowych z serwisów internetowych dla różnych miejsc
c9828fba 8Name: libgweather
7e622733 9Version: 3.28.1
d437c0b0 10Release: 1
c9828fba
PZ
11License: GPL v2+
12Group: X11/Libraries
33a39012 13Source0: http://ftp.gnome.org/pub/GNOME/sources/libgweather/3.28/%{name}-%{version}.tar.xz
7e622733 14# Source0-md5: 45dee6905d80d57e422c103e227a68d0
c9828fba 15URL: http://www.gnome.org/
3b3e465e 16BuildRequires: geocode-glib-devel
f56c3346 17BuildRequires: gettext-tools >= 0.18
bc0ad4ae 18%{?with_glade:BuildRequires: glade-devel >= 2.0}
cf4e621b 19BuildRequires: glib2-devel >= 1:2.35.1
c9828fba 20BuildRequires: gnome-common >= 2.20.0
642b0181 21BuildRequires: gobject-introspection-devel >= 0.10.0
3b3e465e 22BuildRequires: gtk+3-devel >= 3.14.0
957c5fdb 23BuildRequires: gtk-doc >= 1.11
21a08ec1 24BuildRequires: intltool >= 0.50.0
de1942ed 25BuildRequires: libsoup-devel >= 2.44.0
ddb8530d 26BuildRequires: libxml2-devel >= 1:2.6.30
33a39012 27BuildRequires: meson >= 0.43.0
1b4360b9 28BuildRequires: pkgconfig >= 1:0.19
c09eeea8 29BuildRequires: rpmbuild(macros) >= 1.592
65eac4a2 30BuildRequires: tar >= 1:1.22
280043a7 31%{?with_vala:BuildRequires: vala >= 2:0.18.0}
65eac4a2 32BuildRequires: xz
c09eeea8 33Requires(post,postun): /sbin/ldconfig
cf4e621b 34Requires(post,postun): glib2 >= 1:2.35.1
02c189b8 35Requires: glib2 >= 1:2.35.1
3b3e465e 36Requires: gtk+3 >= 3.14.0
de1942ed 37Requires: libsoup >= 2.44.0
02c189b8 38Requires: libxml2 >= 1:2.6.30
c9828fba
PZ
39# sr@Latn vs. sr@latin
40Conflicts: glibc-misc < 6:2.7
41BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42
43%description
44libgweather is a library to access weather information from online
45services for numerous locations.
46
244020ad
JB
47%description -l pl.UTF-8
48libgweather to biblioteka pozwalająca na dostęp do informacji
49pogodowych z serwisów internetowych dla różnych miejsc.
50
c9828fba
PZ
51%package devel
52Summary: Header files for libgweather
244020ad 53Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libgweather
c9828fba
PZ
54Group: X11/Development/Libraries
55Requires: %{name} = %{version}-%{release}
3b3e465e 56Requires: gtk+3-devel >= 3.14.0
de1942ed 57Requires: libsoup-devel >= 2.44.0
ddb8530d 58Requires: libxml2-devel >= 1:2.6.30
7da92f12 59Obsoletes: gnome-applets-devel <= 2.21.4
33a39012 60Obsoletes: libgweather-static < 3.28.0
c9828fba
PZ
61
62%description devel
63Header files for libgweather.
64
244020ad
JB
65%description devel -l pl.UTF-8
66Pliki nagłówkowe biblioteki libgweather.
67
c9828fba
PZ
68%package static
69Summary: Static libgweather library
244020ad 70Summary(pl.UTF-8): Statyczna biblioteka libgweather
1b4360b9 71Group: X11/Development/Libraries
c9828fba
PZ
72Requires: %{name}-devel = %{version}-%{release}
73
74%description static
75Static libgweather library.
76
244020ad
JB
77%description static -l pl.UTF-8
78Statyczna biblioteka libgweather.
79
1f4859e3
PZ
80%package apidocs
81Summary: libgweather API documentation
82Summary(pl.UTF-8): Dokumentacja API biblioteki libgweather
83Group: Documentation
84Requires: gtk-doc-common
bb9e321a
ER
85%if "%{_rpmversion}" >= "5"
86BuildArch: noarch
87%endif
1f4859e3
PZ
88
89%description apidocs
90libgweather API documentation.
91
92%description apidocs -l pl.UTF-8
93Dokumentacja API biblioteki libgweather.
94
a3e1184f
MB
95%package glade
96Summary: libgweather catalog file for Glade
bc0ad4ae
JB
97Summary(pl.UTF-8): Plik katalogu libgweather dla Glade
98Group: X11/Development/Libraries
99Requires: %{name}-devel = %{version}-%{release}
100Requires: glade >= 2.0
a3e1184f
MB
101
102%description glade
103libgweather catalog file for Glade.
104
105%description glade -l pl.UTF-8
106Plik katalogu libgweather dla Glade.
107
280043a7 108%package -n vala-libgweather
977b4ca8
ŁK
109Summary: libgweather API for Vala language
110Summary(pl.UTF-8): API biblioteki libgweather dla języka Vala
111Group: Development/Libraries
112Requires: %{name}-devel = %{version}-%{release}
113Requires: vala >= 2:0.18.0
63f9bae8
ER
114%if "%{_rpmversion}" >= "5"
115BuildArch: noarch
116%endif
280043a7
MB
117
118%description -n vala-libgweather
119libgweather API for Vala language.
120
121%description -n vala-libgweather -l pl.UTF-8
02c189b8 122API 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
137rm -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
146rm -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
This page took 0.108116 seconds and 4 git commands to generate.