Accepting request 493815 from hardware
Automatic submission by obs-autosubmit OBS-URL: https://build.opensuse.org/request/show/493815 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lshw?expand=0&rev=4
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue May 2 17:10:11 UTC 2017 - mpluskal@suse.com
|
||||||
|
|
||||||
|
- Simplify dependencies and build
|
||||||
|
- Split lang subpackage
|
||||||
|
- Prepare for SLE submission (fate#322439)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jun 20 11:25:53 UTC 2016 - mpluskal@suse.com
|
Mon Jun 20 11:25:53 UTC 2016 - mpluskal@suse.com
|
||||||
|
|
||||||
|
48
lshw.spec
48
lshw.spec
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package lshw
|
# spec file for package lshw
|
||||||
#
|
#
|
||||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
# Copyright (c) 2013 Pascal Bleser <pascal.bleser@opensuse.org>
|
# Copyright (c) 2013 Pascal Bleser <pascal.bleser@opensuse.org>
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
@@ -23,8 +23,8 @@ Release: 0
|
|||||||
Summary: HardWare LiSter
|
Summary: HardWare LiSter
|
||||||
License: GPL-2.0
|
License: GPL-2.0
|
||||||
Group: Hardware/Other
|
Group: Hardware/Other
|
||||||
Url: http://ezix.org/project/wiki/HardwareLiSter
|
Url: https://www.ezix.org/project/wiki/HardwareLiSter
|
||||||
Source: http://ezix.org/software/files/lshw-%{version}.tar.gz
|
Source: https://www.ezix.org/software/files/lshw-%{version}.tar.gz
|
||||||
Source1: lshw.desktop.in
|
Source1: lshw.desktop.in
|
||||||
Source2: lshw.png
|
Source2: lshw.png
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
@@ -32,20 +32,9 @@ BuildRequires: hicolor-icon-theme
|
|||||||
BuildRequires: libpng-devel
|
BuildRequires: libpng-devel
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: update-desktop-files
|
BuildRequires: update-desktop-files
|
||||||
BuildRequires: pkgconfig(gail) >= 2.4.0
|
BuildRequires: pkgconfig(gtk+-2.0) >= 2.4
|
||||||
BuildRequires: pkgconfig(gdk-2.0) >= 2.4.0
|
Recommends: %{name}-lang
|
||||||
BuildRequires: pkgconfig(gdk-x11-2.0) >= 2.4.0
|
%lang_package
|
||||||
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
|
%description
|
||||||
lshw (Hardware Lister) is a small tool to provide detailed informaton on the
|
lshw (Hardware Lister) is a small tool to provide detailed informaton on the
|
||||||
@@ -89,34 +78,20 @@ http://www.ezix.org/software/lshw.html
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
make \
|
make \
|
||||||
PREFIX="%{_prefix}" \
|
|
||||||
SBINDIR="%{_sbindir}" \
|
SBINDIR="%{_sbindir}" \
|
||||||
MANDIR="%{_mandir}" \
|
|
||||||
DATADIR="%{_datadir}" \
|
|
||||||
CXX="g++" \
|
|
||||||
CC="gcc" \
|
|
||||||
RPM_OPT_FLAGS="%{optflags} -fno-strict-aliasing" \
|
RPM_OPT_FLAGS="%{optflags} -fno-strict-aliasing" \
|
||||||
STRIP=touch \
|
STRIP=touch \
|
||||||
all gui
|
all gui
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make \
|
%make_install install-gui
|
||||||
%{?_smp_mflags} \
|
|
||||||
DESTDIR=%{buildroot} \
|
|
||||||
PREFIX="%{_prefix}" \
|
|
||||||
SBINDIR="%{_sbindir}" \
|
|
||||||
MANDIR="%{_mandir}" \
|
|
||||||
DATADIR="%{_datadir}" \
|
|
||||||
CXX="g++" \
|
|
||||||
CC="gcc" \
|
|
||||||
OPTFLAGS="%{optflags}" \
|
|
||||||
install install-gui
|
|
||||||
|
|
||||||
install -d "%{buildroot}%{_datadir}/applications"
|
install -d "%{buildroot}%{_datadir}/applications"
|
||||||
sed 's,@@EXEC@@,%{_sbindir}/gtk-lshw,g' < "%{SOURCE1}" \
|
sed 's,@@EXEC@@,%{_sbindir}/gtk-lshw,g' < "%{SOURCE1}" \
|
||||||
> "%{buildroot}%{_datadir}/applications/%{name}.desktop"
|
> "%{buildroot}%{_datadir}/applications/%{name}.desktop"
|
||||||
chmod 0644 "%{buildroot}%{_datadir}/applications/%{name}.desktop"
|
chmod 0644 "%{buildroot}%{_datadir}/applications/%{name}.desktop"
|
||||||
install -D -m 0644 "%{SOURCE2}" "%{buildroot}%{_datadir}/pixmaps/%{name}.png"
|
install -D -p -m 0644 %{SOURCE2} \
|
||||||
|
%{buildroot}%{_datadir}/pixmaps/%{name}.png
|
||||||
|
|
||||||
%suse_update_desktop_file -r "%{name}" System HardwareSettings
|
%suse_update_desktop_file -r "%{name}" System HardwareSettings
|
||||||
# All of following are shipped by other packages as well
|
# All of following are shipped by other packages as well
|
||||||
@@ -135,13 +110,16 @@ rm -f %{buildroot}%{_datadir}/%{name}/manuf.txt
|
|||||||
%desktop_database_postun
|
%desktop_database_postun
|
||||||
%icon_theme_cache_postun
|
%icon_theme_cache_postun
|
||||||
|
|
||||||
%files -f lshw.lang
|
%files
|
||||||
%defattr(-,root,root,0755)
|
%defattr(-,root,root,0755)
|
||||||
%doc README.md 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
|
%attr(0755,root,root) %{_sbindir}/lshw
|
||||||
%dir %{_datadir}/lshw
|
%dir %{_datadir}/lshw
|
||||||
%{_mandir}/man1/lshw.1%{ext_man}
|
%{_mandir}/man1/lshw.1%{ext_man}
|
||||||
|
|
||||||
|
%files lang -f %{name}.lang
|
||||||
|
%defattr(-,root,root)
|
||||||
|
|
||||||
%files gui
|
%files gui
|
||||||
%defattr(-,root,root,0755)
|
%defattr(-,root,root,0755)
|
||||||
%doc COPYING
|
%doc COPYING
|
||||||
|
Reference in New Issue
Block a user