This commit is contained in:
Praveen Kumar 2013-09-24 08:21:21 +05:30
parent 3023a83f18
commit a253ba8334
3 changed files with 49 additions and 7 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
/blinker-1.1.zip
/blinker-1.3.tar.gz

View File

@ -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 <kumarpraveen.nitdgp@gmail.com> - 1.3-1
- Updated source and added python3 support
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

View File

@ -1 +1 @@
b93962f6b0d854a9659d397db2a7894d blinker-1.1.zip
66e9688f2d287593a0e698cd8a5fbc57 blinker-1.3.tar.gz