Name: libgweather
Version: 2.21.2
Release: 2%{?dist}
Summary: A library for weather information
Group: System Environment/Libraries
License: GPLv2+
URL: http://www.gnome.org
Source0: http://download.gnome.org/sources/libgweather/2.21/%{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: GConf2-devel >= 2.8.0
BuildRequires: gtk2-devel >= 2.11.0
BuildRequires: gnome-vfs2-devel >= 2.15.4
BuildRequires: gettext
BuildRequires: perl(XML::Parser)
%description
libgweather is a library to access weather information from online
services for numerous locations.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: pkgconfig
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%setup -q
%build
%configure --disable-static
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
%post
/sbin/ldconfig
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/gweather.schemas > /dev/null || :
%pre
if [ "$1" -gt 1 ]; then
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/gweather.schemas > /dev/null || :
fi
%preun
if [ "$1" -eq 0 ]; then
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/gweather.schemas > /dev/null || :
fi
%postun -p /sbin/ldconfig
%files -f %{name}.lang
%defattr(-,root,root,-)
%doc COPYING
%{_sysconfdir}/gconf/schemas/gweather.schemas
%{_libdir}/libgweather.so.*
%{_datadir}/libgweather
%files devel
%defattr(-,root,root,-)
%{_includedir}/libgweather
%{_libdir}/libgweather.so
%{_libdir}/pkgconfig/gweather.pc
%changelog
* Tue Jan 15 2008 Matthias Clasen <mclasen@redhat.com> 2.21.2-2
- Incorporate review feedback (#428739)
* Mon Jan 14 2008 Matthias Clasen <mclasen@redhat.com> 2.21.2-1
- Update to 2.21.2
* Thu Jan 10 2008 Matthias Clasen <mclasen@redhat.com> 2.21.1-1
- Initial packaging