From f744a1428ddd9e0c1a90f2725192abf9cd4d3628 Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Wed, 10 Jun 2009 21:03:54 +0200 Subject: Updated Makefile and redhat.spec to work --- Makefile | 10 +++++----- redhat.spec | 16 ++++++++++++---- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index c4e28e5..da32cb6 100644 --- a/Makefile +++ b/Makefile @@ -28,7 +28,7 @@ CFLAGS += -O3 #LDFLAGS = -lefence LDFLAGS = SOFLAGS = -pthread -shared -L/home/nima/dev-room/projects/dmidecode -lutil -SO = build/lib.linux-$(shell uname -m)-$(PY_VER)/dmidecode.so +SO = build/lib.linux-$(shell uname -m)-$(PY_VER)/dmidecodemod.so #. Search vpath %.o $(OBJ_D) @@ -43,8 +43,8 @@ TEMP: endif ############################################################################### -build: $(PY)-dmidecode.so -$(PY)-dmidecode.so: $(SO) +build: $(PY)-dmidecodemod.so +$(PY)-dmidecodemod.so: $(SO) cp $< $@ build: $(SO) @@ -58,7 +58,7 @@ uninstall: $(PY) src/setup.py uninstall clean : - dh_clean +# dh_clean $(PY) src/setup.py clean -$(RM) *.so lib/*.o core -rm -rf build .dpkg @@ -67,7 +67,7 @@ clean : tarball: rm -rf $(PACKAGE)-$(VERSION) mkdir $(PACKAGE)-$(VERSION) - cp -r contrib doc examples lib Makefile man README src $(PACKAGE)-$(VERSION) + cp -r contrib doc examples lib Makefile man README src dmidecode.py redhat.spec $(PACKAGE)-$(VERSION) tar -czvf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION) rpm: tarball diff --git a/redhat.spec b/redhat.spec index fb0a379..791fc9d 100644 --- a/redhat.spec +++ b/redhat.spec @@ -10,6 +10,8 @@ Group: System Environment/Libraries URL: http://projects.autonomy.net.au/dmidecode/ Source0: %{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root +Requires: libxml2 +Requires: libxml2-python %description python-dmidecode is a python extension module that uses the @@ -33,12 +35,18 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc -%{python_sitearch}/dmidecode.so -%if "%{python_ver}" >= "2.5" -%{python_sitearch}/*.egg-info -%endif +%{python_sitearch}/dmidecodemod.so +%{python_sitearch}/dmidecode.py +%{python_sitearch}/dmidecode.py[co] +#%if "%{python_ver}" >= "2.5" +#%{python_sitearch}/*.egg-info +#%endif +/usr/share/python-dmidecode/pymap.xml %changelog +* Wed Jun 10 2009 David Sommerseth - 3.10.6-1 +- Updated to work with the new XML based python-dmidecode + * Sat Mar 7 2009 Clark Williams - 2.10.3-1 - Initial build. -- cgit