]> git.pld-linux.org Git - packages/libgweather.git/blame - libgweather.spec
- updated to 3.10.1
[packages/libgweather.git] / libgweather.spec
CommitLineData
280043a7
MB
1#
2# Conditional build:
3%bcond_without vala # do not build Vala API
4#
244020ad
JB
5Summary: Library to access weather information from online services for numerous locations
6Summary(pl.UTF-8): Biblioteka dostępu do informacji pogodowych z serwisów internetowych dla różnych miejsc
c9828fba 7Name: libgweather
3ecb5eb8 8Version: 3.10.1
642b0181 9Release: 1
c9828fba
PZ
10License: GPL v2+
11Group: X11/Libraries
280043a7 12Source0: http://ftp.gnome.org/pub/GNOME/sources/libgweather/3.10/%{name}-%{version}.tar.xz
3ecb5eb8 13# Source0-md5: df787682656ba8662b719ae24b0dd3e0
c9828fba 14URL: http://www.gnome.org/
957c5fdb
ŁK
15BuildRequires: autoconf >= 2.64
16BuildRequires: automake >= 1:1.11
70182b1a 17BuildRequires: gettext-devel >= 0.18
cf4e621b 18BuildRequires: glib2-devel >= 1:2.35.1
c9828fba 19BuildRequires: gnome-common >= 2.20.0
642b0181 20BuildRequires: gobject-introspection-devel >= 0.10.0
4d0c23ce 21BuildRequires: gtk+3-devel >= 3.0.0
957c5fdb 22BuildRequires: gtk-doc >= 1.11
21a08ec1 23BuildRequires: intltool >= 0.50.0
70182b1a 24BuildRequires: libsoup-devel >= 2.34.0
7ae3b956 25BuildRequires: libtool >= 2:2.2.6
ddb8530d 26BuildRequires: libxml2-devel >= 1:2.6.30
1b4360b9 27BuildRequires: pkgconfig >= 1:0.19
65eac4a2 28BuildRequires: tar >= 1:1.22
280043a7 29%{?with_vala:BuildRequires: vala >= 2:0.18.0}
65eac4a2 30BuildRequires: xz
a24a2447 31Requires(post,postun): gnome-icon-theme
407a5e37 32Requires(post,postun): gnome-icon-theme-symbolic
39e3b2f6 33Requires(post,postun): gtk-update-icon-cache
cf4e621b 34Requires(post,postun): glib2 >= 1:2.35.1
02c189b8
JB
35Requires: glib2 >= 1:2.35.1
36Requires: libsoup >= 2.34.0
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}
4d0c23ce 55Requires: gtk+3-devel >= 3.0.0
cf4e621b 56Requires: libsoup-devel >= 2.34.0
ddb8530d 57Requires: libxml2-devel >= 1:2.6.30
7da92f12 58Obsoletes: gnome-applets-devel <= 2.21.4
c9828fba
PZ
59
60%description devel
61Header files for libgweather.
62
244020ad
JB
63%description devel -l pl.UTF-8
64Pliki nagłówkowe biblioteki libgweather.
65
c9828fba
PZ
66%package static
67Summary: Static libgweather library
244020ad 68Summary(pl.UTF-8): Statyczna biblioteka libgweather
1b4360b9 69Group: X11/Development/Libraries
c9828fba
PZ
70Requires: %{name}-devel = %{version}-%{release}
71
72%description static
73Static libgweather library.
74
244020ad
JB
75%description static -l pl.UTF-8
76Statyczna biblioteka libgweather.
77
1f4859e3
PZ
78%package apidocs
79Summary: libgweather API documentation
80Summary(pl.UTF-8): Dokumentacja API biblioteki libgweather
81Group: Documentation
82Requires: gtk-doc-common
83
84%description apidocs
85libgweather API documentation.
86
87%description apidocs -l pl.UTF-8
88Dokumentacja API biblioteki libgweather.
89
280043a7
MB
90%package -n vala-libgweather
91Summary: libgweather API for Vala language
02c189b8 92Summary(pl.UTF-8): API biblioteki libgweather dla języka Vala
280043a7
MB
93Group: Development/Libraries
94Requires: %{name}-devel = %{version}-%{release}
95Requires: vala >= 2:0.18.0
96
97%description -n vala-libgweather
98libgweather API for Vala language.
99
100%description -n vala-libgweather -l pl.UTF-8
02c189b8 101API biblioteki libgweather dla języka Vala.
280043a7 102
c9828fba
PZ
103%prep
104%setup -q
105
106%build
a9867bbe 107%{__gtkdocize}
c9828fba
PZ
108%{__intltoolize}
109%{__libtoolize}
8726bc62 110%{__aclocal} -I m4
c9828fba 111%{__autoconf}
1b4360b9 112%{__autoheader}
c9828fba 113%{__automake}
2715db3e 114%configure \
280043a7 115 %{__enable_disable vala vala} \
1f4859e3
PZ
116 --with-zoneinfo-dir=%{_datadir}/zoneinfo \
117 --enable-gtk-doc \
a24a2447 118 --with-html-dir=%{_gtkdocdir} \
642b0181
ŁK
119 --disable-silent-rules \
120 --enable-static
4d0c23ce 121
9fae6b8b
SS
122%{__make} -j1 -C data
123%{__make}
c9828fba
PZ
124
125%install
126rm -rf $RPM_BUILD_ROOT
127
128%{__make} install \
129 DESTDIR=$RPM_BUILD_ROOT
130
21a08ec1 131%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/es_ES
4d0c23ce 132%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
1b4360b9 133
280043a7 134%find_lang libgweather-3.0 --all-name
4d39f76c 135
c9828fba
PZ
136%clean
137rm -rf $RPM_BUILD_ROOT
138
139%post
140/sbin/ldconfig
21a08ec1 141%glib_compile_schemas
a24a2447 142%update_icon_cache gnome
c9828fba 143
a24a2447
MB
144%postun
145/sbin/ldconfig
21a08ec1 146%glib_compile_schemas
a24a2447 147%update_icon_cache gnome
c9828fba 148
4d0c23ce 149%files -f libgweather-3.0.lang
c9828fba
PZ
150%defattr(644,root,root,755)
151%doc ChangeLog README
4d0c23ce 152%attr(755,root,root) %{_libdir}/libgweather-3.so.*.*.*
280043a7 153%attr(755,root,root) %ghost %{_libdir}/libgweather-3.so.6
21a08ec1
ŁK
154%{_datadir}/glib-2.0/schemas/org.gnome.GWeather.enums.xml
155%{_datadir}/glib-2.0/schemas/org.gnome.GWeather.gschema.xml
4d39f76c
MB
156%dir %{_datadir}/libgweather
157%{_datadir}/libgweather/Locations.xml
158%{_datadir}/libgweather/locations.dtd
407a5e37
JR
159%{_iconsdir}/gnome/*/status/*.png
160%{_iconsdir}/gnome/scalable/status/*.svg
4d0c23ce 161%{_libdir}/girepository-1.0/GWeather-3.0.typelib
c9828fba
PZ
162
163%files devel
164%defattr(644,root,root,755)
4d0c23ce
ŁK
165%attr(755,root,root) %{_libdir}/libgweather-3.so
166%{_includedir}/libgweather-3.0
167%{_pkgconfigdir}/gweather-3.0.pc
168%{_datadir}/gir-1.0/GWeather-3.0.gir
c9828fba
PZ
169
170%files static
171%defattr(644,root,root,755)
4d0c23ce 172%{_libdir}/libgweather-3.a
1f4859e3
PZ
173
174%files apidocs
175%defattr(644,root,root,755)
4d0c23ce 176%{_gtkdocdir}/libgweather-3.0
280043a7
MB
177
178%if %{with vala}
179%files -n vala-libgweather
180%defattr(644,root,root,755)
181%{_datadir}/vala/vapi/gweather-3.0.vapi
182%endif
This page took 0.060651 seconds and 4 git commands to generate.