diff --git a/.gitignore b/.gitignore index a142226..b1660a6 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /black-18.6b1.tar.gz /black-18.6b2.tar.gz /black-18.6b4.tar.gz +/black-18.9b0.tar.gz diff --git a/blackd.1 b/blackd.1 new file mode 100644 index 0000000..bb195ce --- /dev/null +++ b/blackd.1 @@ -0,0 +1,16 @@ +.TH "BLACKD" "1" "28-Sep-2018" "blackd Manual" +.SH NAME +blackd \- The uncompromising code formatter daemon. +.SH SYNOPSIS +.B blackd +[OPTIONS] +.SH DESCRIPTION +The uncompromising code formatter daemon. +.SH OPTIONS +.TP +\fB\-\-bind\-host\fP STR +Address to bind the server to. (default: localhost) +.TP +\fB\-\-bind\-host\fP INTEGER +Port to listen on (default: 45484) +.TP diff --git a/python-black.spec b/python-black.spec index 98c8e19..8a288c2 100644 --- a/python-black.spec +++ b/python-black.spec @@ -2,18 +2,20 @@ %global pypi_name black Name: python-%{pypi_name} -Version: 18.6b4 -Release: 3%{?dist} +Version: 18.9b0 +Release: 1%{?dist} Summary: The uncompromising code formatter License: MIT URL: https://github.com/ambv/black Source0: https://files.pythonhosted.org/packages/source/b/%{pypi_name}/%{pypi_name}-%{version}.tar.gz Source1: black.1 +Source2: blackd.1 BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-setuptools +BuildRequires: python3-aiohttp BuildRequires: python3-appdirs BuildRequires: python3-attrs >= 17.4.0 BuildRequires: python3-click >= 6.5 @@ -29,7 +31,8 @@ You will save time and mental energy for more important matters. %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} - + +Requires: python3-aiohttp Requires: python3-appdirs Requires: python3-attrs >= 17.4.0 Requires: python3-click >= 6.5 @@ -53,9 +56,11 @@ rm -rf %{pypi_name}.egg-info %install %py3_install cp %{buildroot}/%{_bindir}/black %{buildroot}/%{_bindir}/black-%{python3_version} +cp %{buildroot}/%{_bindir}/blackd %{buildroot}/%{_bindir}/blackd-%{python3_version} # ln -s {_bindir}/black-{python3_version} {buildroot}/{_bindir}/black-3 install -D -m 644 %{SOURCE1} %{buildroot}%{_mandir}/man1/black.1 +install -D -m 644 %{SOURCE2} %{buildroot}%{_mandir}/man1/blackd.1 %check export PIP_INDEX_URL=http://host.invalid./ @@ -66,16 +71,22 @@ export PIP_NO_DEPS=yes %license LICENSE %doc README.md %{_bindir}/black -# {_bindir}/black-3 %{_bindir}/black-%{python3_version} %{_mandir}/man1/black.1* +%{_bindir}/blackd +%{_bindir}/blackd-%{python3_version} +%{_mandir}/man1/blackd.1* -%{python3_sitelib}/__pycache__/* -%{python3_sitelib}/%{pypi_name}.py +%{python3_sitelib}/__pycache__/black* +%{python3_sitelib}/black*.py %{python3_sitelib}/blib2to3 %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %changelog +* Thu Sep 27 2018 Christian Heimes - 18.9b0-1 +- New upstream version 18.9b0 +- Include blackd daemon + * Fri Jul 13 2018 Fedora Release Engineering - 18.6b4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild diff --git a/sources b/sources index 4102592..4c3719e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (black-18.6b4.tar.gz) = 6bacac0de9c8b596b5570d454ace89b1e7a27f6adb8b731e00fe605102067d04ad80db73ed87a8198a219c4ec8a2b2681d088d0b2da71437b817dec13bcaa23e +SHA512 (black-18.9b0.tar.gz) = 80f94867220f7511dfc72aa8886586530d33187e10c57a7721cb0c97e906941ef811811ef0b2afa77d5454ce00114f3724063a890c41af4d7b68ec59dee29a48