From 9b737887d2028c7061e315a84f26dc05d8cefdb2 Mon Sep 17 00:00:00 2001 From: Jay Greguske Date: Tue, 10 May 2016 10:50:26 -0400 Subject: [PATCH 1/2] initial import bz#1297491 --- .gitignore | 1 + python-multilib.spec | 71 ++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 73 insertions(+) create mode 100644 python-multilib.spec diff --git a/.gitignore b/.gitignore index e69de29..b60320b 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/python-multilib-1.1.tar.gz diff --git a/python-multilib.spec b/python-multilib.spec new file mode 100644 index 0000000..7d676b0 --- /dev/null +++ b/python-multilib.spec @@ -0,0 +1,71 @@ +Name: python-multilib +Version: 1.1 +Release: 4%{?dist} +Summary: A module for determining if a package is multilib or not +License: GPLv2 +URL: https://github.com/Zyzyx/%{name} +Source0: https://github.com/Zyzyx/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +BuildArch: noarch + +%global _description \ +A Python module that supports several multilib "methods" useful for determining \ +if a 32-bit package should be included with its 64-bit analogue in a compose. + +%description %{_description} + +%package -n python2-multilib +Summary: %{summary} +BuildRequires: python2-devel +BuildRequires: python2-setuptools +%{?python_provide:%python_provide python2-multilib} +%description -n python2-multilib %{_description} + +%package -n python3-multilib +Summary: %{summary} +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%{?python_provide:%python_provide python3-multilib} +%description -n python3-multilib %{_description} + + +%prep +%setup -q + + +%build +%py2_build +#py3_build + +%install +%py2_install +#py3_install + +%check +# testing requires complete composes available locally, which no buildsystem +# would ever want included in a build root +#{__python2} setup.py test +#{__python3} setup.py test + +%files -n python2-multilib +%license LICENSE +%doc README.md +%{python2_sitelib}/* +%config(noreplace) %{_sysconfdir}/multilib.conf + +#files -n python3-multilib +#license LICENSE +#doc README.md +#{python3_sitelib}/* + +%changelog +* Thu Apr 07 2016 Dennis Gilmore - 1.1-2 +- setup to make python3 down the road. +- spec and srpm named python-multilib +- fix license + +* Tue Jul 21 2009 Jay Greguske - 1.1-1 +- consider dependencies in multilib testing +- fix a couple import errors + +* Tue Jul 21 2009 Jay Greguske - 1.0-1 +- Initial RPM release diff --git a/sources b/sources index e69de29..56ec71e 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +bc561564dcdafbca8a29f9d45366b435 python-multilib-1.1.tar.gz From ce68d56a467eec736ef605140d7e9f3ff0790326 Mon Sep 17 00:00:00 2001 From: Jay Greguske Date: Tue, 10 May 2016 12:00:37 -0400 Subject: [PATCH 2/2] fix the spec file some more for epel6 --- python-multilib.spec | 43 +++++++++++-------------------------------- 1 file changed, 11 insertions(+), 32 deletions(-) diff --git a/python-multilib.spec b/python-multilib.spec index 7d676b0..1b70aaa 100644 --- a/python-multilib.spec +++ b/python-multilib.spec @@ -6,58 +6,37 @@ License: GPLv2 URL: https://github.com/Zyzyx/%{name} Source0: https://github.com/Zyzyx/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildArch: noarch +BuildRequires: python-devel +BuildRequires: python-setuptools +Summary: Python library for determining if a package is multilib enabled -%global _description \ +%description A Python module that supports several multilib "methods" useful for determining \ if a 32-bit package should be included with its 64-bit analogue in a compose. -%description %{_description} - -%package -n python2-multilib -Summary: %{summary} -BuildRequires: python2-devel -BuildRequires: python2-setuptools -%{?python_provide:%python_provide python2-multilib} -%description -n python2-multilib %{_description} - -%package -n python3-multilib -Summary: %{summary} -BuildRequires: python3-devel -BuildRequires: python3-setuptools -%{?python_provide:%python_provide python3-multilib} -%description -n python3-multilib %{_description} - - %prep %setup -q - %build -%py2_build -#py3_build +%{__python} setup.py build %install -%py2_install -#py3_install +%{__python} setup.py install -O1 --skip-build --root %{buildroot} %check # testing requires complete composes available locally, which no buildsystem # would ever want included in a build root -#{__python2} setup.py test -#{__python3} setup.py test -%files -n python2-multilib +%files %license LICENSE %doc README.md -%{python2_sitelib}/* +%{python_sitelib}/* %config(noreplace) %{_sysconfdir}/multilib.conf -#files -n python3-multilib -#license LICENSE -#doc README.md -#{python3_sitelib}/* - %changelog +* Mon May 10 2016 Jay Greguske - 1.1-4 +- EPEL 6 related changes to packaging + * Thu Apr 07 2016 Dennis Gilmore - 1.1-2 - setup to make python3 down the road. - spec and srpm named python-multilib