]> git.pld-linux.org Git - packages/libgweather.git/blame - libgweather.spec
noarch vala subpackage
[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
de1942ed 9Version: 3.20.0
63f9bae8 10Release: 2
c9828fba
PZ
11License: GPL v2+
12Group: X11/Libraries
de1942ed
MB
13Source0: http://ftp.gnome.org/pub/GNOME/sources/libgweather/3.20/%{name}-%{version}.tar.xz
14# Source0-md5: e3c273bce7772450b3d93136bcbb1653
c9828fba 15URL: http://www.gnome.org/
957c5fdb
ŁK
16BuildRequires: autoconf >= 2.64
17BuildRequires: automake >= 1:1.11
3b3e465e 18BuildRequires: geocode-glib-devel
f56c3346 19BuildRequires: gettext-tools >= 0.18
bc0ad4ae 20%{?with_glade:BuildRequires: glade-devel >= 2.0}
cf4e621b 21BuildRequires: glib2-devel >= 1:2.35.1
c9828fba 22BuildRequires: gnome-common >= 2.20.0
642b0181 23BuildRequires: gobject-introspection-devel >= 0.10.0
3b3e465e 24BuildRequires: gtk+3-devel >= 3.14.0
957c5fdb 25BuildRequires: gtk-doc >= 1.11
21a08ec1 26BuildRequires: intltool >= 0.50.0
de1942ed 27BuildRequires: libsoup-devel >= 2.44.0
7ae3b956 28BuildRequires: libtool >= 2:2.2.6
ddb8530d 29BuildRequires: libxml2-devel >= 1:2.6.30
1b4360b9 30BuildRequires: pkgconfig >= 1:0.19
c09eeea8 31BuildRequires: rpmbuild(macros) >= 1.592
65eac4a2 32BuildRequires: tar >= 1:1.22
280043a7 33%{?with_vala:BuildRequires: vala >= 2:0.18.0}
65eac4a2 34BuildRequires: xz
c09eeea8 35Requires(post,postun): /sbin/ldconfig
cf4e621b 36Requires(post,postun): glib2 >= 1:2.35.1
02c189b8 37Requires: glib2 >= 1:2.35.1
3b3e465e 38Requires: gtk+3 >= 3.14.0
de1942ed 39Requires: libsoup >= 2.44.0
02c189b8 40Requires: libxml2 >= 1:2.6.30
c9828fba
PZ
41# sr@Latn vs. sr@latin
42Conflicts: glibc-misc < 6:2.7
43BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44
45%description
46libgweather is a library to access weather information from online
47services for numerous locations.
48
244020ad
JB
49%description -l pl.UTF-8
50libgweather to biblioteka pozwalająca na dostęp do informacji
51pogodowych z serwisów internetowych dla różnych miejsc.
52
c9828fba
PZ
53%package devel
54Summary: Header files for libgweather
244020ad 55Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libgweather
c9828fba
PZ
56Group: X11/Development/Libraries
57Requires: %{name} = %{version}-%{release}
3b3e465e 58Requires: gtk+3-devel >= 3.14.0
de1942ed 59Requires: libsoup-devel >= 2.44.0
ddb8530d 60Requires: libxml2-devel >= 1:2.6.30
7da92f12 61Obsoletes: gnome-applets-devel <= 2.21.4
c9828fba
PZ
62
63%description devel
64Header files for libgweather.
65
244020ad
JB
66%description devel -l pl.UTF-8
67Pliki nagłówkowe biblioteki libgweather.
68
c9828fba
PZ
69%package static
70Summary: Static libgweather library
244020ad 71Summary(pl.UTF-8): Statyczna biblioteka libgweather
1b4360b9 72Group: X11/Development/Libraries
c9828fba
PZ
73Requires: %{name}-devel = %{version}-%{release}
74
75%description static
76Static libgweather library.
77
244020ad
JB
78%description static -l pl.UTF-8
79Statyczna biblioteka libgweather.
80
1f4859e3
PZ
81%package apidocs
82Summary: libgweather API documentation
83Summary(pl.UTF-8): Dokumentacja API biblioteki libgweather
84Group: Documentation
85Requires: gtk-doc-common
86
87%description apidocs
88libgweather API documentation.
89
90%description apidocs -l pl.UTF-8
91Dokumentacja API biblioteki libgweather.
92
a3e1184f
MB
93%package glade
94Summary: libgweather catalog file for Glade
bc0ad4ae
JB
95Summary(pl.UTF-8): Plik katalogu libgweather dla Glade
96Group: X11/Development/Libraries
97Requires: %{name}-devel = %{version}-%{release}
98Requires: glade >= 2.0
a3e1184f
MB
99
100%description glade
101libgweather catalog file for Glade.
102
103%description glade -l pl.UTF-8
104Plik katalogu libgweather dla Glade.
105
280043a7 106%package -n vala-libgweather
977b4ca8
ŁK
107Summary: libgweather API for Vala language
108Summary(pl.UTF-8): API biblioteki libgweather dla języka Vala
109Group: Development/Libraries
110Requires: %{name}-devel = %{version}-%{release}
111Requires: vala >= 2:0.18.0
63f9bae8
ER
112%if "%{_rpmversion}" >= "5"
113BuildArch: noarch
114%endif
280043a7
MB
115
116%description -n vala-libgweather
117libgweather API for Vala language.
118
119%description -n vala-libgweather -l pl.UTF-8
02c189b8 120API biblioteki libgweather dla języka Vala.
280043a7 121
c9828fba
PZ
122%prep
123%setup -q
124
125%build
a9867bbe 126%{__gtkdocize}
c9828fba
PZ
127%{__intltoolize}
128%{__libtoolize}
8726bc62 129%{__aclocal} -I m4
c9828fba 130%{__autoconf}
1b4360b9 131%{__autoheader}
c9828fba 132%{__automake}
2715db3e 133%configure \
bc0ad4ae 134 %{!?with_glade:--disable-glade-catalog} \
1f4859e3 135 --enable-gtk-doc \
642b0181 136 --disable-silent-rules \
bc0ad4ae
JB
137 --enable-static \
138 %{__enable_disable vala} \
139 --with-html-dir=%{_gtkdocdir} \
140 --with-zoneinfo-dir=%{_datadir}/zoneinfo
4d0c23ce 141
9fae6b8b
SS
142%{__make} -j1 -C data
143%{__make}
c9828fba
PZ
144
145%install
146rm -rf $RPM_BUILD_ROOT
147
148%{__make} install \
149 DESTDIR=$RPM_BUILD_ROOT
150
21a08ec1 151%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/es_ES
4d0c23ce 152%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
1b4360b9 153
280043a7 154%find_lang libgweather-3.0 --all-name
4d39f76c 155
c9828fba
PZ
156%clean
157rm -rf $RPM_BUILD_ROOT
158
159%post
160/sbin/ldconfig
21a08ec1 161%glib_compile_schemas
c9828fba 162
a24a2447
MB
163%postun
164/sbin/ldconfig
21a08ec1 165%glib_compile_schemas
c9828fba 166
4d0c23ce 167%files -f libgweather-3.0.lang
c9828fba 168%defattr(644,root,root,755)
3b3e465e 169%doc AUTHORS HACKING NEWS README
4d0c23ce 170%attr(755,root,root) %{_libdir}/libgweather-3.so.*.*.*
280043a7 171%attr(755,root,root) %ghost %{_libdir}/libgweather-3.so.6
21a08ec1
ŁK
172%{_datadir}/glib-2.0/schemas/org.gnome.GWeather.enums.xml
173%{_datadir}/glib-2.0/schemas/org.gnome.GWeather.gschema.xml
4d39f76c
MB
174%dir %{_datadir}/libgweather
175%{_datadir}/libgweather/Locations.xml
176%{_datadir}/libgweather/locations.dtd
4d0c23ce 177%{_libdir}/girepository-1.0/GWeather-3.0.typelib
c9828fba
PZ
178
179%files devel
180%defattr(644,root,root,755)
4d0c23ce
ŁK
181%attr(755,root,root) %{_libdir}/libgweather-3.so
182%{_includedir}/libgweather-3.0
183%{_pkgconfigdir}/gweather-3.0.pc
184%{_datadir}/gir-1.0/GWeather-3.0.gir
c9828fba
PZ
185
186%files static
187%defattr(644,root,root,755)
4d0c23ce 188%{_libdir}/libgweather-3.a
1f4859e3
PZ
189
190%files apidocs
191%defattr(644,root,root,755)
4d0c23ce 192%{_gtkdocdir}/libgweather-3.0
280043a7 193
bc0ad4ae 194%if %{with glade}
a3e1184f
MB
195%files glade
196%defattr(644,root,root,755)
197%{_datadir}/glade/catalogs/libgweather.xml
bc0ad4ae 198%endif
a3e1184f 199
280043a7
MB
200%if %{with vala}
201%files -n vala-libgweather
202%defattr(644,root,root,755)
203%{_datadir}/vala/vapi/gweather-3.0.vapi
204%endif
This page took 0.117053 seconds and 4 git commands to generate.