update distfiles and Makefile
authorJF Ding <jian-feng.ding@intel.com>
Fri, 4 Nov 2011 13:57:59 +0000 (21:57 +0800)
committerJF Ding <jian-feng.ding@intel.com>
Fri, 4 Nov 2011 13:58:30 +0000 (21:58 +0800)
Makefile
distfiles/mic.spec
distfiles/mic.yaml

index e0ad4a5..641188a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -17,7 +17,6 @@ endif
 all: build
 
 build:
-       rm -f mic/__version__.*
        $(PYTHON) setup.py build
 
 dist-common: man
@@ -36,14 +35,10 @@ dist-gz: dist-common
 man: README.rst
        rst2man $< >mic.1
 
-installman: man
-       mkdir -p $(DESTDIR)/$(PREFIX)/share/man/man1
-       install -m644 mic.1 $(DESTDIR)/$(PREFIX)/share/man/man1
-
-install: 
+install: build
        $(PYTHON) setup.py install  --prefix=$(DESTDIR)/$(PREFIX)
 
-develop: 
+develop: build
        $(PYTHON) setup.py develop
 
 clean:
index 48d2851..7dd1453 100644 (file)
@@ -7,7 +7,7 @@
 
 %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
 Name:       mic
-Summary:    image creator for Linux distributions
+Summary:    Image Creator for Linux Distributions
 Version:    0.1
 Release:    1
 Group:      System/Base
@@ -78,7 +78,9 @@ rm -rf $RPM_BUILD_ROOT
 %endif
 
 # >> install post
-make DESTDIR=%{buildroot} installman
+# install man page
+mkdir -p %{buildroot}/%{_prefix}/share/man/man1
+install -m644 doc/mic.1 %{buildroot}/%{_prefix}/share/man/man1
 # << install post
 
 
@@ -90,7 +92,7 @@ make DESTDIR=%{buildroot} installman
 %defattr(-,root,root,-)
 # >> files
 %doc README.rst
-%{_mandir}/man1/*.1.gz
+%{_mandir}/man1/*
 %dir %{_sysconfdir}/%{name}
 %config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
 %{python_sitelib}/*
index 59b0a3f..85689b7 100644 (file)
@@ -1,5 +1,5 @@
 Name: mic
-Summary: image creator for Linux distributions
+Summary: Image Creator for Linux Distributions
 Version: 0.1
 Release: 1
 Group: System/Base