[521] | 1 | %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} |
---|
| 2 | |
---|
| 3 | Name: pybluez |
---|
| 4 | Version: 0.15 |
---|
[868] | 5 | Release: 4%{?_dist_release} |
---|
[521] | 6 | Summary: Python API for the BlueZ bluetooth stack |
---|
| 7 | Summary(ja): BlueZ bluetooth スタックの Python API |
---|
| 8 | |
---|
| 9 | Group: Development/Languages |
---|
| 10 | License: GPLv2 |
---|
| 11 | URL: http://code.google.com/p/pybluez/ |
---|
| 12 | Source0: http://pybluez.googlecode.com/files/PyBluez-0.15.tar.gz |
---|
| 13 | |
---|
| 14 | #---------------------------------------------------------------------------- |
---|
| 15 | |
---|
| 16 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 17 | |
---|
| 18 | #---------------------------------------------------------------------------- |
---|
| 19 | BuildRequires: python-devel, bluez-libs-devel |
---|
| 20 | |
---|
| 21 | #---------------------------------------------------------------------------- |
---|
| 22 | %description |
---|
| 23 | PyBluez is an effort to create python wrappers around system Bluetooth |
---|
| 24 | resources to allow Python developers to easily and quickly create Bluetooth |
---|
| 25 | applications. |
---|
| 26 | |
---|
| 27 | %description -l ja |
---|
| 28 | PyBluez は Python 開発者が容易かつ迅速にBluetoothのアプリケーションを作成 |
---|
| 29 | できるようにシステム回りの Bluetooth リソースの Pythonラッパーを作成します。 |
---|
| 30 | |
---|
| 31 | #---------------------------------------------------------------------------- |
---|
| 32 | %prep |
---|
| 33 | %setup -q -n PyBluez-%{version} |
---|
| 34 | |
---|
| 35 | |
---|
| 36 | %build |
---|
| 37 | CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build |
---|
| 38 | |
---|
| 39 | |
---|
| 40 | #---------------------------------------------------------------------------- |
---|
| 41 | %install |
---|
| 42 | rm -rf $RPM_BUILD_ROOT |
---|
| 43 | # This file shouldn't be executable - it's going into %doc |
---|
| 44 | chmod a-x examples/bluezchat/bluezchat.py |
---|
| 45 | %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT |
---|
| 46 | |
---|
| 47 | |
---|
| 48 | %clean |
---|
| 49 | rm -rf $RPM_BUILD_ROOT |
---|
| 50 | |
---|
| 51 | |
---|
| 52 | #---------------------------------------------------------------------------- |
---|
| 53 | %files |
---|
| 54 | %defattr(-,root,root,-) |
---|
| 55 | %doc README CHANGELOG COPYING examples |
---|
| 56 | %{python_sitearch}/* |
---|
| 57 | |
---|
| 58 | #---------------------------------------------------------------------------- |
---|
| 59 | # Maintainers: babasaki@mindgear.org |
---|
| 60 | # |
---|
| 61 | #---------------------------------------------------------------------------- |
---|
| 62 | %changelog |
---|
[868] | 63 | * Mon Apr 19 2010 Shu KONNO <owa@bg.wakwak.com> 0.15-4 |
---|
| 64 | - rebuilt with python-2.6 |
---|
| 65 | |
---|
[521] | 66 | * Fri Oct 24 2008 Seiichirou Babasaki 0.15-2 |
---|
| 67 | - Import bluez-gnome - Packager: Babasaki |
---|
| 68 | - added "# Maintainers: " comments. |
---|
| 69 | - changed UTF-8 encode at pybluez.vs.spec |
---|
| 70 | - updated specfile |
---|
| 71 | |
---|
| 72 | #---------------------------------------------------------------------------- |
---|
| 73 | * Thu Sep 11 2008 - Bastien Nocera <bnocera@redhat.com> - 0.15-2 |
---|
| 74 | - Rebuild |
---|
| 75 | |
---|
| 76 | * Wed Jun 4 2008 Will Woods <wwoods@redhat.com> - 0.15-1 |
---|
| 77 | - New upstream version |
---|
| 78 | |
---|
| 79 | * Wed Feb 20 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.9.1-4 |
---|
| 80 | - Autorebuild for GCC 4.3 |
---|
| 81 | |
---|
| 82 | * Fri Dec 29 2006 - Will Woods <wwoods@redhat.com> - 0.9.1-3 |
---|
| 83 | - Clean up spec file some more after further comments in bug #218678 |
---|
| 84 | |
---|
| 85 | * Fri Dec 15 2006 - Will Woods <wwoods@redhat.com> - 0.9.1-2 |
---|
| 86 | - Clean up spec file according to comments in bug #218678 |
---|
| 87 | |
---|
| 88 | * Wed Dec 6 2006 - Will Woods <wwoods@redhat.com> - 0.9.1-1 |
---|
| 89 | - Initial packaging attempt. |
---|