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