Accepting request 391755 from home:pluskalm:branches:hardware
OBS-URL: https://build.opensuse.org/request/show/391755 OBS-URL: https://build.opensuse.org/package/show/hardware/lshw?expand=0&rev=8
This commit is contained in:
committed by
Git OBS Bridge
parent
ab8ed9b514
commit
7e30879dc6
60
lshw.spec
60
lshw.spec
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package lshw
|
||||
#
|
||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2013 Pascal Bleser <pascal.bleser@opensuse.org>
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
|
||||
Name: lshw
|
||||
Version: B.02.17
|
||||
Version: B.02.18
|
||||
Release: 0
|
||||
Summary: HardWare LiSter
|
||||
License: GPL-2.0
|
||||
@@ -27,18 +27,24 @@ Url: http://ezix.org/project/wiki/HardwareLiSter
|
||||
Source: http://ezix.org/software/files/lshw-%{version}.tar.gz
|
||||
Source1: lshw.desktop.in
|
||||
Source2: lshw.png
|
||||
Patch1: lshw-gcc43.patch
|
||||
Patch2: lshw-stack-corruption.patch
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: gtk2-devel >= 2.4.0
|
||||
BuildRequires: hicolor-icon-theme
|
||||
BuildRequires: libglade2-devel
|
||||
BuildRequires: libpng-devel
|
||||
BuildRequires: libstdc++-devel
|
||||
BuildRequires: pango-devel
|
||||
BuildRequires: sqlite3-devel
|
||||
BuildRequires: pkg-config
|
||||
BuildRequires: update-desktop-files
|
||||
BuildRequires: zlib-devel
|
||||
BuildRequires: pkgconfig(gail) >= 2.4.0
|
||||
BuildRequires: pkgconfig(gdk-2.0) >= 2.4.0
|
||||
BuildRequires: pkgconfig(gdk-x11-2.0) >= 2.4.0
|
||||
BuildRequires: pkgconfig(gtk+-2.0) >= 2.4.0
|
||||
BuildRequires: pkgconfig(gtk+-unix-print-2.0) >= 2.4.0
|
||||
BuildRequires: pkgconfig(gtk+-x11-2.0) >= 2.4.0
|
||||
BuildRequires: pkgconfig(libglade-2.0)
|
||||
BuildRequires: pkgconfig(pango)
|
||||
BuildRequires: pkgconfig(pangocairo)
|
||||
BuildRequires: pkgconfig(pangoft2)
|
||||
BuildRequires: pkgconfig(pangoxft)
|
||||
BuildRequires: pkgconfig(sqlite3)
|
||||
BuildRequires: pkgconfig(zlib)
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
@@ -59,6 +65,10 @@ Summary: HardWare LiSter (GUI Frontend)
|
||||
Group: Hardware/Other
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: hicolor-icon-theme
|
||||
Requires(post): hicolor-icon-theme
|
||||
Requires(post): update-desktop-files
|
||||
Requires(postun): hicolor-icon-theme
|
||||
Requires(postun): update-desktop-files
|
||||
|
||||
%description gui
|
||||
lshw (Hardware Lister) is a small tool to provide detailed informaton on the
|
||||
@@ -76,8 +86,6 @@ http://www.ezix.org/software/lshw.html
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch1
|
||||
%patch2
|
||||
|
||||
%build
|
||||
make %{?_smp_mflags} \
|
||||
@@ -89,32 +97,11 @@ make %{?_smp_mflags} \
|
||||
CC="gcc" \
|
||||
RPM_OPT_FLAGS="%{optflags}" \
|
||||
STRIP=touch \
|
||||
all
|
||||
|
||||
make %{?_smp_mflags} \
|
||||
PREFIX="%{_prefix}" \
|
||||
SBINDIR="%{_sbindir}" \
|
||||
MANDIR="%{_mandir}" \
|
||||
DATADIR="%{_datadir}" \
|
||||
CXX="g++" \
|
||||
CC="gcc" \
|
||||
RPM_OPT_FLAGS="%{optflags}" \
|
||||
STRIP=touch \
|
||||
all \
|
||||
gui
|
||||
|
||||
%install
|
||||
make %{?_smp_flags} \
|
||||
DESTDIR=%{buildroot} \
|
||||
PREFIX="%{_prefix}" \
|
||||
SBINDIR="%{_sbindir}" \
|
||||
MANDIR="%{_mandir}" \
|
||||
DATADIR="%{_datadir}" \
|
||||
CXX="g++" \
|
||||
CC="gcc" \
|
||||
OPTFLAGS="%{optflags}" \
|
||||
install
|
||||
|
||||
make %{?_smp_flags} \
|
||||
make %{?_smp_mflags} \
|
||||
DESTDIR=%{buildroot} \
|
||||
PREFIX="%{_prefix}" \
|
||||
SBINDIR="%{_sbindir}" \
|
||||
@@ -123,6 +110,7 @@ make %{?_smp_flags} \
|
||||
CXX="g++" \
|
||||
CC="gcc" \
|
||||
OPTFLAGS="%{optflags}" \
|
||||
install \
|
||||
install-gui
|
||||
|
||||
install -d "%{buildroot}%{_datadir}/applications"
|
||||
@@ -145,7 +133,7 @@ install -D -m 0644 "%{SOURCE2}" "%{buildroot}%{_datadir}/pixmaps/%{name}.png"
|
||||
|
||||
%files -f lshw.lang
|
||||
%defattr(-,root,root,0755)
|
||||
%doc README COPYING docs/TODO docs/Changelog docs/lshw.xsd
|
||||
%doc README.md COPYING docs/TODO docs/Changelog docs/lshw.xsd
|
||||
%attr(0755,root,root) %{_sbindir}/lshw
|
||||
%dir %{_datadir}/lshw
|
||||
%{_datadir}/lshw/*.txt
|
||||
|
Reference in New Issue
Block a user