From f7769ec8b445ccdb4717c477281c40ca114a8fdfc5766a92629d639c81874ffb Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Mon, 15 Mar 2021 08:15:27 +0000 Subject: [PATCH] - Enforce usage of optflags - Modernise spec file OBS-URL: https://build.opensuse.org/package/show/X11:Utilities/xpinguin?expand=0&rev=6 --- xpinguin.changes | 6 ++++++ xpinguin.spec | 50 ++++++++++++++++++------------------------------ 2 files changed, 25 insertions(+), 31 deletions(-) diff --git a/xpinguin.changes b/xpinguin.changes index 96dc662..eb84fc8 100644 --- a/xpinguin.changes +++ b/xpinguin.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Mar 15 08:14:49 UTC 2021 - Martin Pluskal + +- Enforce usage of optflags +- Modernise spec file + ------------------------------------------------------------------- Mon Feb 19 20:31:37 UTC 2018 - crrodriguez@opensuse.org diff --git a/xpinguin.spec b/xpinguin.spec index 0efa438..5790337 100644 --- a/xpinguin.spec +++ b/xpinguin.spec @@ -1,7 +1,7 @@ # # spec file for package xpinguin # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,58 +12,46 @@ # 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/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: xpinguin +Version: 1.0.2 +Release: 0 +Summary: The 'Logo' of Linux 2.0 +License: GPL-2.0-or-later +Group: Amusements/Toys/Graphics +Source: xpinguin.tar.gz +Source1: xpinguin.png +Source2: xpinguin.desktop BuildRequires: imake +BuildRequires: pkgconfig BuildRequires: update-desktop-files BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(xext) BuildRequires: pkgconfig(xpm) -Summary: The 'Logo' of Linux 2.0 -License: GPL-2.0+ -Group: Amusements/Toys/Graphics -Version: 1.0.2 -Release: 0 -Source: xpinguin.tar.gz -Source1: xpinguin.png -Source2: xpinguin.desktop -BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Based on xteddy -- really cute ;-) - - -Authors: --------- - Stefan Gustavson - Jens Poenisch - %prep -%setup -n xpinguin +%autosetup -n xpinguin ln -s xpinguin.1 xpinguin.man xmkmf -a %build -make +%make_build CC="cc %{optflags}" %install -rm -rf $RPM_BUILD_ROOT -make DESTDIR=$RPM_BUILD_ROOT install install.man -rm -f $RPM_BUILD_ROOT/usr/X11R6/man/man1/xpinguin.1x.gz +%make_install install.man +rm -f %{buildroot}%{_prefix}/X11R6/man/man1/xpinguin.1x.gz %suse_update_desktop_file -i xpinguin Amusement -%clean -rm -rf $RPM_BUILD_ROOT - %files -%defattr(-,root,root) -%_bindir/xpinguin -%_mandir/man1/xpinguin.1x.gz -/usr/share/applications/xpinguin.desktop -/usr/share/pixmaps/xpinguin.png +%{_bindir}/xpinguin +%{_mandir}/man1/xpinguin.1x.gz +%{_datadir}/applications/xpinguin.desktop +%{_datadir}/pixmaps/xpinguin.png %changelog