SUNWlibgweather.spec revision 19846
17730N/A#
17730N/A# spec file for package SUNWlibgweather
17730N/A#
17730N/A# includes module(s): libgweather
17730N/A#
17730N/A# Copyright 2009 Sun Microsystems, Inc.
17730N/A# This file and all modifications and additions to the pristine
17730N/A# package are under the same license as the package itself.
17730N/A#
17730N/A%define owner jouby
17730N/A#
17730N/A%include Solaris.inc
17730N/A%use libgweather = libgweather.spec
17730N/A
17730N/AName: SUNWlibgweather
19107N/AIPS_package_name: library/desktop/libgweather
18688N/AMeta(info.classification): %{classification_prefix}:Development/GNOME and GTK+
18688N/ASummary: Library to access weather information from online services
17730N/AVersion: %{libgweather.version}
17730N/ASUNW_BaseDir: %{_basedir}
17730N/ASUNW_Copyright: %{name}.copyright
17730N/ALicense: GPLv2
17730N/A
17730N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
17730N/A
17730N/ABuildRequires: SUNWgnome-doc-utils
17730N/ABuildRequires: SUNWlibsoup
17730N/ABuildRequires: SUNWgnome-config
17730N/ABuildRequires: SUNWlibgnome-keyring
17730N/A
17730N/A%include default-depend.inc
17730N/A%include gnome-consolidation.inc
17730N/A
17730N/A%package root
17730N/A%include default-depend.inc
17730N/A%include gnome-consolidation.inc
17730N/ASummary: %{summary} - / filesystem
17730N/ASUNW_BaseDir: /
17730N/ARequires: %{name}
17730N/A
17730N/A%if %build_l10n
17730N/A%package l10n
17730N/AIPS_package_name: library/desktop/libgweather/l10n
17730N/A%include default-depend.inc
17730N/A%include gnome-consolidation.inc
17730N/ASummary: %{summary} - l10n files
17730N/ASUNW_BaseDir(relocate_from:%{_prefix}): %{_gnome_il10n_basedir}
17730N/ARequires: %{name}
17730N/A%endif
17730N/A
17730N/A%prep
17730N/Arm -rf %name-%version
17730N/Amkdir %name-%version
17730N/A
17730N/A%libgweather.prep -d %name-%version
17730N/A
17730N/A%build
17730N/Aexport CFLAGS="%optflags"
17730N/Aexport RPM_OPT_FLAGS="$CFLAGS"
17730N/Aexport LDFLAGS="%_ldflags"
17730N/A
17730N/A%libgweather.build -d %name-%version
17730N/A
%install
rm -rf $RPM_BUILD_ROOT
%libgweather.install -d %name-%version
%if %build_l10n
%else
rm -rf $RPM_BUILD_ROOT/%{_datadir}/locale
%endif
%clean
rm -rf $RPM_BUILD_ROOT
%post
%files
%defattr (-, root, bin)
%dir %attr (0755, root, sys) %{_datadir}
%{_datadir}/libgweather/locations.dtd
%{_datadir}/libgweather/Locations.xml
%{_datadir}/gtk-doc/html/libgweather/*
%{_libdir}/libgweather*
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
%{_libdir}/pkgconfig/gweather.pc
%{_includedir}/libgweather/*.h
%doc libgweather-%{libgweather.version}/AUTHORS
%doc libgweather-%{libgweather.version}/libgweather/AUTHORS
%doc libgweather-%{libgweather.version}/README
%doc libgweather-%{libgweather.version}/data/README
%doc libgweather-%{libgweather.version}/data/README.timezones
%doc libgweather-%{libgweather.version}/libgweather/README
%doc(bzip2) libgweather-%{libgweather.version}/COPYING
%doc(bzip2) libgweather-%{libgweather.version}/ChangeLog
%doc(bzip2) libgweather-%{libgweather.version}/NEWS
%dir %attr (0755, root, other) %{_datadir}/doc
%dir %attr (0755, root, other) %{_datadir}/icons
%dir %attr (0755, root, other) %{_datadir}/icons/*
%dir %attr (0755, root, other) %{_datadir}/icons/*/*
%{_datadir}/icons/gnome/*/status/*.png
%{_datadir}/icons/gnome/*/status/*.svg
%files root
%defattr (-, root, sys)
%attr (0755, root, sys) %dir %{_sysconfdir}
%{_sysconfdir}/gconf/schemas/gweather.schemas
%if %build_l10n
%files l10n
%dir %attr (0755, root, sys) %{_datadir}
%attr (-, root, other) %{_datadir}/locale
%endif
%changelog
* Fri Jan 15 2010 - jeff.cai@sun.com
- Remove locale files without l10n build
- Not run libtoolize
* Wed Jan 13 2010 - christian.kelly@sun.com
- Fix %files.
* Thu Dec 10 2009 - christian.kelly@sun.com
- Separate into own spec (from gnome-panel).