|
|
ab652bc |
%global srcname gntp
|
|
|
ab652bc |
|
|
|
ab652bc |
Name: python-%{srcname}
|
|
|
ab652bc |
Version: 1.0.3
|
|
|
8f41e8f |
Release: 8%{?dist}
|
|
|
25ce4a8 |
Summary: Growl Notification Transport Protocol for Python
|
|
|
25ce4a8 |
License: MIT
|
|
|
ab652bc |
URL: https://pypi.python.org/pypi/%{srcname}
|
|
|
ab652bc |
Source0: https://github.com/kfdm/%{srcname}/archive/v%{version}.tar.gz#/%{srcname}-%{version}.tar.gz
|
|
|
25ce4a8 |
BuildArch: noarch
|
|
|
ab652bc |
|
|
|
25ce4a8 |
BuildRequires: python2-devel
|
|
|
ab652bc |
BuildRequires: python2-setuptools
|
|
|
ab652bc |
|
|
|
ab652bc |
BuildRequires: python3-devel
|
|
|
ab652bc |
BuildRequires: python3-setuptools
|
|
|
25ce4a8 |
|
|
|
25ce4a8 |
|
|
|
25ce4a8 |
%description
|
|
|
25ce4a8 |
This is a Python library for working with the Growl Notification Transport
|
|
|
25ce4a8 |
Protocol.
|
|
|
25ce4a8 |
|
|
|
25ce4a8 |
It should work as a drop-in replacement for the older Python bindings.
|
|
|
25ce4a8 |
|
|
|
25ce4a8 |
|
|
|
ab652bc |
%package -n python2-%{srcname}
|
|
|
ab652bc |
Summary: %{summary}
|
|
|
ab652bc |
%{?python_provide:%python_provide python2-%{srcname}}
|
|
|
ab652bc |
|
|
|
ab652bc |
%description -n python2-%{srcname}
|
|
|
ab652bc |
This is a Python2 library for working with the Growl Notification Transport
|
|
|
ab652bc |
Protocol.
|
|
|
ab652bc |
|
|
|
ab652bc |
It should work as a drop-in replacement for the older Python bindings.
|
|
|
ab652bc |
|
|
|
ab652bc |
|
|
|
ab652bc |
%package -n python3-%{srcname}
|
|
|
ab652bc |
Summary: %{summary}
|
|
|
ab652bc |
%{?python_provide:%python_provide python3-%{srcname}}
|
|
|
ab652bc |
|
|
|
ab652bc |
%description -n python3-%{srcname}
|
|
|
ab652bc |
This is a Python3 library for working with the Growl Notification Transport
|
|
|
ab652bc |
Protocol.
|
|
|
ab652bc |
|
|
|
ab652bc |
It should work as a drop-in replacement for the older Python bindings.
|
|
|
ab652bc |
|
|
|
ab652bc |
|
|
|
25ce4a8 |
%prep
|
|
|
ab652bc |
%setup -q -n %{srcname}-%{version}
|
|
|
25ce4a8 |
|
|
|
25ce4a8 |
# Remove executable bit, shabang line from library source:
|
|
|
ab652bc |
chmod -x %{srcname}/cli.py
|
|
|
25ce4a8 |
sed -i '/#!\/usr\/bin\/env python/,/^$/d' gntp/cli.py
|
|
|
25ce4a8 |
|
|
|
25ce4a8 |
# Remove bundled egg-info
|
|
|
ab652bc |
rm -rf %{srcname}.egg-info
|
|
|
25ce4a8 |
|
|
|
25ce4a8 |
|
|
|
25ce4a8 |
%build
|
|
|
ab652bc |
%py2_build
|
|
|
ab652bc |
%py3_build
|
|
|
25ce4a8 |
|
|
|
25ce4a8 |
|
|
|
25ce4a8 |
%install
|
|
|
ab652bc |
%py3_install
|
|
|
ab652bc |
|
|
|
ab652bc |
# Now /usr/bin/gntp is Python 3, so we move it away
|
|
|
ab652bc |
mv %{buildroot}%{_bindir}/%{srcname} %{buildroot}%{_bindir}/%{srcname}-%{python3_version}
|
|
|
ab652bc |
|
|
|
ab652bc |
%py2_install
|
|
|
25ce4a8 |
|
|
|
ab652bc |
# Now /usr/bin/gntp is Python 2, and we move it away anyway
|
|
|
ab652bc |
mv %{buildroot}%{_bindir}/%{srcname} %{buildroot}%{_bindir}/%{srcname}-%{python2_version}
|
|
|
25ce4a8 |
|
|
|
ab652bc |
# The guidelines also specify we must provide symlinks with a '-X' suffix.
|
|
|
ab652bc |
ln -s ./%{srcname}-%{python2_version} %{buildroot}%{_bindir}/%{srcname}-2
|
|
|
ab652bc |
ln -s ./%{srcname}-%{python3_version} %{buildroot}%{_bindir}/%{srcname}-3
|
|
|
ab652bc |
|
|
|
ab652bc |
# Finally, we provide /usr/bin/gntp as a link to /usr/bin/gntp-2
|
|
|
ab652bc |
ln -s ./%{srcname}-2 %{buildroot}%{_bindir}/%{srcname}
|
|
|
ab652bc |
|
|
|
ab652bc |
|
|
|
ab652bc |
%files -n python2-%{srcname}
|
|
|
25ce4a8 |
%doc README.rst
|
|
|
ab652bc |
%license LICENSE
|
|
|
ab652bc |
%{python2_sitelib}/%{srcname}/
|
|
|
ab652bc |
%{python2_sitelib}/%{srcname}-%{version}-py%{python2_version}.egg-info/
|
|
|
ab652bc |
%{_bindir}/%{srcname}
|
|
|
ab652bc |
%{_bindir}/%{srcname}-2
|
|
|
ab652bc |
%{_bindir}/%{srcname}-%{python2_version}
|
|
|
ab652bc |
|
|
|
ab652bc |
%files -n python3-%{srcname}
|
|
|
ab652bc |
%doc README.rst
|
|
|
ab652bc |
%license LICENSE
|
|
|
ab652bc |
%{python3_sitelib}/%{srcname}/
|
|
|
ab652bc |
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info/
|
|
|
ab652bc |
%{_bindir}/%{srcname}-3
|
|
|
ab652bc |
%{_bindir}/%{srcname}-%{python3_version}
|
|
|
25ce4a8 |
|
|
|
25ce4a8 |
|
|
|
25ce4a8 |
%changelog
|
|
|
8f41e8f |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-8
|
|
|
8f41e8f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
8f41e8f |
|
|
|
b7a341c |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-7
|
|
|
b7a341c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
b7a341c |
|
|
|
f80ed1b |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.0.3-6
|
|
|
f80ed1b |
- Rebuilt for Python 3.7
|
|
|
f80ed1b |
|
|
|
a2b0ee6 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-5
|
|
|
a2b0ee6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
a2b0ee6 |
|
|
|
e7984c1 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-4
|
|
|
e7984c1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
e7984c1 |
|
|
|
1b22063 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-3
|
|
|
1b22063 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
1b22063 |
|
|
|
7b5d1d7 |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.0.3-2
|
|
|
7b5d1d7 |
- Rebuild for Python 3.6
|
|
|
7b5d1d7 |
|
|
|
ab652bc |
* Mon Aug 08 2016 Dominika Krejci <dkrejci@redhat.com> - 1.0.3-1
|
|
|
ab652bc |
- Update to 1.0.3
|
|
|
ab652bc |
- Add Python 3
|
|
|
ab652bc |
|
|
|
e64540a |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-8
|
|
|
e64540a |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
e64540a |
|
|
|
ab7c468 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-7
|
|
|
ab7c468 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
ab7c468 |
|
|
|
2c9ddea |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-6
|
|
|
2c9ddea |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
2c9ddea |
|
|
|
f948ab3 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-5
|
|
|
f948ab3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
f948ab3 |
|
|
|
fc1ccfa |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-4
|
|
|
fc1ccfa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
fc1ccfa |
|
|
|
25ce4a8 |
* Sat Jun 15 2013 Conrad Meyer <cemeyer@uw.edu> - 1.0.1-3
|
|
|
25ce4a8 |
- Remove bundled egg (as per rh #917328 review)
|
|
|
25ce4a8 |
|
|
|
25ce4a8 |
* Sat Jun 15 2013 Conrad Meyer <cemeyer@uw.edu> - 1.0.1-2
|
|
|
25ce4a8 |
- Add dependency on python-setuptools to avoid buggy python-distutils fallback
|
|
|
25ce4a8 |
|
|
|
25ce4a8 |
* Mon Apr 29 2013 Conrad Meyer <cemeyer@uw.edu> - 1.0.1-1
|
|
|
25ce4a8 |
- Bump to latest upstream
|
|
|
25ce4a8 |
|
|
|
25ce4a8 |
* Mon Apr 29 2013 Conrad Meyer <cemeyer@uw.edu> - 0.9-2
|
|
|
25ce4a8 |
- New-world spec cleanups (python_sitelib is already defined, don't need to
|
|
|
25ce4a8 |
nuke buildroot during install)
|
|
|
25ce4a8 |
- BR python2-devel, not python-devel
|
|
|
25ce4a8 |
|
|
|
25ce4a8 |
* Sat Mar 2 2013 Conrad Meyer <cemeyer@uw.edu> - 0.9-1
|
|
|
25ce4a8 |
- Initial package
|