Update to 0.1.6. Handle the move to autotools.
This commit is contained in:
parent
c09d367a51
commit
4e7a5239c7
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
/gnome-clocks-0.1.3.tar.xz
|
/gnome-clocks-0.1.3.tar.xz
|
||||||
/gnome-clocks-0.1.4.tar.xz
|
/gnome-clocks-0.1.4.tar.xz
|
||||||
/gnome-clocks-0.1.5.tar.xz
|
/gnome-clocks-0.1.5.tar.xz
|
||||||
|
/gnome-clocks-0.1.6.tar.xz
|
||||||
|
39
gnome-clocks-0.1.6-desktop-keywords.patch
Normal file
39
gnome-clocks-0.1.6-desktop-keywords.patch
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
diff --git a/po/ca.po b/po/ca.po
|
||||||
|
index 10c2b58..770838e 100644
|
||||||
|
--- a/po/ca.po
|
||||||
|
+++ b/po/ca.po
|
||||||
|
@@ -34,7 +34,7 @@ msgstr ""
|
||||||
|
|
||||||
|
#: ../data/gnome-clocks.desktop.in.h:4
|
||||||
|
msgid "time;timer;alarm;world clock;stopwatch;time zone;"
|
||||||
|
-msgstr "temps;temporitzador;alarma;rellotge global;cronòmetre;zona horària"
|
||||||
|
+msgstr "temps;temporitzador;alarma;rellotge global;cronòmetre;zona horària;"
|
||||||
|
|
||||||
|
#: ../gnomeclocks/alarm.py:93 ../gnomeclocks/alarm.py:451
|
||||||
|
msgid "Alarm"
|
||||||
|
diff --git a/po/el.po b/po/el.po
|
||||||
|
index 454a1bc..6bf26da 100644
|
||||||
|
--- a/po/el.po
|
||||||
|
+++ b/po/el.po
|
||||||
|
@@ -37,7 +37,7 @@ msgstr ""
|
||||||
|
|
||||||
|
#: ../data/gnome-clocks.desktop.in.h:4
|
||||||
|
msgid "time;timer;alarm;world clock;stopwatch;time zone;"
|
||||||
|
-msgstr "χρόνος·χρονόμετρο·συναγερμός·παγκόσμιο ρολόι·χρονόμετρο·ώρα ζώνης·"
|
||||||
|
+msgstr "χρόνος;χρονόμετρο;συναγερμός;παγκόσμιο ρολόι;χρονόμετρο;ώρα ζώνης;"
|
||||||
|
|
||||||
|
#. Translators: "New" refers to an alarm
|
||||||
|
#: ../gnomeclocks/alarm.py:91 ../gnomeclocks/alarm.py:443
|
||||||
|
diff --git a/po/ug.po b/po/ug.po
|
||||||
|
index 53be856..05b0f51 100644
|
||||||
|
--- a/po/ug.po
|
||||||
|
+++ b/po/ug.po
|
||||||
|
@@ -32,7 +32,7 @@ msgstr "دۇنيا ۋاقىتلىرى، قوڭغۇراقلىق سائەت، ۋا
|
||||||
|
|
||||||
|
#: ../data/gnome-clocks.desktop.in.h:4
|
||||||
|
msgid "time;timer;alarm;world clock;stopwatch;time zone;"
|
||||||
|
-msgstr "time;timer;alarm;world clock;stopwatch;time zone;ۋاقىت؛ئۆلچىگۈچ؛قوڭغۇراق؛دۇنيا سائىتى؛ۋاقىت رايونى؛"
|
||||||
|
+msgstr "time;timer;alarm;world clock;stopwatch;time zone;ۋاقىت؛ئۆلچىگۈچ؛قوڭغۇراق؛دۇنيا سائىتى؛ۋاقىت رايونى;"
|
||||||
|
|
||||||
|
#: ../gnomeclocks/alarm.py:93 ../gnomeclocks/alarm.py:455
|
||||||
|
msgid "Alarm"
|
@ -1,7 +1,5 @@
|
|||||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
||||||
|
|
||||||
Name: gnome-clocks
|
Name: gnome-clocks
|
||||||
Version: 0.1.5
|
Version: 0.1.6
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Clock application designed for GNOME 3
|
Summary: Clock application designed for GNOME 3
|
||||||
|
|
||||||
@ -9,10 +7,13 @@ License: GPLv2+
|
|||||||
URL: https://live.gnome.org/GnomeClocks
|
URL: https://live.gnome.org/GnomeClocks
|
||||||
Source0: http://download.gnome.org/sources/gnome-clocks/0.1/%{name}-%{version}.tar.xz
|
Source0: http://download.gnome.org/sources/gnome-clocks/0.1/%{name}-%{version}.tar.xz
|
||||||
|
|
||||||
|
# https://bugzilla.gnome.org/show_bug.cgi?id=693234
|
||||||
|
Patch1: gnome-clocks-0.1.6-desktop-keywords.patch
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python2-devel python-distutils-extra
|
BuildRequires: python3-devel
|
||||||
BuildRequires: intltool desktop-file-utils
|
BuildRequires: intltool desktop-file-utils glib2
|
||||||
Requires: pygobject3 pyxdg clutter-gtk libgweather gnome-desktop3 libnotify
|
Requires: pygobject3 clutter-gtk libgweather gnome-desktop3 libnotify
|
||||||
Requires: pycanberra
|
Requires: pycanberra
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -20,40 +21,47 @@ Clock application designed for GNOME 3
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
rm -fv gnomeclocks/pycanberra.py
|
%patch1 -p1 -b .desktop-keywords
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__python} setup.py build
|
%configure
|
||||||
|
make V=1 %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
# with --skip-build some stuff is not installed, remove it for now
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
%{__python} setup.py install --root $RPM_BUILD_ROOT
|
|
||||||
rm -r $RPM_BUILD_ROOT/%{_datadir}/doc
|
|
||||||
desktop-file-validate $RPM_BUILD_ROOT/%{_datadir}/applications/gnome-clocks.desktop
|
desktop-file-validate $RPM_BUILD_ROOT/%{_datadir}/applications/gnome-clocks.desktop
|
||||||
%find_lang gnome-clocks
|
%find_lang gnome-clocks
|
||||||
|
|
||||||
%post
|
%post
|
||||||
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
/bin/touch --no-create %{_datadir}/icons/hicolor %{_datadir}/icons/HighContrast &>/dev/null || :
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
if [ $1 -eq 0 ] ; then
|
if [ $1 -eq 0 ] ; then
|
||||||
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
|
/bin/touch --no-create %{_datadir}/icons/hicolor %{_datadir}/icons/HighContrast &>/dev/null
|
||||||
/usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :
|
/usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :
|
||||||
|
/usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/HighContrast &>/dev/null || :
|
||||||
|
/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%posttrans
|
%posttrans
|
||||||
/usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :
|
/usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :
|
||||||
|
/usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/HighContrast &>/dev/null || :
|
||||||
|
/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
|
||||||
|
|
||||||
%files -f gnome-clocks.lang
|
%files -f gnome-clocks.lang
|
||||||
%doc COPYING README NEWS
|
%doc COPYING README NEWS
|
||||||
%{_bindir}/gnome-clocks
|
%{_bindir}/gnome-clocks
|
||||||
%{python_sitelib}/*
|
%{python3_sitelib}/gnomeclocks
|
||||||
%{_datadir}/gnome-clocks
|
%{_datadir}/gnome-clocks
|
||||||
%{_datadir}/icons/hicolor/*/apps/clocks.png
|
%{_datadir}/icons/*/*/apps/gnome-clocks.png
|
||||||
%{_datadir}/applications/gnome-clocks.desktop
|
%{_datadir}/applications/gnome-clocks.desktop
|
||||||
|
%{_datadir}/glib-2.0/schemas/org.gnome.clocks.gschema.xml
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Feb 6 2013 Yanko Kaneti <yaneti@declera.com> - 0.1.6-1
|
||||||
|
- Update to 0.1.6. Handle the move to autotools.
|
||||||
|
|
||||||
* Tue Dec 4 2012 Yanko Kaneti <yaneti@declera.com> - 0.1.5-1
|
* Tue Dec 4 2012 Yanko Kaneti <yaneti@declera.com> - 0.1.5-1
|
||||||
- Update to 0.1.5.
|
- Update to 0.1.5.
|
||||||
- Additionaly require gnome-desktop3 and libnotify
|
- Additionaly require gnome-desktop3 and libnotify
|
||||||
|
Loading…
Reference in New Issue
Block a user