Blob Blame History Raw
%global git_hash 65c3b3f

Name:          pycanberra
Summary:       A very basic (and incomplete) wrapper for libcanberra
License:       LGPLv2

# There's no versioning upstream, it's all about the Git hash
Version:       0
Release:       0.2.git%{git_hash}%{?dist}

URL:           https://github.com/psykoyiko/pycanberra/

# There aren't any release yet, I'm creating a git snapshot:
#     $ git clone git://github.com/psykoyiko/pycanberra.git
#     $ cd pycanberra
#     $ GIT_HASH=$(git rev-parse --short HEAD)
#     $ git archive --prefix=pycanberra-$GIT_HASH/ --format=tar HEAD | xz > pycanberra-git.$GIT_HASH.tar.xz
Source0:       %{name}-git.%{git_hash}.tar.xz

BuildArch:     noarch

BuildRequires: python2-devel

# This will break at run time when libcanberra bumps its soname :(
Requires:      libcanberra

%description
A very basic (and incomplete) wrapper for libcanberra.

This is necessary until libcanberra gets proper GObject Introspection support.


%prep
%setup -q -n pycanberra-%{git_hash}


%build
# Nothing to build


%install
install -d %{buildroot}%{python_sitelib}
install -p -m 0644 pycanberra.py %{buildroot}%{python_sitelib}


%files
%doc COPYING README
%{python_sitelib}/pycanberra.py*


%changelog
* Tue Oct 02 2012 Mathieu Bridon <bochecha@fedoraproject.org> - 0-0.2.git65c3b3f
- Fix requirement on libcanberra.

* Wed Sep 26 2012 Mathieu Bridon <bochecha@fedoraproject.org> - 0-0.1.git65c3b3f
- Initial package for Fedora.