From 5d3396e25684648bf567710c6da70983247f088d Mon Sep 17 00:00:00 2001 From: Petr Šabata Date: Mar 08 2016 17:29:28 +0000 Subject: Initial release --- diff --git a/howdoi.spec b/howdoi.spec new file mode 100644 index 0000000..d6afb83 --- /dev/null +++ b/howdoi.spec @@ -0,0 +1,78 @@ +Name: howdoi +Version: 1.1.7 +Release: 1%{?dist} +Summary: Instant coding answers via the command line +License: MIT +URL: http://pypi.python.org/pypi/%{name} +Source0: http://pypi.python.org/packages/source/h/%{name}/%{name}-%{version}.tar.gz +BuildArch: noarch +BuildRequires: python2-devel +BuildRequires: python3-devel +BuildRequires: python-pygments +BuildRequires: python3-pygments +BuildRequires: python-pyquery +BuildRequires: python3-pyquery +BuildRequires: python-requests +BuildRequires: python3-requests +BuildRequires: python-requests-cache +BuildRequires: python3-requests-cache + +%description +Are you a hack programmer? Do you find yourself constantly Googling +for how to do basic programing tasks? %{name} will answer all sorts +of queries. + +%package -n python2-%{name} +Summary: %{summary} +Requires: python-pygments +Requires: python-pyquery +Requires: python-requests +Requires: python-requests-cache +%{?python_provide:%python_provide python2-%{name}} + +%description -n python2-%{name} +Are you a hack programmer? Do you find yourself constantly Googling +for how to do basic programing tasks? %{name} will answer all sorts +of queries. + +%package -n python3-%{name} +Summary: %{summary} +Requires: python3-pygments +Requires: python3-pyquery +Requires: python3-requests +Requires: python3-requests-cache +%{?python_provide:%python_provide python3-%{name}} + +%description -n python3-%{name} +Are you a hack programmer? Do you find yourself constantly Googling +for how to do basic programing tasks? %{name} will answer all sorts +of queries. + +%prep +%autosetup -n %{name}-%{version} + +%build +%py2_build +%py3_build + +%install +%py2_install +%py3_install + +%check +%{__python2} setup.py test +%{__python3} setup.py test + +%files -n python2-%{name} +%doc README.rst CHANGES.txt +%{_bindir}/%{name} +%{python2_sitelib}/* + +%files -n python3-%{name} +%doc README.rst CHANGES.txt +%{_bindir}/%{name} +%{python3_sitelib}/* + +%changelog +* Tue Mar 08 2016 Petr Šabata - 1.1.8-1. +- Initial packaging