SHA256
1
0
forked from pool/linux32

Accepting request 730179 from Base:System

OBS-URL: https://build.opensuse.org/request/show/730179
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/linux32?expand=0&rev=22
This commit is contained in:
Ludwig Nussel 2019-09-13 12:59:30 +00:00 committed by Git OBS Bridge
commit 6ac279d90f
2 changed files with 25 additions and 41 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Sep 9 13:40:11 UTC 2019 - Martin Pluskal <mpluskal@suse.com>
- Cleanup spec file with spec-cleaner
- Fix dependencies (recommend xterm)
-------------------------------------------------------------------
Thu Oct 20 17:26:51 UTC 2011 - badshah400@gmail.com

View File

@ -1,7 +1,7 @@
#
# spec file for package linux32
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -12,30 +12,29 @@
# 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: linux32
BuildRequires: update-desktop-files
BuildRequires: hicolor-icon-theme
Url: ftp://ftp.x86-64.org/pub/linux/tools/linux32/
License: GPL-2.0+
Group: System/Kernel
Summary: 32-Bit Emulation Utility for x86-64
Version: 1.0
Release: 478
BuildRoot: %{_tmppath}/%{name}-%{version}-build
ExclusiveArch: x86_64
Source2: %name.desktop
Release: 0
Summary: 32-Bit Emulation Utility for x86-64
License: GPL-2.0-or-later
Group: System/Kernel
URL: http://ftp.x86-64.org/pub/linux/tools/linux32/
Source2: %{name}.desktop
Source3: konsole-linux32-24.png
Source4: konsole-linux32-32.png
Source5: konsole-linux32-48.png
Source6: konsole-linux32-64.png
Source7: konsole-linux32-128.png
Source8: konsole-linux32-256.png
BuildRequires: hicolor-icon-theme
BuildRequires: update-desktop-files
Requires: util-linux >= 2.16
Recommends: xterm-bin
ExclusiveArch: x86_64
%description
This is a small tool for 32-bit emulation in Linux/x86-64. It allows
@ -44,41 +43,20 @@ emulation. The uname -m is inherited by all child programs, but does
not affect the current shell or processes above it in the process
hierarchy.
Authors:
--------
Andi Kleen <ak@suse.de>
%prep
%build
%install
install -D -m 644 %{S:3} %{buildroot}%{_datadir}/icons/hicolor/24x24/apps/konsole-linux32.png
install -D -m 644 %{S:4} %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/konsole-linux32.png
install -D -m 644 %{S:5} %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/konsole-linux32.png
install -D -m 644 %{S:6} %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/konsole-linux32.png
install -D -m 644 %{S:7} %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/konsole-linux32.png
install -D -m 644 %{S:8} %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/konsole-linux32.png
%suse_update_desktop_file -i %name
%post
%if 0%{?suse_version} > 1130
%icon_theme_cache_post
%else
gtk-update-icon-cache %{_datadir}/icons/hicolor || true
%endif
%postun
%if 0%{?suse_version} > 1130
%icon_theme_cache_postun
%else
gtk-update-icon-cache %{_datadir}/icons/hicolor || true
%endif
install -D -m 644 %{SOURCE3} %{buildroot}%{_datadir}/icons/hicolor/24x24/apps/konsole-linux32.png
install -D -m 644 %{SOURCE4} %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/konsole-linux32.png
install -D -m 644 %{SOURCE5} %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/konsole-linux32.png
install -D -m 644 %{SOURCE6} %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/konsole-linux32.png
install -D -m 644 %{SOURCE7} %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/konsole-linux32.png
install -D -m 644 %{SOURCE8} %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/konsole-linux32.png
%suse_update_desktop_file -i %{name}
%files
%defattr(-,root,root)
%{_datadir}/applications/*
%{_datadir}/icons/hicolor/*/apps/konsole-linux32.png