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