Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:11.4:Update
libgweather
libgweather.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libgweather.spec of Package libgweather
# # spec file for package libgweather # # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: libgweather Version: 2.30.3 Release: 2 License: GPLv2+ Summary: Library to get online weather information Group: Development/Libraries/GNOME Source: %{name}-%{version}.tar.bz2 Source99: baselibs.conf # PATCH-FEATURE-OPENSUSE libgweather-bnc428346-bundle.patch bnc428346 vuntz@novell.com -- Support a bundle directory so that bundle-lang-gnome-* doesn't conflict with libgweather-lang. Patch1: libgweather-bnc428346-bundle.patch BuildRequires: gconf2-devel # For directory ownership BuildRequires: gnome-icon-theme BuildRequires: gtk2-devel BuildRequires: intltool BuildRequires: libsoup-devel BuildRequires: python-devel BuildRequires: python-gobject2-devel BuildRequires: python-gtk-devel BuildRequires: libxslt translation-update-upstream # For directory ownership Requires: gnome-icon-theme Requires: libgweather1 = %{version} Recommends: %{name}-lang BuildRoot: %{_tmppath}/%{name}-%{version}-build %gconf_schemas_prereq %if %suse_version <= 1110 %define python_sitearch %{py_sitedir} %endif %description This is a library to download weather information from online sources. %package devel License: GPLv2+ Summary: Library to get online weather information Group: Development/Libraries/GNOME Requires: dbus-1-glib-devel Requires: gconf2-devel Requires: glib2-devel Requires: gtk2-devel Requires: libgweather1 = %{version} Requires: libsoup-devel # prior to version 2.21.x, gnome-applets-devel only included files # now included in libgweather-devel, so we provide/obsolete # gnome-applets-devel here. Provides: gnome-applets-devel = 2.21.4 Obsoletes: gnome-applets-devel < 2.21.4 # gnome-applets-devel also provided and obsoleted gswitchit-devel, so # we need to do that here as well Provides: gswitchit-devel Obsoletes: gswitchit-devel %description devel This is a library to download weather information from online sources. %package -n libgweather1 License: GPLv2+ Summary: Library to get online weather information Group: Development/Libraries/GNOME Requires: %{name} >= %{version} %description -n libgweather1 This is a library to download weather information from online sources. %package -n python-gweather License: GPLv2+ Summary: Library to get online weather information - Python bindings Group: Development/Libraries/GNOME %py_requires %description -n python-gweather This is a library to download weather information from online sources. %lang_package %prep %setup -q translation-update-upstream # Note: These translations have no real domain. Use libgweather-locations as a unique id: cd po-locations ./regen.sh mv locations.pot libgweather-locations.pot cd .. translation-update-upstream po-locations libgweather-locations true %patch1 -p1 %build %configure \ --enable-locations-compression \ --disable-schemas-install \ --disable-static \ --enable-python %{__make} %{?jobs:-j%jobs} %install %makeinstall %if 0%{?suse_version} <= 1120 %{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/* %endif %find_lang libgweather %{?no_lang_C} # Move localized Locations.xml files to the -lang package for locationsxml in %{buildroot}%{_datadir}/libgweather/Locations.*.xml*; do lang=`echo $locationsxml | %{__sed} "s/.*Locations\.\([^\.]*\)\.xml.*/\1/"` ext=`echo $locationsxml | %{__sed} "s/.*Locations\..*\.xml\(.*\)/\1/"` echo "%lang($lang) %{_datadir}/libgweather/Locations.$lang.xml$ext" >> %{name}.lang done %find_gconf_schemas %{__cat} %{name}.schemas_list > %{name}.lst %{__rm} -f %{buildroot}%{_libdir}/*.la %clean %{__rm} -rf %{buildroot} %pre -f %{name}.schemas_pre %post %icon_theme_cache_post gnome %posttrans -f %{name}.schemas_posttrans %preun -f %{name}.schemas_preun %postun %icon_theme_cache_postun gnome %post -n libgweather1 -p /sbin/ldconfig %postun -n libgweather1 -p /sbin/ldconfig %files -f %{name}.lst %defattr(-,root,root) %doc AUTHORS README NEWS ChangeLog %{_datadir}/icons/gnome/*/status/weather-*.* %{_datadir}/libgweather/ # Exclude files that we moved to the -lang package %exclude %{_datadir}/libgweather/Locations.*.xml* %files -n libgweather1 %defattr(-, root, root) %{_libdir}/*.so.* %files -n python-gweather %defattr(-, root, root) %{python_sitearch}/gweather/ %files devel %defattr(-,root,root) %{_includedir}/libgweather %{_libdir}/*.so %{_libdir}/pkgconfig/*.pc # Own these repositories to not depend on gtk-doc while building: %dir %{_datadir}/gtk-doc %dir %{_datadir}/gtk-doc/html %{_datadir}/gtk-doc/html/libgweather %files lang -f %{name}.lang %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor