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