Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2
libgweather
libgweather.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libgweather.spec of Package libgweather
# # spec file for package libgweather # # Copyright (c) 2012 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: 3.4.1 Release: 0 Summary: Library to get online weather information License: GPL-2.0+ Group: Development/Libraries/GNOME Url: http://developer.gnome.org/libgweather/ Source: http://download.gnome.org/sources/libgweather/3.4/%{name}-%{version}.tar.xz 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: gobject-introspection-devel BuildRequires: gtk3-devel BuildRequires: intltool BuildRequires: libsoup-devel BuildRequires: libxml2-tools BuildRequires: libxslt BuildRequires: translation-update-upstream BuildRoot: %{_tmppath}/%{name}-%{version}-build %description This is a library to download weather information from online sources. %package data Summary: Library to get online weather information Group: Development/Libraries/GNOME # For directory ownership Requires: gnome-icon-theme Requires: libgweather-3-0 = %{version} Recommends: %{name}-lang Provides: %{name} = %{version} Obsoletes: %{name} < %{version} BuildArch: noarch %gconf_schemas_prereq %description data This is a library to download weather information from online sources. This package provides the architecture independent files. %package devel Summary: Library to get online weather information Group: Development/Libraries/GNOME Requires: libgweather-3-0 = %{version} Requires: typelib-1_0-GWeather-3_0 = %{version} # 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 libgweather-3-0 Summary: Library to get online weather information Group: Development/Libraries/GNOME Requires: %{name}-data >= %{version} %description -n libgweather-3-0 This is a library to download weather information from online sources. %package -n typelib-1_0-GWeather-3_0 Summary: Library to get online weather information -- Introspection bindings Group: System/Libraries %description -n typelib-1_0-GWeather-3_0 This is a library to download weather information from online sources. This package provides the GObject Introspection bindings for the libgweather library. %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-introspection %{__make} %{?_smp_mflags} %install %makeinstall find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print %if 0%{?suse_version} <= 1120 %{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/* %endif %find_lang libgweather-3.0 %{?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 %clean %{__rm} -rf %{buildroot} %post -n libgweather-3-0 -p /sbin/ldconfig %postun -n libgweather-3-0 -p /sbin/ldconfig %pre data -f %{name}.schemas_pre %post data %icon_theme_cache_post gnome %posttrans data -f %{name}.schemas_posttrans %preun data -f %{name}.schemas_preun %postun data %icon_theme_cache_postun gnome %files data -f %{name}.schemas_list %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 libgweather-3-0 %defattr(-, root, root) %{_libdir}/*.so.* %files -n typelib-1_0-GWeather-3_0 %defattr(-,root,root) %{_libdir}/girepository-1.0/GWeather-3.0.typelib %files devel %defattr(-,root,root) %{_includedir}/libgweather-3.0 %{_libdir}/*.so %{_libdir}/pkgconfig/gweather-3.0.pc %{_datadir}/gir-1.0/GWeather-3.0.gir # 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-3.0 %files lang -f %{name}-3.0.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