Accepting request 886361 from home:susnux:branches:games
- Fixed and cleaned up the SPEC file (at least the URL was broken) OBS-URL: https://build.opensuse.org/request/show/886361 OBS-URL: https://build.opensuse.org/package/show/games/aop?expand=0&rev=3
This commit is contained in:
parent
0188aede3a
commit
6d2e52b58e
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Apr 17 18:27:48 UTC 2021 - Ferdinand Thiessen <rpm@fthiessen.de>
|
||||||
|
|
||||||
|
- Fixed and cleaned up the SPEC file (at least the URL was broken)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Dec 2 20:46:39 UTC 2015 - nemysis@openSUSE.org
|
Wed Dec 2 20:46:39 UTC 2015 - nemysis@openSUSE.org
|
||||||
|
|
||||||
|
47
aop.spec
47
aop.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package aop
|
# spec file for package aop
|
||||||
#
|
#
|
||||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2021 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -12,7 +12,7 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# 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/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
@ -20,27 +20,20 @@ Name: aop
|
|||||||
Version: 0.6
|
Version: 0.6
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Ncurses based arcade game with only 64 lines of code
|
Summary: Ncurses based arcade game with only 64 lines of code
|
||||||
License: GPL-2.0+
|
License: GPL-2.0-or-later
|
||||||
Group: Amusements/Games/Action/Arcade
|
Group: Amusements/Games/Action/Arcade
|
||||||
Url: http://raffi.at/view/code/aop
|
URL: https://raffi.at/view/code/aop
|
||||||
Source0: http://raffi.at/code/%{name}/%{name}-%{version}.tar.gz
|
Source0: https://raffi.at/code/%{name}/%{name}-%{version}.tar.gz
|
||||||
Source1: %{name}.png
|
Source1: %{name}.png
|
||||||
Source2: %{name}.desktop
|
Source2: %{name}.desktop
|
||||||
# PATCH-FIX-OPENSUSE - aop-Makefile.patch -- Fix build and installation
|
# PATCH-FIX-OPENSUSE - aop-Makefile.patch -- Fix build and installation
|
||||||
Patch0: %{name}-Makefile.patch
|
Patch0: %{name}-Makefile.patch
|
||||||
# PATCH-FIX-OPENSUSE - aop-aop.c.patch-- Fix lifes and where are levels
|
# PATCH-FIX-OPENSUSE - aop-aop.c.patch-- Fix lifes and where are levels
|
||||||
Patch1: %{name}-aop.c.patch
|
Patch1: %{name}-aop.c.patch
|
||||||
%if 0%{?suse_version}
|
|
||||||
BuildRequires: hicolor-icon-theme
|
BuildRequires: hicolor-icon-theme
|
||||||
BuildRequires: update-desktop-files
|
|
||||||
%endif
|
|
||||||
%if 0%{?suse_version} < 1320
|
|
||||||
BuildRequires: ncurses-devel
|
|
||||||
%else
|
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
|
BuildRequires: update-desktop-files
|
||||||
BuildRequires: pkgconfig(ncurses)
|
BuildRequires: pkgconfig(ncurses)
|
||||||
%endif
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Ambassador of Pain is a curses based arcade game for Linux/UNIX
|
Ambassador of Pain is a curses based arcade game for Linux/UNIX
|
||||||
@ -52,37 +45,25 @@ the number of moves and don't losing any time.
|
|||||||
Lost lifes (0) can easily be picked up by simply drive over them.
|
Lost lifes (0) can easily be picked up by simply drive over them.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%autosetup -p0
|
||||||
%patch0
|
|
||||||
%patch1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if 0%{?suse_version} < 1320
|
CFLAGS="%{optflags} $(pkg-config --cflags ncurses)"
|
||||||
CFLAGS="%optflags $(ncursesw6-config --cflags)"
|
LIBS="$(pkg-config --libs ncurses)"
|
||||||
LIBS="$(ncursesw6-config --libs)"
|
%make_build CFLAGS="$CFLAGS" LIBS="$LIBS"
|
||||||
%else
|
|
||||||
CFLAGS="%optflags $(pkg-config ncurses --cflags)"
|
|
||||||
LIBS="$(pkg-config ncurses --libs)"
|
|
||||||
%endif
|
|
||||||
|
|
||||||
make %{?_smp_mflags} CFLAGS="$CFLAGS" LIBS="$LIBS"
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
|
|
||||||
# install icon
|
# install icon
|
||||||
install -Dm 0644 %{S:1} %{buildroot}%{_datadir}/pixmaps/%{name}.png
|
install -Dm 0644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/%{name}.png
|
||||||
|
|
||||||
# install Desktop file
|
# install Desktop file
|
||||||
install -Dm 0644 %{S:2} %{buildroot}%{_datadir}/applications/%{name}.desktop
|
%suse_update_desktop_file -i %{name}
|
||||||
|
|
||||||
%if 0%{?suse_version}
|
|
||||||
%suse_update_desktop_file %{name}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%doc README
|
||||||
%doc COPYING README
|
%license COPYING
|
||||||
%{_bindir}/%{name}
|
%{_bindir}/%{name}
|
||||||
%{_datadir}/%{name}
|
%{_datadir}/%{name}
|
||||||
%{_datadir}/applications/%{name}.desktop
|
%{_datadir}/applications/%{name}.desktop
|
||||||
|
Loading…
Reference in New Issue
Block a user