-%global uprelease 7.1
-%global hwdbnumber 22
-
-Name: hwdata
-Summary: Hardware identification and configuration data
-Version: 0.252
-Release: %{uprelease}%{?dist}
-License: GPLv2+
-Group: System Environment/Base
-Source0: https://fedorahosted.org/releases/h/w/%{name}/%{name}-%{version}-%{uprelease}.tar.bz2
-URL: http://git.fedorahosted.org/git/hwdata.git
-BuildArch: noarch
+# This package is arch-specific just because of bundling different files for
+# different architectures. No -debuginfo package is needed.
+%global debug_package %{nil}
+%global uprelease 8.6
+
+Name: hwdata
+Summary: Hardware identification and configuration data
+Version: 0.252
+Release: %{uprelease}%{?dist}
+License: GPLv2+
+Group: System Environment/Base
+Source: https://github.com/vcrhonek/hwdata/archive/v%{version}-%{?uprelease}.tar.gz
+URL: https://github.com/vcrhonek/hwdata
+
+BuildRequires : perl
+BuildRequires : perl(Date::Format)
+
+Requires : systemd
+Requires(post) : systemd
+Requires(postun): systemd
%description
hwdata contains various hardware identification and configuration data,
%configure
%build
-# nothing to build
%install
rm -rf $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
+%post
+udevadm hwdb --update >/dev/null 2>&1 || :
+
+%postun
+udevadm hwdb --update >/dev/null 2>&1 || :
+
%files
%doc LICENSE COPYING
%dir %{_datadir}/%{name}
%{_prefix}/lib/modprobe.d/dist-blacklist.conf
+%{_prefix}/lib/udev/hwdb.d/[0-9][0-9]-*.hwdb
%{_datadir}/%{name}/*
%changelog
+* Tue Jun 27 2017 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.252-8.6
+- Updated pci, usb and vendor ids
+ Resolves: #1386133 #1463185
+
+* Mon Mar 20 2017 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.252-8.5
+- Updated pci, usb and vendor ids
+ Resolves: #1386133 #1424763
+- Removed module nx_crypto from blacklist on PowerPCs
+ Resolves: #1264326
+
+* Thu Sep 29 2016 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.252-8.4
+- Remove wrong entry from usb ids.
+ Resolves: #1380159
+
+* Mon Sep 26 2016 Vitezslav Crhonek <vcrhonek@redhat.com> - 0.252-8.3
+- Updated pci, usb and vendor ids.
+- Resolves: rhbz#1292382
+
+* Tue Jun 28 2016 Michal Minar <miminar@redhat.com> 0.252-8.2
+- Updated pci, usb and vendor ids.
+- Resolves: rhbz#1292382
+- Resolves: rhbz#1291614
+- Resolves: rhbz#1324198
+
+* Fri Oct 23 2015 Michal Minar <miminar@redhat.com> 0.252-8.1
+- Updated pci, usb and vendor ids.
+- Resolves: rhbz#1236458
+- Resolves: rhbz#1256004
+- Resolves: rhbz#1266217
+- Resolves: rhbz#1271797
+
+* Mon Jun 29 2015 Michal Minar <miminar@redhat.com> 0.252-7.9
+- Updated pci, usb and vendor ids.
+
+* Tue Apr 14 2015 Michal Minar <miminar@redhat.com> 0.252-7.8
+- Blacklisted module nx_crypto on PowerPCs.
+- Resolves: rhbz#1211389
+- Disable debuginfo build.
+
+* Fri Apr 10 2015 Michal Minar <miminar@redhat.com> 0.252-7.6
+- Blacklisted experimental module sha1-mb.
+- Resolves: rhbz#1208120
+
+* Fri Jan 30 2015 Michal Minar <miminar@redhat.com> 0.252-7.5
+- Updated vendor, usb and pci ids.
+
+* Mon Sep 22 2014 Michal Minar <miminar@redhat.com> 0.252-7.4
+- Updated vendor, usb and pci ids.
+
+* Thu Mar 27 2014 Michal Minar <miminar@redhat.com> 0.252-7.3
+- Added few more hwdb files.
+- Updated vendor and pci ids.
+
* Thu Mar 20 2014 Michal Minar <miminar@redhat.com> 0.252-7.1
- Bumped release to reflect rhel version.
- Fixed bogus dates in changelog.
+- Generate and install hwdb.d/* files.
+
+* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.252-3
+- Mass rebuild 2013-12-27
* Mon Aug 5 2013 Michal Minar <miminar@redhat.com> 0.252-2
- Changelog fix.