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