diff --git a/lshw-B.02.17.tar.gz b/lshw-B.02.17.tar.gz deleted file mode 100644 index fe91365..0000000 --- a/lshw-B.02.17.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:eb9cc053fa0f1e78685cb695596e73931bfb55d2377e3bc3b8b94aff4c5a489c -size 2005737 diff --git a/lshw-B.02.18.tar.gz b/lshw-B.02.18.tar.gz new file mode 100644 index 0000000..77f1317 --- /dev/null +++ b/lshw-B.02.18.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ae22ef11c934364be4fd2a0a1a7aadf4495a0251ec6979da280d342a89ca3c2f +size 2322176 diff --git a/lshw-gcc43.patch b/lshw-gcc43.patch deleted file mode 100644 index 072c15b..0000000 --- a/lshw-gcc43.patch +++ /dev/null @@ -1,23 +0,0 @@ ---- src/core/abi.cc.orig 2010-03-15 21:26:20.000000000 +0100 -+++ src/core/abi.cc 2013-08-06 21:05:08.693772583 +0200 -@@ -11,6 +11,7 @@ - #include - #include - #include -+#include - - __ID("@(#) $Id: mem.cc 1352 2006-05-27 23:54:13Z ezix $"); - -@@ -38,10 +39,10 @@ - for(i=0; id_name); -- free(namelist[i]); -+ std::free(namelist[i]); - } - if(namelist) -- free(namelist); -+ std::free(namelist); - } - - popd(); diff --git a/lshw-stack-corruption.patch b/lshw-stack-corruption.patch deleted file mode 100644 index 11773dd..0000000 --- a/lshw-stack-corruption.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- src/core/fat.cc -+++ src/core/fat.cc -@@ -81,6 +81,7 @@ - uint8_t dummy2[164]; - uint8_t pmagic[2]; - } __attribute__((__packed__)) fat32; -+ char sector[512]; // to make sure the whole struct is at least 512 bytes long - } __attribute__((__packed__)) type; - } __attribute__((__packed__)); - diff --git a/lshw.changes b/lshw.changes index 89c17cc..6ea239c 100644 --- a/lshw.changes +++ b/lshw.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Tue Apr 26 19:39:38 UTC 2016 - mpluskal@suse.com + +- Update to B.02.18 + * no changelog available +- Use pkgconfig style dependencies +- Update dependencies +- Build gui and cli at same time +- Drop no longer needed patches + * lshw-gcc43.patch + * lshw-stack-corruption.patch + ------------------------------------------------------------------- Fri Jul 24 10:48:58 UTC 2015 - mpluskal@suse.com diff --git a/lshw.spec b/lshw.spec index 2125e7a..2f05f7b 100644 --- a/lshw.spec +++ b/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 # # 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