summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJF Ding <jian-feng.ding@intel.com>2011-11-04 21:57:59 +0800
committerJF Ding <jian-feng.ding@intel.com>2011-11-04 21:58:30 +0800
commit4ed8d0e4ac55e9b6a299f3b63adc43be99fa17d9 (patch)
tree8ce2adcaceeb14b9363f0501c148f6e9570d0fc9
parent51f5e46de4973a5b75b22e09a2dcac80d6d1b6c8 (diff)
downloadmic-4ed8d0e4ac55e9b6a299f3b63adc43be99fa17d9.tar.gz
mic-4ed8d0e4ac55e9b6a299f3b63adc43be99fa17d9.tar.bz2
mic-4ed8d0e4ac55e9b6a299f3b63adc43be99fa17d9.zip
update distfiles and Makefile
-rw-r--r--Makefile9
-rw-r--r--distfiles/mic.spec8
-rw-r--r--distfiles/mic.yaml2
3 files changed, 8 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index e0ad4a5..641188a 100644
--- 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:
diff --git a/distfiles/mic.spec b/distfiles/mic.spec
index 48d2851..7dd1453 100644
--- a/distfiles/mic.spec
+++ b/distfiles/mic.spec
@@ -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}/*
diff --git a/distfiles/mic.yaml b/distfiles/mic.yaml
index 59b0a3f..85689b7 100644
--- a/distfiles/mic.yaml
+++ b/distfiles/mic.yaml
@@ -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