540aa3
%global commit 88c53cd44a626ede3b07dab0b548f8bcfda42867
540aa3
%global shortcommit %(c=%{commit}; echo ${c:0:7})
b3be07
b3be07
Name:          pycanberra
b3be07
Summary:       A very basic (and incomplete) wrapper for libcanberra
540aa3
URL:           https://github.com/psykoyiko/pycanberra/
b3be07
License:       LGPLv2
b3be07
b3be07
# There's no versioning upstream, it's all about the Git hash
b3be07
Version:       0
70ebd1
Release:       0.13.git%{shortcommit}%{?dist}
b3be07
540aa3
# There aren't any release yet, I'm downloading straight from the last commit
540aa3
Source0:       https://github.com/psykoyiko/pycanberra/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
3576ac
b3be07
BuildArch:     noarch
b3be07
b3be07
BuildRequires: python2-devel
3576ac
BuildRequires: python3-devel
b3be07
1ae0aa
# This will break at run time when libcanberra bumps its soname :(
1ae0aa
Requires:      libcanberra
b3be07
b3be07
%description
3576ac
A very basic (and incomplete) wrapper of libcanberra for Python 2.
3576ac
b3be07
3576ac
%package -n python3-canberra
3576ac
Summary:       A very basic (and incomplete) wrapper for libcanberra
3576ac
3576ac
%description -n python3-canberra
3576ac
A very basic (and incomplete) wrapper of libcanberra for Python 3.
b3be07
b3be07
b3be07
%prep
540aa3
%setup -q -n pycanberra-%{commit}
3576ac
b3be07
b3be07
%build
b3be07
# Nothing to build
b3be07
b3be07
b3be07
%install
b3be07
install -d %{buildroot}%{python_sitelib}
b3be07
install -p -m 0644 pycanberra.py %{buildroot}%{python_sitelib}
b3be07
3576ac
install -d %{buildroot}%{python3_sitelib}
3576ac
install -p -m 0644 pycanberra.py %{buildroot}%{python3_sitelib}
3576ac
b3be07
b3be07
%files
b3be07
%doc COPYING README
b3be07
%{python_sitelib}/pycanberra.py*
b3be07
3576ac
%files -n python3-canberra
3576ac
%doc COPYING README
3576ac
%{python3_sitelib}/pycanberra.py
Orion Poplawski 0cd5f5
%{python3_sitelib}/__pycache__/*
3576ac
3576ac
b3be07
%changelog
70ebd1
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.13.git88c53cd
70ebd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
70ebd1
9b5445
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0-0.12.git88c53cd
9b5445
- Rebuild for Python 3.6
9b5445
c467c5
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.11.git88c53cd
c467c5
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
c467c5
bc2b68
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.10.git88c53cd
bc2b68
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
bc2b68
Orion Poplawski 0cd5f5
* Tue Nov 10 2015 Orion Poplawski <orion@cora.nwra.com> - 0-0.9.git88c53cd
Orion Poplawski 0cd5f5
- Fix files for python3.5
Orion Poplawski 0cd5f5
e675e7
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.9.git88c53cd
e675e7
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
e675e7
540aa3
* Thu Sep 10 2015 Mathieu Bridon <bochecha@daitauha.fr> - 0-0.8.git65c3b3f
540aa3
- New snapshot from master.
540aa3
ef17b6
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.7.git65c3b3f
ef17b6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
ef17b6
d43510
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.6.git65c3b3f
d43510
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
d43510
e99819
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 0-0.5.git65c3b3f
e99819
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
e99819
eafcd3
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.4.git65c3b3f
eafcd3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
eafcd3
3576ac
* Wed Feb 06 2013 Mathieu Bridon <bochecha@fedoraproject.org> - 0-0.3.git65c3b3f
3576ac
- Add a python3 subpackage.
3576ac
1ae0aa
* Tue Oct 02 2012 Mathieu Bridon <bochecha@fedoraproject.org> - 0-0.2.git65c3b3f
1ae0aa
- Fix requirement on libcanberra.
1ae0aa
b3be07
* Wed Sep 26 2012 Mathieu Bridon <bochecha@fedoraproject.org> - 0-0.1.git65c3b3f
b3be07
- Initial package for Fedora.