From 3f965edbb260b89008778ce99d8367e185eb22594e1e494207a833edd9b680e0 Mon Sep 17 00:00:00 2001 From: Pascal Bleser Date: Wed, 10 Nov 2010 23:04:04 +0000 Subject: [PATCH] fix formatting, remove debug_package, conditional on suse_desktop_file OBS-URL: https://build.opensuse.org/package/show/utilities/calcurse?expand=0&rev=2 --- calcurse.spec | 32 ++++++++++++++------------------ 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/calcurse.spec b/calcurse.spec index 89ce365..a8d671e 100644 --- a/calcurse.spec +++ b/calcurse.spec @@ -1,19 +1,19 @@ -# norootforbuild +# vim: set ts=4 sw=4 et: -Name: calcurse -Version: 2.8 +Name: calcurse +Version: 2.8 Release: 0 -Summary: Text-based Organizer +Summary: Text-based Organizer # http://culot.org/cgi-bin/get.cgi?calcurse-%{version}.tar.gz -Source: calcurse-%{version}.tar.bz2 -Source1: %{name}.desktop +Source: calcurse-%{version}.tar.bz2 +Source1: %{name}.desktop Patch1: calcurse-fix_missing_return_in_nonvoid_function.patch -URL: http://culot.org/calcurse/ -Group: Productivity/Office/Organizers -License: BSD License -BuildRoot: %{_tmppath}/build-%{name}-%{version} -BuildRequires: ncurses-devel gcc make glibc-devel gettext gettext-devel -BuildRequires: autoconf automake libtool update-desktop-files +URL: http://culot.org/calcurse/ +Group: Productivity/Office/Organizers +License: BSD License +BuildRoot: %{_tmppath}/build-%{name}-%{version} +BuildRequires: ncurses-devel gcc make glibc-devel gettext gettext-devel +BuildRequires: autoconf automake libtool update-desktop-files %description Calcurse is a text-based personal organizer which helps keep track of events @@ -29,7 +29,6 @@ Authors: -------- Frédéric Culot -%debug_package %prep %setup -q %patch1 @@ -41,7 +40,9 @@ Authors: %install %makeinstall %__install -D -m 0644 "%{SOURCE1}" "%{buildroot}%{_datadir}/applications/%{name}.desktop" +%if 0%{?suse_update_desktop_file:1} %suse_update_desktop_file -r "%{name}" Office Calendar +%endif %__mv \ "%{buildroot}%{_datadir}/locale/en" \ @@ -61,8 +62,3 @@ Authors: %doc %{_mandir}/man1/calcurse.1%{ext_man} %{_datadir}/applications/%{name}.desktop -%changelog -# Local Variables: -# mode: rpm-spec -# tab-width: 3 -# End: