diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0b4bfe5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/launchpadlib-*.tar.gz +/launchpadlib-*/ +/results_*/ +*.rpm diff --git a/python-launchpadlib.spec b/python-launchpadlib.spec new file mode 100644 index 0000000..c7b3d4b --- /dev/null +++ b/python-launchpadlib.spec @@ -0,0 +1,56 @@ +%global pypi_name launchpadlib +Name: python-%{pypi_name} +Version: 1.10.7 +Release: 1%{?dist} +Summary: Script Launchpad through its web services interfaces + +License: LGPLv3 +URL: https://help.launchpad.net/API/launchpadlib +Source0: %{pypi_source} +BuildArch: noarch + +%global _description %{expand: +Launchpadlib is an open-source Python library that lets you treat the HTTP +resources published by Launchpad's web service as Python objects responding +to a standard set of commands. With launchpadlib you can integrate your +applications into Launchpad without knowing a lot about HTTP client +programming.} + +%description %_description + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +BuildRequires: python3-devel +BuildRequires: python3dist(httplib2) +BuildRequires: python3dist(keyring) +BuildRequires: python3dist(lazr.restfulclient) >= 0.9.19 +BuildRequires: python3dist(lazr.uri) +BuildRequires: python3dist(setuptools) +BuildRequires: python3dist(testresources) +BuildRequires: python3dist(wadllib) + +%description -n python3-%{pypi_name} %_description + +%prep +%autosetup -n %{pypi_name}-%{version} + +%build +%py3_build + +%install +%py3_install + +%check +%{__python3} setup.py test + +%files -n python3-%{pypi_name} +%license COPYING.txt +%doc README.txt +%{python3_sitelib}/%{pypi_name}/ +%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/ + +%changelog +* Thu Sep 19 2019 Miro HronĨok - 1.10.7-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..320c4fe --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (launchpadlib-1.10.7.tar.gz) = 0362971cc0b3c22c10996e3d17d2705dde337fe2978d33dfab131e3507539a041cd3bf5ef3a4424f537454cf6f43d7e93958fd67414eac55ddbaea069616fa3a