Section: devel
Priority: extra
Maintainer: Jian-feng Ding <jian-feng.ding@intel.com>
-Build-Depends: debhelper (>= 7.0.15), cdbs, python-dev, python-support
+Build-Depends: debhelper (>= 7.0.15), cdbs, python-dev, python-support, python-docutils
Standards-Version: 3.8.0
Homepage: http://www.tizen.org
dh_testdir
python setup.py build
+ make man
clean:
dh_testdir
# Installing package
mkdir -p $(CURDIR)/debian/mic $(CURDIR)/debian/mic/usr/bin $(CURDIR)/debian/mic/usr/share/man/man1
- install -m644 doc/mic.1 $(CURDIR)/debian/mic/usr/share/man/man1
+ install -m644 mic.1 $(CURDIR)/debian/mic/usr/share/man/man1
#make DESTDIR=$(CURDIR)/debian/mic installman
#make DESTDIR=$(CURDIR)/debian/micng installconf
#make DESTDIR=$(CURDIR)/debian/micng installsymlinks
--- /dev/null
+PKG_NAME := mic
+SPECFILE = $(addsuffix .spec, $(PKG_NAME))
+PKG_VERSION := $(shell grep '^Version: ' $(SPECFILE)|awk '{print $$2}')
+
+TARBALL := $(PKG_NAME)_$(PKG_VERSION).tar.gz
+
+dsc: $(TARBALL)
+ $(eval MD5=$(shell md5sum $(TARBALL) | sed "s/ / $(shell stat -c '%s' $(TARBALL)) /"))
+ @sed -i 's/^Version:.*/Version: $(PKG_VERSION)/' $(PKG_NAME).dsc
+ @sed -i 's/ [a-f0-9]\+ [0-9]\+ $(PKG_NAME).*tar.*/ $(MD5)/' $(PKG_NAME).dsc
+
+$(TARBALL):
+ cd "$$(git rev-parse --show-toplevel)" \
+ && git archive --prefix $(PKG_NAME)-$(PKG_VERSION)/ HEAD \
+ | gzip > "$(CURDIR)/$(TARBALL)"
+
+clean:
+ rm -f $(PKG_NAME)*.tar.gz
+
+all: clean dsc
+
Maintainer: Jian-feng Ding <jian-feng.ding@intel.com>
Homepage: http://www.tizen.org
Standards-Version: 3.8.0
-Build-Depends: debhelper (>= 7.0.15), dpatch, cdbs, python-dev, python-support
+Build-Depends: debhelper (>= 7.0.15), dpatch, cdbs, python-dev, python-support, python-docutils
+Files:
+ 1f266944838a142e657aa0244e7f15e5 1684957 mic_0.15.tar.gz
License: GPLv2
BuildArch: noarch
URL: http://www.tizen.org
-Source0: %{name}-%{version}.tar.gz
+Source0: %{name}_%{version}.tar.gz
Requires: rpm-python
Requires: util-linux
Requires: coreutils
%endif
Requires: python-zypp
+
BuildRequires: python-devel
+BuildRequires: python-docutils
Obsoletes: mic2
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
+BuildRoot: %{_tmppath}/%{name}_%{version}-build
%description
%build
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
-
+make man
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install --root=$RPM_BUILD_ROOT -O1
%endif
-# install man page
# remove yum backend for tizen
%if 0%{is_tizen} == 1
rm -rf %{buildroot}/%{_prefix}/lib/%{name}/plugins/backend/yumpkgmgr.py
rm -rf %{buildroot}/%{_sysconfdir}/%{name}/bootstrap.conf
%endif
+
+# install man page
mkdir -p %{buildroot}/%{_prefix}/share/man/man1
-install -m644 doc/mic.1 %{buildroot}/%{_prefix}/share/man/man1
+install -m644 mic.1 %{buildroot}/%{_prefix}/share/man/man1
%files
%defattr(-,root,root,-)
import os, sys, glob, tempfile, shutil
from testbase import *
-class MICTest(unittest.TestCase):
+class TestMIC(unittest.TestCase):
cases_dir = "mic_cases"
if os.path.isdir(cases_dir):
for case in glob.glob(os.path.join(cases_dir,'test-*')):
def tearDown(self):
shutil.rmtree(self.work_env, ignore_errors = True)
+
+ def test_stub(self):
+ """
+ Empty test just to make nose to run at least one test.
+ without tests but with tests/ directory Jenkins job will fail.
+ """
+ assert True
def _testTemplate(self, case):
"""test function"""