diff --git a/.gitignore b/.gitignore index 88b7585..7b93ff1 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /blinker-1.1.zip +/blinker-1.3.tar.gz diff --git a/python-blinker.spec b/python-blinker.spec index bad730f..ba49a93 100644 --- a/python-blinker.spec +++ b/python-blinker.spec @@ -1,34 +1,64 @@ %global mod_name blinker +%global with_python3 1 Name: python-blinker -Version: 1.1 -Release: 5%{?dist} +Version: 1.3 +Release: 1%{?dist} Summary: Fast, simple object-to-object and broadcast signaling Group: Development/Libraries License: MIT URL: http://discorporate.us/projects/Blinker/ -Source0: http://pypi.python.org/packages/source/b/%{mod_name}/%{mod_name}-%{version}.zip +Source0: http://pypi.python.org/packages/source/b/%{mod_name}/%{mod_name}-%{version}.tar.gz BuildArch: noarch -BuildRequires: python-devel +BuildRequires: python2-devel BuildRequires: python-setuptools +%if 0%{?with_python3} +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%endif %description Blinker provides a fast dispatching system that allows any number of interested parties to subscribe to events, or "signals". +%if 0%{?with_python3} +%package -n python3-blinker +Summary: Fast, simple object-to-object and broadcast signaling + +%description -n python3-blinker +Blinker provides a fast dispatching system that allows any number +of interested parties to subscribe to events, or "signals". +%endif + %prep %setup -q -n %{mod_name}-%{version} +%if 0%{?with_python3} +rm -rf %{py3dir} +cp -a . %{py3dir} +%endif %build -CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build +%{__python2} setup.py build +%if 0%{?with_python3} +pushd %{py3dir} +%{__python3} setup.py build +popd +%endif %install rm -rf $RPM_BUILD_ROOT -%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT + +%if 0%{?with_python3} +pushd %{py3dir} +%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT +popd +%endif + +%{__python2} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %files @@ -36,7 +66,18 @@ rm -rf $RPM_BUILD_ROOT %{python_sitelib}/*.egg-info %{python_sitelib}/%{mod_name} +%if 0%{?with_python3} +%files -n python3-blinker +%doc docs/ CHANGES LICENSE README PKG-INFO +%{python3_sitelib}/*.egg-info +%{python3_sitelib}/%{mod_name} +%endif + + %changelog +* Tue Sep 24 2013 Praveen Kumar - 1.3-1 +- Updated source and added python3 support + * Sun Aug 04 2013 Fedora Release Engineering - 1.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild diff --git a/sources b/sources index bf540a8..ba69982 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -b93962f6b0d854a9659d397db2a7894d blinker-1.1.zip +66e9688f2d287593a0e698cd8a5fbc57 blinker-1.3.tar.gz