|
|
b0461e8 |
%global srcname neomodel
|
|
|
b0461e8 |
%global sum A Python OGM for Neo4j
|
|
|
b0461e8 |
%global desc A Python Object Graph Mapper (OGM) for the Neo4j graph database
|
|
|
f1eb06f |
%define _build_python2 (0%{?fedora} && 0%{?fedora} < 31) || (0%{?rhel} && 0%{?rhel} < 8)
|
|
|
f1eb06f |
%define _build_python3 0%{?fedora} || 0%{?rhel} > 7
|
|
|
b0461e8 |
|
|
|
b0461e8 |
Name: python-%{srcname}
|
|
|
9f1a45b |
Version: 3.3.1
|
|
|
f1eb06f |
Release: 2%{?dist}
|
|
|
b0461e8 |
Summary: %{sum}
|
|
|
b0461e8 |
|
|
|
b0461e8 |
License: MIT
|
|
|
c8eeb47 |
URL: https://pypi.python.org/pypi/%{srcname}
|
|
|
c8eeb47 |
Source0: https://files.pythonhosted.org/packages/source/n/%{srcname}/%{srcname}-%{version}.tar.gz
|
|
|
b0461e8 |
|
|
|
b0461e8 |
BuildArch: noarch
|
|
|
f1eb06f |
%if %{_build_python2}
|
|
|
b0461e8 |
BuildRequires: python2-devel
|
|
|
b0461e8 |
BuildRequires: python2-setuptools
|
|
|
f1eb06f |
%endif
|
|
|
f1eb06f |
%if %{_build_python3}
|
|
|
b0461e8 |
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
b0461e8 |
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
b0461e8 |
%endif
|
|
|
b0461e8 |
|
|
|
b0461e8 |
|
|
|
b0461e8 |
%description
|
|
|
b0461e8 |
%{desc}
|
|
|
b0461e8 |
|
|
|
f1eb06f |
%if %{_build_python3}
|
|
|
b0461e8 |
%package -n python%{python3_pkgversion}-%{srcname}
|
|
|
b0461e8 |
Summary: %{sum}
|
|
|
b0461e8 |
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
|
|
|
6e5f831 |
Requires: python3-neo4j-driver
|
|
|
b0461e8 |
Requires: python3-pytz
|
|
|
b0461e8 |
|
|
|
b0461e8 |
%description -n python%{python3_pkgversion}-%{srcname}
|
|
|
b0461e8 |
%{desc}
|
|
|
b0461e8 |
%endif
|
|
|
b0461e8 |
|
|
|
b0461e8 |
|
|
|
b0461e8 |
%package -n python2-%{srcname}
|
|
|
b0461e8 |
Summary: %{sum}
|
|
|
b0461e8 |
%{?python_provide:%python_provide python2-%{srcname}}
|
|
|
6e5f831 |
Requires: python2-neo4j-driver
|
|
|
f1eb06f |
%if %{_build_python3}
|
|
|
b0461e8 |
Requires: python2-pytz
|
|
|
b0461e8 |
%else
|
|
|
b0461e8 |
Requires: pytz
|
|
|
b0461e8 |
%endif
|
|
|
b0461e8 |
|
|
|
b0461e8 |
%description -n python2-%{srcname}
|
|
|
b0461e8 |
%{desc}
|
|
|
b0461e8 |
|
|
|
b0461e8 |
|
|
|
b0461e8 |
%prep
|
|
|
e2a3662 |
%autosetup -n %{srcname}-%{version}
|
|
|
b0461e8 |
|
|
|
b0461e8 |
|
|
|
b0461e8 |
%build
|
|
|
f1eb06f |
%if %{_build_python3}
|
|
|
b0461e8 |
%py3_build
|
|
|
b0461e8 |
%endif
|
|
|
b0461e8 |
|
|
|
f1eb06f |
%if %{_build_python2}
|
|
|
b0461e8 |
%py2_build
|
|
|
f1eb06f |
%endif
|
|
|
f1eb06f |
|
|
|
b0461e8 |
|
|
|
b0461e8 |
%install
|
|
|
f1eb06f |
%if %{_build_python3}
|
|
|
b0461e8 |
%py3_install
|
|
|
f1eb06f |
|
|
|
f1eb06f |
%if !%{_build_python2}
|
|
|
f1eb06f |
ln -s %{_bindir}/neomodel_install_labels %{buildroot}/%{_bindir}/neomodel_install_labels-3
|
|
|
f1eb06f |
ln -s %{_bindir}/neomodel_install_labels %{buildroot}/%{_bindir}/neomodel_install_labels-%{python3_version}
|
|
|
f1eb06f |
ln -s %{_bindir}/neomodel_remove_labels %{buildroot}/%{_bindir}/neomodel_remove_labels-3
|
|
|
f1eb06f |
ln -s %{_bindir}/neomodel_remove_labels %{buildroot}/%{_bindir}/neomodel_remove_labels-%{python3_version}
|
|
|
f1eb06f |
%else
|
|
|
b0461e8 |
mv %{buildroot}/%{_bindir}/neomodel_install_labels %{buildroot}/%{_bindir}/neomodel_install_labels-3
|
|
|
b0461e8 |
ln -s %{_bindir}/neomodel_install_labels-3 %{buildroot}/%{_bindir}/neomodel_install_labels-%{python3_version}
|
|
|
d667955 |
mv %{buildroot}/%{_bindir}/neomodel_remove_labels %{buildroot}/%{_bindir}/neomodel_remove_labels-3
|
|
|
d667955 |
ln -s %{_bindir}/neomodel_remove_labels-3 %{buildroot}/%{_bindir}/neomodel_remove_labels-%{python3_version}
|
|
|
b0461e8 |
%endif
|
|
|
b0461e8 |
|
|
|
f1eb06f |
%endif
|
|
|
f1eb06f |
|
|
|
f1eb06f |
|
|
|
f1eb06f |
%if %{_build_python2}
|
|
|
b0461e8 |
%py2_install
|
|
|
b0461e8 |
ln -s %{_bindir}/neomodel_install_labels %{buildroot}/%{_bindir}/neomodel_install_labels-2
|
|
|
b0461e8 |
ln -s %{_bindir}/neomodel_install_labels %{buildroot}/%{_bindir}/neomodel_install_labels-%{python2_version}
|
|
|
d667955 |
ln -s %{_bindir}/neomodel_remove_labels %{buildroot}/%{_bindir}/neomodel_remove_labels-2
|
|
|
d667955 |
ln -s %{_bindir}/neomodel_remove_labels %{buildroot}/%{_bindir}/neomodel_remove_labels-%{python2_version}
|
|
|
f1eb06f |
%endif
|
|
|
b0461e8 |
|
|
|
b0461e8 |
|
|
|
f1eb06f |
%if %{_build_python3}
|
|
|
b0461e8 |
%files -n python%{python3_pkgversion}-%{srcname}
|
|
|
b0461e8 |
%license LICENSE
|
|
|
b0461e8 |
%doc README.rst
|
|
|
b0461e8 |
%{python3_sitelib}/*
|
|
|
b0461e8 |
%{_bindir}/neomodel_install_labels-3
|
|
|
b0461e8 |
%{_bindir}/neomodel_install_labels-%{python3_version}
|
|
|
d667955 |
%{_bindir}/neomodel_remove_labels-3
|
|
|
d667955 |
%{_bindir}/neomodel_remove_labels-%{python3_version}
|
|
|
f1eb06f |
|
|
|
f1eb06f |
%if !%{_build_python2}
|
|
|
f1eb06f |
%{_bindir}/neomodel_install_labels
|
|
|
f1eb06f |
%{_bindir}/neomodel_remove_labels
|
|
|
b0461e8 |
%endif
|
|
|
b0461e8 |
|
|
|
f1eb06f |
%endif
|
|
|
f1eb06f |
|
|
|
f1eb06f |
%if %{_build_python2}
|
|
|
b0461e8 |
%files -n python2-%{srcname}
|
|
|
b0461e8 |
%license LICENSE
|
|
|
b0461e8 |
%doc README.rst
|
|
|
b0461e8 |
%{python2_sitelib}/*
|
|
|
b0461e8 |
%{_bindir}/neomodel_install_labels
|
|
|
b0461e8 |
%{_bindir}/neomodel_install_labels-2
|
|
|
b0461e8 |
%{_bindir}/neomodel_install_labels-%{python2_version}
|
|
|
d667955 |
%{_bindir}/neomodel_remove_labels
|
|
|
d667955 |
%{_bindir}/neomodel_remove_labels-2
|
|
|
d667955 |
%{_bindir}/neomodel_remove_labels-%{python2_version}
|
|
|
f1eb06f |
%endif
|
|
|
b0461e8 |
|
|
|
b0461e8 |
|
|
|
b0461e8 |
%changelog
|
|
|
f1eb06f |
* Mon Jul 22 2019 mprahl <mprahl@redhat.com> - 3.3.1-2
|
|
|
f1eb06f |
- Stop building Python 2 packages for F31+
|
|
|
f1eb06f |
|
|
|
9f1a45b |
* Tue Apr 09 2019 mprahl <mprahl@redhat.com> - 3.3.1-1
|
|
|
9f1a45b |
- new version
|
|
|
9f1a45b |
|
|
|
dacf77f |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-2
|
|
|
dacf77f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
dacf77f |
|
|
|
177e876 |
* Fri Nov 16 2018 mprahl <mprahl@redhat.com> - 3.3.0-1
|
|
|
177e876 |
- new version
|
|
|
177e876 |
|
|
|
20ab736 |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.8-7
|
|
|
20ab736 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
20ab736 |
|
|
|
24ff9de |
* Mon Jul 02 2018 Miro Hrončok <mhroncok@redhat.com> - 3.2.8-6
|
|
|
24ff9de |
- Rebuilt for Python 3.7
|
|
|
24ff9de |
|
|
|
6e5f831 |
* Tue Jun 19 2018 mprahl <mprahl@redhat.com> - 3.2.8-5
|
|
|
6e5f831 |
- unpin the python-neo4j-driver version
|
|
|
6e5f831 |
|
|
|
73fabaa |
* Tue Jun 19 2018 mprahl <mprahl@redhat.com> - 3.2.8-4
|
|
|
73fabaa |
- add upstream patch to support python neo4j-driver 1.6.x
|
|
|
73fabaa |
|
|
|
4224f07 |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 3.2.8-3
|
|
|
4224f07 |
- Rebuilt for Python 3.7
|
|
|
4224f07 |
|
|
|
f2052c0 |
* Thu Jun 14 2018 mprahl <mprahl@redhat.com> - 3.2.8-2
|
|
|
f2052c0 |
- pin the python-neo4j-driver version
|
|
|
f2052c0 |
|
|
|
c8eeb47 |
* Tue May 01 2018 mprahl <mprahl@redhat.com> - 3.2.8-1
|
|
|
c8eeb47 |
- new version
|
|
|
c8eeb47 |
|
|
|
d667955 |
* Thu Apr 26 2018 mprahl <mprahl@redhat.com> - 3.2.7-1
|
|
|
d667955 |
- new version
|
|
|
d667955 |
|
|
|
b0461e8 |
* Mon Apr 02 2018 mprahl <mprahl@redhat.com> - 3.2.5.1
|
|
|
b0461e8 |
- Initial release
|