Name: libgweather3 Version: 2.91.0 Release: 2%{?dist} Summary: A library for weather information Group: System Environment/Libraries License: GPLv2+ URL: http://www.gnome.org #VCS: git:git://git.gnome.org/libgweather Source0: http://download.gnome.org/sources/libgweather/2.91/libgweather-%{version}.tar.bz2 BuildRequires: GConf2-devel BuildRequires: dbus-devel BuildRequires: gtk3-devel >= 2.91.0 BuildRequires: libsoup-devel BuildRequires: libxml2-devel BuildRequires: gettext BuildRequires: intltool BuildRequires: gtk-doc BuildRequires: autoconf automake libtool Requires: libgweather-data # Patch from Ubuntu... Patch0: gettext-not-xml.patch %description libgweather is a library to access weather information from online services for numerous locations. libgweather3 is a version of libgweather for use with GTK+ 3. %package devel Summary: Development files for %{name} Group: Development/Libraries %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %package -n libgweather-data Summary: Data files for libgweather Group: Development/Libraries BuildArch: noarch # for directories Requires: gnome-icon-theme %description -n libgweather-data The libgweather-data package contains icons and other data needed by applications using libgweather. %prep %setup -q -n libgweather-%{version} %patch0 -p1 -b .gettext gtkdocize autoreconf -i -f %build %configure --disable-static --disable-gtk-doc make %{?_smp_mflags} %install make install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' %find_lang libgweather-3.0 --all-name %post /sbin/ldconfig export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/gweather.schemas > /dev/null || : touch --no-create %{_datadir}/icons/gnome &>/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 /sbin/ldconfig if [ $1 -eq 0 ]; then touch --no-create %{_datadir}/icons/gnome &>/dev/null gtk-update-icon-cache %{_datadir}/icons/gnome &>/dev/null || : fi %posttrans gtk-update-icon-cache %{_datadir}/icons/gnome &>/dev/null || : %files -f libgweather-3.0.lang %defattr(-,root,root,-) %doc COPYING %{_sysconfdir}/gconf/schemas/gweather.schemas %{_libdir}/libgweather-3.so.* %{_libdir}/girepository-1.0/GWeather-3.0.typelib %files -n libgweather-data %dir %{_datadir}/libgweather %{_datadir}/libgweather/Locations.xml %{_datadir}/libgweather/locations.dtd %{_datadir}/icons/gnome/*/status/* %files devel %defattr(-,root,root,-) %{_includedir}/libgweather-3.0 %{_libdir}/libgweather-3.so %{_libdir}/pkgconfig/gweather-3.0.pc %{_datadir}/gir-1.0/GWeather-3.0.gir %{_datadir}/gtk-doc/html/libgweather-3.0 %changelog * Fri Oct 15 2010 Matthias Clasen - 2.91.0-2 - Some minor cleanups * Thu Oct 7 2010 Matthias Clasen - 2.91.0-1 - Initial packaging (based on the libgweather package)