18f164a
Name:           libgweather
23f2724
Version:        2.22.2
23f2724
Release:        1%{?dist}
18f164a
Summary:        A library for weather information 
18f164a
18f164a
Group:          System Environment/Libraries
18f164a
License:        GPLv2+
18f164a
URL:            http://www.gnome.org 
9e8490f
Source0:        http://download.gnome.org/sources/libgweather/2.22/%{name}-%{version}.tar.bz2
7941e17
Source1:	copy.xsl
18f164a
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
18f164a
18f164a
BuildRequires:  GConf2-devel >= 2.8.0
18f164a
BuildRequires:  gtk2-devel >= 2.11.0
18f164a
BuildRequires:  gnome-vfs2-devel >= 2.15.4
18f164a
BuildRequires:  gettext
18f164a
BuildRequires:  perl(XML::Parser)
18f164a
18f164a
%description
18f164a
libgweather is a library to access weather information from online
18f164a
services for numerous locations.
18f164a
18f164a
18f164a
%package        devel
18f164a
Summary:        Development files for %{name}
18f164a
Group:          Development/Libraries
bbf8af4
# libgweather used to be part of gnome-applets, and
bbf8af4
# gnome-applets-devel only had the libgweather-devel parts in it
bbf8af4
Obsoletes:	gnome-applets-devel < 1:2.21.4-1
18f164a
Requires:       %{name} = %{version}-%{release}
18f164a
Requires:       pkgconfig
18f164a
18f164a
%description    devel
18f164a
The %{name}-devel package contains libraries and header files for
18f164a
developing applications that use %{name}.
18f164a
18f164a
18f164a
%prep
18f164a
%setup -q
18f164a
18f164a
%build
18f164a
%configure --disable-static
18f164a
make %{?_smp_mflags}
18f164a
762d1f7
cd po
762d1f7
make %{name}.pot
762d1f7
for p in *.po; do
762d1f7
  msgmerge -U $p %{name}.pot
762d1f7
done
762d1f7
make
762d1f7
cd ..
18f164a
18f164a
%install
18f164a
rm -rf $RPM_BUILD_ROOT
7941e17
7941e17
# waste less space 
7941e17
xsltproc %{SOURCE1} data/Locations.xml > loc.xml
7941e17
sed -e "s/^\s*//" -e "/^$/d" loc.xml > data/Locations.xml
7941e17
18f164a
make install DESTDIR=$RPM_BUILD_ROOT
18f164a
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
18f164a
18f164a
%find_lang %{name}
18f164a
18f164a
%clean
18f164a
rm -rf $RPM_BUILD_ROOT
18f164a
18f164a
%post
18f164a
/sbin/ldconfig
18f164a
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
18f164a
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/gweather.schemas > /dev/null || :
18f164a
18f164a
%pre
18f164a
if [ "$1" -gt 1 ]; then
18f164a
  export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
18f164a
  gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/gweather.schemas > /dev/null || :
18f164a
fi
18f164a
18f164a
%preun
18f164a
if [ "$1" -eq 0 ]; then
18f164a
  export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
18f164a
  gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/gweather.schemas > /dev/null || :
18f164a
fi
18f164a
18f164a
%postun -p /sbin/ldconfig
18f164a
18f164a
18f164a
%files -f %{name}.lang
18f164a
%defattr(-,root,root,-)
18f164a
%doc COPYING
18f164a
%{_sysconfdir}/gconf/schemas/gweather.schemas
18f164a
%{_libdir}/libgweather.so.*
18f164a
%{_datadir}/libgweather
18f164a
18f164a
%files devel
18f164a
%defattr(-,root,root,-)
18f164a
%{_includedir}/libgweather
18f164a
%{_libdir}/libgweather.so
18f164a
%{_libdir}/pkgconfig/gweather.pc
18f164a
18f164a
18f164a
%changelog
23f2724
* Wed May 28 2008 Matthias Clasen <mclasen@redhat.com> 2.22.2-1
23f2724
- Update to 2.22.2
23f2724
4b6ab42
* Mon May  5 2008 Matthias Clasen <mclasen@redhat.com> 2.22.1.1-3
4b6ab42
- Caracas has no u (#445275)
4b6ab42
6712350
* Thu Apr 17 2008 Matthias Clasen <mclasen@redhat.com> 2.22.1.1-2
6712350
- Leave Cairo in Africa (#442793)
6712350
d88f6d7
* Mon Apr  7 2008 Matthias Clasen <mclasen@redhat.com> 2.22.1.1-1
d88f6d7
- Update to 2.22.1.1
d88f6d7
9e8490f
* Tue Mar 11 2008 Matthias Clasen <mclasen@redhat.com> 2.22.0-1
9e8490f
- Update to 2.22.0
9e8490f
9e8490f
* Tue Feb 26 2008 Matthias Clasen <mclasen@redhat.com> 2.21.92-1
fd928aa
- Update to 2.21.92
fd928aa
762d1f7
* Mon Feb 11 2008  Matthias Clasen <mclasen@redhat.com> 2.21.2-6
762d1f7
- Remove obsolete translations
762d1f7
54463ac
* Sat Feb  9 2008  Matthias Clasen <mclasen@redhat.com> 2.21.2-5
54463ac
- Rebuild for gcc 4.3
54463ac
bbf8af4
* Wed Jan 16 2008  Matthias Clasen <mclasen@redhat.com> 2.21.2-4
bbf8af4
- Add Obsoletes for gnome-applets-devel
bbf8af4
7941e17
* Wed Jan 16 2008  Matthias Clasen <mclasen@redhat.com> 2.21.2-3
7941e17
- Carry over space-saving hack from gnome-applets
7941e17
18f164a
* Tue Jan 15 2008  Matthias Clasen <mclasen@redhat.com> 2.21.2-2
18f164a
- Incorporate review feedback (#428739)
18f164a
18f164a
* Mon Jan 14 2008  Matthias Clasen <mclasen@redhat.com> 2.21.2-1
18f164a
- Update to 2.21.2
18f164a
18f164a
* Thu Jan 10 2008  Matthias Clasen <mclasen@redhat.com> 2.21.1-1
18f164a
- Initial packaging
18f164a