summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFedora Project <devel@lists.fedoraproject.org>2020-09-05 18:17:43 +0100
committerFedora Project <devel@lists.fedoraproject.org>2020-09-05 18:17:43 +0100
commitb7b221571cd2f500579fcb615f5dc925bb4d860b (patch)
treef768368c0930c6de0fe4b289d4a556d7355fad4c
parent377cded12a718197f0d9e1f552c2da2fca7beff8 (diff)
downloadspec-b7b221571cd2f500579fcb615f5dc925bb4d860b.tar.gz
spec-b7b221571cd2f500579fcb615f5dc925bb4d860b.tar.xz
spec-b7b221571cd2f500579fcb615f5dc925bb4d860b.zip
Present is unpackageable T-T...
-rw-r--r--present/README.md21
-rw-r--r--present/python-asciimatics/python-asciimatics.spec10
2 files changed, 28 insertions, 3 deletions
diff --git a/present/README.md b/present/README.md
new file mode 100644
index 0000000..dbc94bb
--- /dev/null
+++ b/present/README.md
@@ -0,0 +1,21 @@
+# Present
+
+Present is a really cool project, but it depends on pyfiglet, WHICH IS A BIG
+NO-NO legally speaking T-T...
+
+## Instructions
+
+```
+sudo dnf install @fedora-packager
+sudo dnf builddep present/present.spec python-asciimatics/python-asciimatics.spec python-pyfiglet/python-pyfiglet.spec
+rpmdev-setuptree
+spectool -gR present/present.spec python-asciimatics/python-asciimatics.spec python-pyfiglet/python-pyfiglet.spec
+rpmbuild -ba present/present.spec python-asciimatics/python-asciimatics.spec python-pyfiglet/python-pyfiglet.spec
+```
+
+If you wish to update the software or one of its dependencies:
+
+1. Open the spec file with your favorite editor.
+2. Change the version in the line beginning with `Version:`.
+4. `spectool -gR VVVVVV.spec`
+5. `rpmbuild -ba spec_file.spec`
diff --git a/present/python-asciimatics/python-asciimatics.spec b/present/python-asciimatics/python-asciimatics.spec
index cfcfaa0..e817af3 100644
--- a/present/python-asciimatics/python-asciimatics.spec
+++ b/present/python-asciimatics/python-asciimatics.spec
@@ -16,14 +16,18 @@ BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3dist(future)
-BuildRequires: python3dist(mock)
-BuildRequires: python3dist(nose)
BuildRequires: python3dist(pillow)
BuildRequires: python3dist(pyfiglet)
BuildRequires: python3dist(setuptools)
BuildRequires: python3dist(setuptools-scm)
BuildRequires: python3dist(wcwidth)
+%if %{with tests}
+BuildRequires: python3dist(mock)
+# nose is deprecated, using pytest instead.
+BuildRequires: python3dist(pytest)
+%endif
+
%global _description %{expand:
Asciimatics is a package to help people create full-screen text UIs (from
interactive forms to ASCII animations) on any platform. It is licensed under the
@@ -103,7 +107,7 @@ rm -rf .git
%if %{with tests}
%check
-%{__python3} setup.py test
+%pytest
%endif
%files -n python3-%{pypi_name}