Blame SPECS/python-dmidecode.spec

6bd781
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
6bd781
%{!?python_ver: %global python_ver %(%{__python} -c "import sys ; print sys.version[:3]")}
6bd781
6bd781
Summary: Python module to access DMI data
6bd781
Name: python-dmidecode
ef6e75
Version: 3.12.2
dbbe91
Release: 3%{?dist}
6bd781
License: GPLv2
6bd781
Group: System Environment/Libraries
dbbe91
URL: https://github.com/nima/python-dmidecode/
6bd781
Source0: %{name}-%{version}.tar.xz
6bd781
Source1: generate-tarball.sh
6bd781
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
6bd781
Requires: libxml2-python
6bd781
BuildRequires: libxml2-python
6bd781
BuildRequires: libxml2-devel
6bd781
BuildRequires: python-devel
dbbe91
ExcludeArch: s390x
6bd781
ef6e75
Patch0: disable-old-smbios-warning.patch
d3c512
Patch1: revert-interface-changes.patch
6bd781
6bd781
%description
6bd781
python-dmidecode is a python extension module that uses the
6bd781
code-base of the 'dmidecode' utility, and presents the data
6bd781
as python data structures or as XML data using libxml2.
6bd781
6bd781
%prep
6bd781
%setup -q
ef6e75
%patch0 -p1
d3c512
%patch1 -p1
6bd781
6bd781
%build
6bd781
make build
6bd781
cd unit-tests
6bd781
make
6bd781
cd ..
6bd781
6bd781
%install
6bd781
rm -rf $RPM_BUILD_ROOT
6bd781
python src/setup.py install --root $RPM_BUILD_ROOT --prefix=%{_prefix}
6bd781
6bd781
%clean
6bd781
rm -rf $RPM_BUILD_ROOT
6bd781
6bd781
6bd781
%files
6bd781
%defattr(-,root,root,-)
6bd781
%doc README doc/README.upstream doc/LICENSE doc/AUTHORS doc/AUTHORS.upstream
6bd781
%{python_sitearch}/dmidecodemod.so
6bd781
%{python_sitearch}/dmidecode.py
6bd781
%{python_sitearch}/dmidecode.py[co]
6bd781
%if "%{python_ver}" >= "2.5"
6bd781
%{python_sitearch}/*.egg-info
6bd781
%endif
6bd781
%{_datadir}/python-dmidecode/
6bd781
6bd781
%changelog
dbbe91
* Sun Jul 22 2018 Lianbo Jiang <lijiang@redhat.com> - 3.12.2-3
dbbe91
- Modified upstream URL reference
dbbe91
- Resolves: #1583926
dbbe91
dbbe91
* Sun Jul 22 2018 Lianbo Jiang <lijiang@redhat.com> - 3.12.2-3
dbbe91
- Disable build for s390x
dbbe91
- Resolves: #1509936
dbbe91
3ca5eb
* Mon Nov 6 2017 Petr Oros <poros@redhat.com> - 3.12.2-2
d3c512
- Revert interface changes
3ca5eb
- Resolves: #1504033
d3c512
ef6e75
* Mon Mar 13 2017 Petr Oros <poros@redhat.com> - 3.12.2-1
ef6e75
- Update to new release
ef6e75
- Resolves: #1431548
48727b
7be188
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 3.10.13-11
7be188
- Mass rebuild 2014-01-24
7be188
7be188
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 3.10.13-10
7be188
- Mass rebuild 2013-12-27
7be188
6bd781
* Mon Jun 20 2013 Ales Ledvinka <aledvink@redhat.com> - 3.10.13-9
6bd781
- Attribute installed may appear as duplicate and cause invalid XML.
6bd781
6bd781
* Mon Jun 17 2013 Ales Ledvinka <aledvink@redhat.com> - 3.10.13-8
6bd781
- Attribute dmispec may cause invalid XML on some hardware.
6bd781
- Signal handler for SIGILL.
6bd781
6bd781
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.10.13-7
6bd781
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
6bd781
6bd781
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.10.13-6
6bd781
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
6bd781
6bd781
* Thu Jul 19 2012 Ales Ledvinka <aledvink@redhat.com> 3.10.14-5
6bd781
- Upstream relocated. Document source tag and tarball generation.
6bd781
6bd781
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.10.13-4
6bd781
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
6bd781
6bd781
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.10.13-3
6bd781
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
6bd781
6bd781
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 3.10.13-2
6bd781
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
6bd781
6bd781
* Tue Jun 15 2010 Roman Rakus <rrakus@redhat.com> - 3.10.13-1
6bd781
- Update to new release
6bd781
6bd781
* Fri Mar 12 2010 Nima Talebi <nima@it.net.au> - 3.10.12-1
6bd781
- Update to new release
6bd781
6bd781
* Tue Feb 16 2010 Nima Talebi <nima@it.net.au> - 3.10.11-1
6bd781
- Update to new release
6bd781
6bd781
* Tue Jan 12 2010 Nima Talebi <nima@it.net.au> - 3.10.10-1
6bd781
- Update to new release
6bd781
6bd781
* Thu Jan 07 2010 Nima Talebi <nima@it.net.au> - 3.10.9-1
6bd781
- Update to new release
6bd781
6bd781
6bd781
* Thu Dec 15 2009 Nima Talebi <nima@it.net.au> - 3.10.8-1
6bd781
- New Upstream release.
6bd781
- Big-endian and little-endian approved.
6bd781
- Packaged unit-test to tarball.
6bd781
- Rewritten unit-test to be able to run as non-root user, where it will not
6bd781
  try to read /dev/mem.
6bd781
- Added two dmidump data files to the unit-test.
6bd781
6bd781
* Thu Nov 26 2009 David Sommerseth <davids@redhat.com> - 3.10.7-3
6bd781
- Fixed even more .spec file issues and removed explicit mentioning
6bd781
  of /usr/share/python-dmidecode/pymap.xml
6bd781
6bd781
* Wed Nov 25 2009 David Sommerseth <davids@redhat.com> - 3.10.7-2
6bd781
- Fixed some .spec file issues (proper Requires, use _datadir macro)
6bd781
6bd781
* Wed Sep 23 2009 Nima Talebi <nima@it.net.au> - 3.10.7-1
6bd781
- Updated source0 to new 3.10.7 tar ball
6bd781
6bd781
* Wed Jul 13 2009 David Sommerseth <davids@redhat.com> - 3.10.6-6
6bd781
- Only build the python-dmidecode module, not everything
6bd781
6bd781
* Wed Jul 13 2009 David Sommerseth <davids@redhat.com> - 3.10.6-5
6bd781
- Added missing BuildRequres for libxml2-python
6bd781
6bd781
* Wed Jul 13 2009 David Sommerseth <davids@redhat.com> - 3.10.6-4
6bd781
- Added missing BuildRequres for python-devel
6bd781
6bd781
* Wed Jul 13 2009 David Sommerseth <davids@redhat.com> - 3.10.6-3
6bd781
- Added missing BuildRequres for libxml2-devel
6bd781
6bd781
* Wed Jul 13 2009 David Sommerseth <davids@redhat.com> - 3.10.6-2
6bd781
- Updated release, to avoid build conflict
6bd781
6bd781
* Wed Jun 10 2009 David Sommerseth <davids@redhat.com> - 3.10.6-1
6bd781
- Updated to work with the new XML based python-dmidecode
6bd781
6bd781
* Sat Mar  7 2009 Clark Williams <williams@redhat.com> - 2.10.3-1
6bd781
- Initial build.
6bd781