Name: libmateweather Version: 1.4.0 Release: 4%{?dist} Summary: Libraries to allow MATE Desktop to display weather information License: GPLv2+ URL: http://mate-desktop.org Source0: http://pub.mate-desktop.org/releases/1.4/%{name}-%{version}.tar.xz BuildRequires: gtk2-devel libsoup-devel mate-common mate-conf-devel pygobject2-codegen python-gudev pygtk2-devel Requires(pre): mateconf Requires(post): mateconf Requires(preun): mateconf %description Libraries to allow MATE Desktop to display weather information %package devel Summary: Development files for libmateweather Requires: %{name}%{?_isa} = %{version}-%{release} %description devel Development files for libmateweather %prep %setup -q NOCONFIGURE=1 ./autogen.sh %build %configure --enable-python --disable-static --disable-schemas-install make %{?_smp_mflags} V=1 %install export MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 make install DESTDIR=%{buildroot} %find_lang %{name} find %{buildroot} -name '*.la' -exec rm -rf {} ';' find %{buildroot} -name '*.a' -exec rm -rf {} ';' %pre /sbin/ldconfig %mateconf_schema_prepare mateweather %post /sbin/ldconfig /bin/touch --no-create %{_datadir}/icons/mate/status &>/dev/null || : %mateconf_schema_upgrade mateweather %postun /sbin/ldconfig if [ $1 -eq 0 ] ; then /bin/touch --no-create %{_datadir}/icons/mate &>/dev/null /usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/mate/status/ &>/dev/null || : fi %mateconf_schema_remove mateweather %posttrans /usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/mate/status/ &>/dev/null || : %files -f %{name}.lang %doc AUTHORS COPYING README %config(noreplace) %{_sysconfdir}/mateconf/schemas/mateweather.schemas %{_datadir}/libmateweather/ %{_datadir}/icons/mate/16x16/status/*.png %{_datadir}/icons/mate/22x22/status/*.png %{_datadir}/icons/mate/24x24/status/*.png %{_datadir}/icons/mate/32x32/status/*.png %{_datadir}/icons/mate/scalable/status/*.svg %{_datadir}/gtk-doc/html/libmateweather/ %{python_sitearch}/mateweather/ %{_libdir}/libmateweather.so.1 %{_libdir}/libmateweather.so.1.6.9 %files devel %{_libdir}/libmateweather.so %{_includedir}/libmateweather/ %{_libdir}/pkgconfig/mateweather.pc %changelog * Sun Aug 25 2012 Dan Mashal 1.4.0-4 - Fix mateconf scriptlets for schemas, bump release version * Sat Aug 25 2012 Dan Mashal 1.4.0-3 - Move python files to main package, drop libs subpackage, update mateconf scriptlets, move shared library to devel package * Sat Aug 18 2012 Dan Mashal 1.4.0-2 - Fix directory ownership * Sun Aug 12 2012 Dan Mashal 1.4.0-1 - Initial build