From 3e47326154fb7ad78204adee383ca5ebfa30d4ca Mon Sep 17 00:00:00 2001 From: Juan Orti Alcaine Date: Sep 12 2017 12:51:40 +0000 Subject: Initial release (#1470330). --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d09773e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/nyx-1.4.6-20170712git08eec6f.tar.xz diff --git a/README.md b/README.md deleted file mode 100644 index 9b38878..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# nyx - -The nyx package \ No newline at end of file diff --git a/nyx.spec b/nyx.spec new file mode 100644 index 0000000..2fef0bd --- /dev/null +++ b/nyx.spec @@ -0,0 +1,71 @@ +%global commit 08eec6f9067538778264eb952097ef982e2b4bc0 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) +%global date 20170712 + +Name: nyx +Version: 1.4.6 +Release: 2.%{date}git%{shortcommit}%{?dist} +Summary: Terminal status monitor for Tor +License: GPLv3 +URL: https://gitweb.torproject.org/nyx.git +# git clone https://git.torproject.org/nyx.git +# cd nyx; git archive --format=tar --prefix=nyx/ %%{commit} | xz > ../%%{name}-%%{version}-%%{date}git%%{shortcommit}.tar.xz +Source0: %{name}-%{version}-%{date}git%{shortcommit}.tar.xz +BuildArch: noarch +BuildRequires: python3-devel +BuildRequires: python3-stem +BuildRequires: python3-sphinx +Requires: python3-stem +Suggests: %{name}-doc = %{version}-%{release} + +%description +The anonymizing relay monitor (nyx) is a terminal status monitor for Tor relays, +intended for command-line aficionados, ssh connections, and anyone with a tty +terminal. This works much like top does for system usage, providing real time +statistics for: + + - bandwidth, CPU, and memory usage + - relay's current configuration + - logged events + - connection details (IP, host name, fingerprint, and consensus data) + - etc. + + +%package doc +Summary: Documentation for nyx + +%description doc +Documentation for nyx + +%prep +%autosetup -n %{name} + +%build +%py3_build +pushd docs +SPHINXBUILD=sphinx-build-3 make man +SPHINXBUILD=sphinx-build-3 make html +SPHINXBUILD=sphinx-build-3 make text +popd + +%install +%py3_install +install -D -m 0644 docs/_build/man/Nyx.1 %{buildroot}%{_mandir}/man1/nyx.1 + +%files +%license LICENSE +%{_bindir}/%{name} +%{python3_sitelib}/%{name} +%{python3_sitelib}/%{name}-%{version}*-py*.egg-info + +%files doc +%doc docs/_build/html docs/_build/text +%{_mandir}/man1/nyx.1* + +%changelog +* Wed Jul 12 2017 Juan Orti Alcaine - 1.4.6-2.20170712git08eec6f +- Use Python3 +- Doc subpackage + +* Wed Jul 12 2017 Juan Orti Alcaine - 1.4.6-1.20170712git08eec6f +- First release of nyx diff --git a/sources b/sources new file mode 100644 index 0000000..4a2e4a7 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (nyx-1.4.6-20170712git08eec6f.tar.xz) = 9a759aea6b059d8724c2396c97f780e40236437b1cce9ec33d99f47dc6b5bd28e2b38518c9f8a560e81d4ea327955fc187802aae2f72d77e759fb36181e1c4af