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