]> git.pld-linux.org Git - packages/libgweather.git/blame - libgweather.spec
Update to 3.14.3
[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
280043a7 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
71d56420 9Version: 3.14.3
642b0181 10Release: 1
c9828fba
PZ
11License: GPL v2+
12Group: X11/Libraries
3b3e465e 13Source0: http://ftp.gnome.org/pub/GNOME/sources/libgweather/3.14/%{name}-%{version}.tar.xz
71d56420 14# Source0-md5: 607f6801d7d3f538b545949a67647bc3
c9828fba 15URL: http://www.gnome.org/
957c5fdb
ŁK
16BuildRequires: autoconf >= 2.64
17BuildRequires: automake >= 1:1.11
c934ecfb 18BuildRequires: gettext-tools >= 0.18
3b3e465e 19BuildRequires: geocode-glib-devel
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
70182b1a 27BuildRequires: libsoup-devel >= 2.34.0
7ae3b956 28BuildRequires: libtool >= 2:2.2.6
ddb8530d 29BuildRequires: libxml2-devel >= 1:2.6.30
1b4360b9 30BuildRequires: pkgconfig >= 1:0.19
65eac4a2 31BuildRequires: tar >= 1:1.22
280043a7 32%{?with_vala:BuildRequires: vala >= 2:0.18.0}
65eac4a2 33BuildRequires: xz
cf4e621b 34Requires(post,postun): glib2 >= 1:2.35.1
02c189b8 35Requires: glib2 >= 1:2.35.1
3b3e465e 36Requires: gtk+3 >= 3.14.0
02c189b8
JB
37Requires: libsoup >= 2.34.0
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
cf4e621b 57Requires: libsoup-devel >= 2.34.0
ddb8530d 58Requires: libxml2-devel >= 1:2.6.30
7da92f12 59Obsoletes: gnome-applets-devel <= 2.21.4
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
84
85%description apidocs
86libgweather API documentation.
87
88%description apidocs -l pl.UTF-8
89Dokumentacja API biblioteki libgweather.
90
a3e1184f
MB
91%package glade
92Summary: libgweather catalog file for Glade
bc0ad4ae
JB
93Summary(pl.UTF-8): Plik katalogu libgweather dla Glade
94Group: X11/Development/Libraries
95Requires: %{name}-devel = %{version}-%{release}
96Requires: glade >= 2.0
a3e1184f
MB
97
98%description glade
99libgweather catalog file for Glade.
100
101%description glade -l pl.UTF-8
102Plik katalogu libgweather dla Glade.
103
280043a7 104%package -n vala-libgweather
977b4ca8
ŁK
105Summary: libgweather API for Vala language
106Summary(pl.UTF-8): API biblioteki libgweather dla języka Vala
107Group: Development/Libraries
108Requires: %{name}-devel = %{version}-%{release}
109Requires: vala >= 2:0.18.0
280043a7
MB
110
111%description -n vala-libgweather
112libgweather API for Vala language.
113
114%description -n vala-libgweather -l pl.UTF-8
02c189b8 115API biblioteki libgweather dla języka Vala.
280043a7 116
c9828fba
PZ
117%prep
118%setup -q
119
120%build
a9867bbe 121%{__gtkdocize}
c9828fba
PZ
122%{__intltoolize}
123%{__libtoolize}
8726bc62 124%{__aclocal} -I m4
c9828fba 125%{__autoconf}
1b4360b9 126%{__autoheader}
c9828fba 127%{__automake}
2715db3e 128%configure \
bc0ad4ae 129 %{!?with_glade:--disable-glade-catalog} \
1f4859e3 130 --enable-gtk-doc \
642b0181 131 --disable-silent-rules \
bc0ad4ae
JB
132 --enable-static \
133 %{__enable_disable vala} \
134 --with-html-dir=%{_gtkdocdir} \
135 --with-zoneinfo-dir=%{_datadir}/zoneinfo
4d0c23ce 136
9fae6b8b
SS
137%{__make} -j1 -C data
138%{__make}
c9828fba
PZ
139
140%install
141rm -rf $RPM_BUILD_ROOT
142
143%{__make} install \
144 DESTDIR=$RPM_BUILD_ROOT
145
21a08ec1 146%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/es_ES
4d0c23ce 147%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
1b4360b9 148
280043a7 149%find_lang libgweather-3.0 --all-name
4d39f76c 150
c9828fba
PZ
151%clean
152rm -rf $RPM_BUILD_ROOT
153
154%post
155/sbin/ldconfig
21a08ec1 156%glib_compile_schemas
c9828fba 157
a24a2447
MB
158%postun
159/sbin/ldconfig
21a08ec1 160%glib_compile_schemas
c9828fba 161
4d0c23ce 162%files -f libgweather-3.0.lang
c9828fba 163%defattr(644,root,root,755)
3b3e465e 164%doc AUTHORS HACKING NEWS README
4d0c23ce 165%attr(755,root,root) %{_libdir}/libgweather-3.so.*.*.*
280043a7 166%attr(755,root,root) %ghost %{_libdir}/libgweather-3.so.6
21a08ec1
ŁK
167%{_datadir}/glib-2.0/schemas/org.gnome.GWeather.enums.xml
168%{_datadir}/glib-2.0/schemas/org.gnome.GWeather.gschema.xml
4d39f76c
MB
169%dir %{_datadir}/libgweather
170%{_datadir}/libgweather/Locations.xml
171%{_datadir}/libgweather/locations.dtd
4d0c23ce 172%{_libdir}/girepository-1.0/GWeather-3.0.typelib
c9828fba
PZ
173
174%files devel
175%defattr(644,root,root,755)
4d0c23ce
ŁK
176%attr(755,root,root) %{_libdir}/libgweather-3.so
177%{_includedir}/libgweather-3.0
178%{_pkgconfigdir}/gweather-3.0.pc
179%{_datadir}/gir-1.0/GWeather-3.0.gir
c9828fba
PZ
180
181%files static
182%defattr(644,root,root,755)
4d0c23ce 183%{_libdir}/libgweather-3.a
1f4859e3
PZ
184
185%files apidocs
186%defattr(644,root,root,755)
4d0c23ce 187%{_gtkdocdir}/libgweather-3.0
280043a7 188
bc0ad4ae 189%if %{with glade}
a3e1184f
MB
190%files glade
191%defattr(644,root,root,755)
192%{_datadir}/glade/catalogs/libgweather.xml
bc0ad4ae 193%endif
a3e1184f 194
280043a7
MB
195%if %{with vala}
196%files -n vala-libgweather
197%defattr(644,root,root,755)
198%{_datadir}/vala/vapi/gweather-3.0.vapi
199%endif
This page took 0.074362 seconds and 4 git commands to generate.