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