gnome-clocks/gnome-clocks.spec
Dominique Leuenberger 4df70dae03 Accepting request 155418 from GNOME:Next
- Update to version 0.1.6:
  + Reworked the alarms panel (design is still in progress).
  + Implemented disabled alarms.
  + Depend on newer GWeather.
  + Ported to Python 3.
  + Ported to autotools.
  + Move configuration to GSettings.
  + Remove pyxdg dependency.
  + Misc bugfixes.
  + Updated translations.
- Change build and install section to use configure / make install.
- Add glib schema handling to post/postun.
- Drop python-xdg Requires: no longer needed.

OBS-URL: https://build.opensuse.org/request/show/155418
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-clocks?expand=0&rev=7
2013-02-15 08:15:56 +00:00

83 lines
2.4 KiB
RPMSpec

#
# spec file for package gnome-clocks
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2012 Dominique Leuenberger, Amsterdam, The Netherlands.
#
# 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: gnome-clocks
Version: 0.1.6
Release: 0
Summary: Clock application designed for GNOME 3
License: GPL-2.0+
Group: Productivity/Office/Other
Url: https://live.gnome.org/Design/Apps/Clock
Source: http://download.gnome.org/sources/gnome-clocks/0.1/%{name}-%{version}.tar.xz
# Needed for automatic typelib() - Requires
BuildRequires: gobject-introspection
# For icont_theme_chache post and postun macros
BuildRequires: hicolor-icon-theme
BuildRequires: intltool >= 0.40
BuildRequires: python >= 3.2
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(pycairo)
BuildRequires: pkgconfig(pygobject-3.0) >= 3.4.2
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%glib2_gsettings_schema_requires
%description
A nice simple app to show the time, date, and alarms.
%lang_package
%prep
%setup -q
%build
%configure
%install
%make_install
%suse_update_desktop_file %{name} Utility X-SuSE-TimeUtility
%find_lang %{name} %{?no_lang_C}
%post
%glib2_gsettings_schema_post
%icon_theme_cache_post
%icon_theme_cache_post HighContrast
%desktop_database_post
%postun
%glib2_gsettings_schema_postun
%icon_theme_cache_postun
%icon_theme_cache_postun HighContrast
%desktop_database_postun
%files
%defattr(-,root,root)
%doc README COPYING
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/glib-2.0/schemas/org.gnome.clocks.gschema.xml
%{_datadir}/icons/hicolor/*/apps/gnome-clocks.*
%{_datadir}/icons/HighContrast/
%{python3_sitelib}/gnomeclocks/
%{_datadir}/applications/%{name}.desktop
%files lang -f %{name}.lang
%changelog