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