diff options
author | JF Ding <jian-feng.ding@intel.com> | 2011-11-04 21:57:59 +0800 |
---|---|---|
committer | JF Ding <jian-feng.ding@intel.com> | 2011-11-04 21:58:30 +0800 |
commit | 4ed8d0e4ac55e9b6a299f3b63adc43be99fa17d9 (patch) | |
tree | 8ce2adcaceeb14b9363f0501c148f6e9570d0fc9 | |
parent | 51f5e46de4973a5b75b22e09a2dcac80d6d1b6c8 (diff) | |
download | mic-4ed8d0e4ac55e9b6a299f3b63adc43be99fa17d9.tar.gz mic-4ed8d0e4ac55e9b6a299f3b63adc43be99fa17d9.tar.bz2 mic-4ed8d0e4ac55e9b6a299f3b63adc43be99fa17d9.zip |
update distfiles and Makefile
-rw-r--r-- | Makefile | 9 | ||||
-rw-r--r-- | distfiles/mic.spec | 8 | ||||
-rw-r--r-- | distfiles/mic.yaml | 2 |
3 files changed, 8 insertions, 11 deletions
@@ -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 |