[awake/f18] Initial import (#917191).
Björn Esser
besser82 at fedoraproject.org
Sat Jul 27 19:03:51 UTC 2013
commit c30980decb41be76f084acdc828c7aaddee65bd3
Author: Björn Esser <bjoern.esser at gmail.com>
Date: Sat Jul 27 21:02:39 2013 +0200
Initial import (#917191).
.gitignore | 1 +
awake.spec | 77 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 79 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index a985115..68029d0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@
*.rpm
*.tar*
result_*/
+/v1.0.zip
diff --git a/awake.spec b/awake.spec
new file mode 100644
index 0000000..2a7a3b5
--- /dev/null
+++ b/awake.spec
@@ -0,0 +1,77 @@
+%global with_python3 1
+
+Name: awake
+Version: 1.0
+Release: 1%{?dist}
+Summary: A command to 'wake on LAN' a remote host
+
+License: GPLv3
+URL: https://github.com/cyraxjoe/awake
+Source0: https://github.com/cyraxjoe/awake/archive/v%{version}.zip
+BuildArch: noarch
+
+BuildRequires: python2-devel
+
+%description
+A command to 'wake on LAN' a remote host.
+
+%package -n python-%{name}
+Summary: A Python 2 library to 'wake on LAN' a remote host
+BuildRequires: python2-devel
+
+%description -n python-%{name}
+A Python 2 library to 'wake on LAN' a remote host.
+
+%if 0%{?with_python3}
+%package -n python3-%{name}
+Summary: A Python 3 library to 'wake on LAN' a remote host
+BuildRequires: python3-devel
+
+%description -n python3-%{name}
+A Python 3 library to 'wake on LAN' a remote host.
+%endif # if with_python3
+
+%prep
+%setup -q
+%if 0%{?with_python3}
+rm -rf %{py3dir}
+cp -a . %{py3dir}
+%endif # if with_python3
+
+%build
+%{__python} setup.py build
+%if 0%{?with_python3}
+# Python 3 bindings
+pushd %{py3dir}
+%{__python3} setup.py build
+popd
+%endif # if with_python3
+
+%install
+%{__python} setup.py install -O1 --skip-build --root %{buildroot}
+%if 0%{?with_python3}
+# Python 3 bindings
+pushd %{py3dir}
+%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
+popd
+%endif # if with_python3
+
+%files
+%doc CHANGES LICENSE README
+%{_bindir}/%{name}
+
+%files -n python-%{name}
+%doc CHANGES LICENSE README
+%{python2_sitelib}/%{name}/
+%{python2_sitelib}/*.egg-info
+
+%if 0%{?with_python3}
+%files -n python3-%{name}
+%doc CHANGES LICENSE README
+%{python3_sitelib}/%{name}/
+%{python3_sitelib}/*.egg-info
+%endif # with_python3
+
+%changelog
+* Fri Mar 01 2013 Fabian Affolter <mail at fabian-affolter.ch> - 1.0-1
+- Initial package
diff --git a/sources b/sources
index e69de29..a372617 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+dda00f336d795c410239b48e7e3eb3e7 v1.0.zip
More information about the scm-commits
mailing list