From 18f164a3c3a2658b7cded799edde00c152554d8e Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Jan 16 2008 05:32:24 +0000 Subject: initial import --- diff --git a/.cvsignore b/.cvsignore index e69de29..72d6e6c 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +libgweather-2.21.2.tar.bz2 diff --git a/libgweather.spec b/libgweather.spec new file mode 100644 index 0000000..90a51bc --- /dev/null +++ b/libgweather.spec @@ -0,0 +1,96 @@ +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 2.21.2-2 +- Incorporate review feedback (#428739) + +* Mon Jan 14 2008 Matthias Clasen 2.21.2-1 +- Update to 2.21.2 + +* Thu Jan 10 2008 Matthias Clasen 2.21.1-1 +- Initial packaging + diff --git a/sources b/sources index e69de29..de202ec 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +715394c673895b52d1f807f874b66770 libgweather-2.21.2.tar.bz2