From a400feab8ea69602d99268b65412d7f34ff65adb Mon Sep 17 00:00:00 2001 From: Alessandro Astone Date: Apr 09 2022 11:22:12 +0000 Subject: Rename package --- diff --git a/python-gbinder-python.spec b/python-gbinder-python.spec deleted file mode 100644 index 99ca69b..0000000 --- a/python-gbinder-python.spec +++ /dev/null @@ -1,51 +0,0 @@ -%define _disable_source_fetch 0 - -%define _proj_name gbinder-python -%define _git_refspec 79d40e9e564772973f7f085ed5c48e3fc625e0f5 -%define _git_refspec_short %(echo %{_git_refspec} | cut -c -7) -%define _build_date %(date +%Y%m%d) - -%define modname %{_proj_name} -%define fedname %{modname} -%define internal_name gbinder - -Name: python-%{modname} -Version: 1.0.0git.%{_build_date}.%{_git_refspec_short} -Release: 2%{?dist} -License: GPLv3 -Summary: Python bindings for libgbinder - -BuildRequires: gcc -BuildRequires: libgbinder-devel libglibutil-devel pkgconfig - -Source0: https://github.com/erfanoabdi/%{_proj_name}/archive/%{_git_refspec}/%{_proj_name}-%{_git_refspec_short}.tar.gz - -%description -Cython extension module for gbinder - -%package -n python3-%{fedname} -Summary: %{summary} -BuildRequires: python3-devel python3-setuptools -BuildRequires: python3-Cython -%{?python_provide:%python_provide python3-%{fedname}} -%{?python_provide:%python_provide python3-%{modname}} - -%description -n python3-%{fedname} -%{description} - -Python 3 version. - -%prep -%setup -qn %{_proj_name}-%{_git_refspec} - -%build -%{set_build_flags} -%{python3} ./setup.py build_ext --inplace --cython -env WITH_CYTHON=true %{py3_build} - -%install -%{py3_install} - -%files -n python3-%{fedname} -%{python3_sitearch}/%{internal_name}*.so -%{python3_sitearch}/%{internal_name}*.egg-info diff --git a/python-gbinder.spec b/python-gbinder.spec new file mode 100644 index 0000000..6849b3f --- /dev/null +++ b/python-gbinder.spec @@ -0,0 +1,48 @@ +%define _proj_name gbinder-python +%define _git_refspec 79d40e9e564772973f7f085ed5c48e3fc625e0f5 +%define _git_refspec_short %(echo %{_git_refspec} | cut -c -7) +%define _build_date %(date +%Y%m%d) + +%define fedname gbinder +%define internal_name gbinder + +Name: python-%{fedname} +Version: 1.0.0git.%{_build_date}.%{_git_refspec_short} +Release: 3%{?dist} +License: GPLv3 +Summary: Python bindings for libgbinder + +Source0: https://github.com/erfanoabdi/%{_proj_name}/archive/%{_git_refspec}/%{_proj_name}-%{_git_refspec_short}.tar.gz + +%global _description \ +Cython extension module for gbinder + +%description %{_description} + +%package -n python%{python3_pkgversion}-%{fedname} +Summary: %{summary} +BuildRequires: gcc +BuildRequires: libgbinder-devel libglibutil-devel pkgconfig +BuildRequires: python%{python3_pkgversion}-devel python%{python3_pkgversion}-setuptools +BuildRequires: python%{python3_pkgversion}-Cython +%{?python_provide:%python_provide python3-%{fedname}} +%{?python_provide:%python_provide python3-%{_proj_name}} +Provides: python3-gbinder-python = %{version}-%{release} +Obsoletes: python3-gbinder-python < 1.0.0git20220409 + +%description -n python%{python3_pkgversion}-%{fedname} %{_description} + +%prep +%setup -qn %{_proj_name}-%{_git_refspec} + +%build +%{set_build_flags} +%{python3} ./setup.py build_ext --inplace --cython +env WITH_CYTHON=true %{py3_build} + +%install +%{py3_install} + +%files -n python%{python3_pkgversion}-%{fedname} +%{python3_sitearch}/%{internal_name}*.so +%{python3_sitearch}/%{internal_name}*.egg-info