Blame SPECS/python-dmidecode.spec

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