Blame SOURCES/0004-Adjust-Makefile-et-al-to-renamed-package.patch

4f68fd
From cb6de5392b6b9123c39b08cc067dd824eb77bd31 Mon Sep 17 00:00:00 2001
4f68fd
From: David Lehman <dlehman@redhat.com>
4f68fd
Date: Mon, 25 Mar 2019 14:33:56 -0400
4f68fd
Subject: [PATCH 4/8] Adjust Makefile et al to renamed package.
4f68fd
4f68fd
---
4f68fd
 MANIFEST.in         |  2 +-
4f68fd
 Makefile            | 12 ++++++------
4f68fd
 po/Makefile         |  2 +-
4f68fd
 scripts/makeupdates |  4 ++--
4f68fd
 setup.py            |  8 ++++----
4f68fd
 5 files changed, 14 insertions(+), 14 deletions(-)
4f68fd
4f68fd
diff --git a/Makefile b/Makefile
4f68fd
index 76817278..328e17c8 100644
4f68fd
--- a/Makefile
4f68fd
+++ b/Makefile
4f68fd
@@ -1,8 +1,8 @@
4f68fd
 PYTHON?=python3
4f68fd
 PKG_INSTALL?=dnf
4f68fd
 
4f68fd
-PKGNAME=blivet
4f68fd
-SPECFILE=python-blivet.spec
4f68fd
+PKGNAME=blivet3
4f68fd
+SPECFILE=python-blivet3.spec
4f68fd
 VERSION=$(shell $(PYTHON) setup.py --version)
4f68fd
 RPMVERSION=$(shell rpmspec -q --queryformat "%{version}\n" $(SPECFILE) | head -1)
4f68fd
 RPMRELEASE=$(shell rpmspec --undefine '%dist' -q --queryformat "%{release}\n" $(SPECFILE) | head -1)
4f68fd
@@ -51,8 +51,8 @@ test:
4f68fd
 coverage:
4f68fd
 	@echo "*** Running unittests with $(COVERAGE) for $(PYTHON) ***"
4f68fd
 	PYTHONPATH=.:tests/ $(COVERAGE) run --branch -m unittest discover -v -s tests/ -p '*_test.py'
4f68fd
-	$(COVERAGE) report --include="blivet/*" --show-missing
4f68fd
-	$(COVERAGE) report --include="blivet/*" > coverage-report.log
4f68fd
+	$(COVERAGE) report --include="blivet3/*" --show-missing
4f68fd
+	$(COVERAGE) report --include="blivet3/*" > coverage-report.log
4f68fd
 
4f68fd
 pylint:
4f68fd
 	@echo "*** Running pylint ***"
4f68fd
@@ -69,7 +69,7 @@ pep8:
4f68fd
 	else \
4f68fd
 		echo "You need to install pycodestyle/pep8 to run this check."; exit 1; \
4f68fd
 	fi ; \
4f68fd
-	$$pep8 --ignore=E501,E402,E731,W504 blivet/ tests/ examples/
4f68fd
+	$$pep8 --ignore=E501,E402,E731,W504 blivet3/ tests/ examples/
4f68fd
 
4f68fd
 canary: po-fallback
4f68fd
 	@echo "*** Running translation-canary tests ***"
4f68fd
@@ -83,7 +83,7 @@ check:
4f68fd
 	exit $$status
4f68fd
 
4f68fd
 clean:
4f68fd
-	-rm *.tar.gz blivet/*.pyc blivet/*/*.pyc ChangeLog
4f68fd
+	-rm *.tar.gz blivet3/*.pyc blivet3/*/*.pyc ChangeLog
4f68fd
 	$(MAKE) -C po clean
4f68fd
 	$(PYTHON) setup.py -q clean --all
4f68fd
 
4f68fd
diff --git a/po/Makefile b/po/Makefile
4f68fd
index bbc6b5e8..2d521b0d 100644
4f68fd
--- a/po/Makefile
4f68fd
+++ b/po/Makefile
4f68fd
@@ -24,7 +24,7 @@ MSGFMT		= msgfmt --statistics --verbose
4f68fd
 # What do we need to do
4f68fd
 POFILES		= $(wildcard *.po)
4f68fd
 MOFILES		= $(patsubst %.po,%.mo,$(POFILES))
4f68fd
-PYSRC		= $(wildcard ../blivet/*.py ../blivet/*/*.py)
4f68fd
+PYSRC		= $(wildcard ../blivet3/*.py ../blivet3/*/*.py)
4f68fd
 SRCFILES 	= $(PYSRC)
4f68fd
 
4f68fd
 all::  refresh-po $(MOFILES)
4f68fd
diff --git a/setup.py b/setup.py
4f68fd
index 418055bd..5b8f4cf6 100644
4f68fd
--- a/setup.py
4f68fd
+++ b/setup.py
4f68fd
@@ -42,7 +42,7 @@ def findall(dirname=os.curdir):
4f68fd
 filelist.findall = findall
4f68fd
 
4f68fd
 # Extend the sdist command
4f68fd
-class blivet_sdist(sdist):
4f68fd
+class blivet3_sdist(sdist):
4f68fd
     def run(self):
4f68fd
         # Build the .mo files
4f68fd
         subprocess.check_call(['make', '-C', 'po'])
4f68fd
@@ -68,12 +68,12 @@ data_files = [
4f68fd
 ]
4f68fd
 
4f68fd
 
4f68fd
-setup(name='blivet',
4f68fd
+setup(name='blivet3',
4f68fd
       version='3.1.3',
4f68fd
-      cmdclass={"sdist": blivet_sdist},
4f68fd
+      cmdclass={"sdist": blivet3_sdist},
4f68fd
       description='Python module for system storage configuration',
4f68fd
       author='David Lehman', author_email='dlehman@redhat.com',
4f68fd
       url='http://github.com/storaged-project/blivet',
4f68fd
       data_files=data_files,
4f68fd
-      packages=['blivet', 'blivet.dbus', 'blivet.devices', 'blivet.devicelibs', 'blivet.events', 'blivet.formats', 'blivet.populator', 'blivet.static_data', 'blivet.tasks', 'blivet.populator.helpers']
4f68fd
+      packages=['blivet3', 'blivet3.dbus', 'blivet3.devices', 'blivet3.devicelibs', 'blivet3.events', 'blivet3.formats', 'blivet3.populator', 'blivet3.static_data', 'blivet3.tasks', 'blivet3.populator.helpers']
4f68fd
      )
4f68fd
-- 
4f68fd
2.17.2
4f68fd