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