]>
Commit | Line | Data |
---|---|---|
70c7f502 JB |
1 | Summary: Python SANE module |
2 | Summary(pl.UTF-8): Moduł SANE dla Pythona | |
3 | Name: python-pysane | |
4 | Version: 2.0.1 | |
8a445427 | 5 | Release: 2 |
70c7f502 JB |
6 | License: MIT-like |
7 | Group: Libraries/Python | |
8 | Source0: https://pypi.python.org/packages/source/p/pysane/pysane-%{version}.tar.gz | |
9 | # Source0-md5: 8964574c06ab6ee7b782429386e887ac | |
10 | URL: https://pypi.python.org/pypi/pysane/ | |
11 | BuildRequires: python-PIL-devel | |
12 | BuildRequires: python-devel >= 2 | |
13 | BuildRequires: python-numpy-numarray-devel | |
14 | BuildRequires: rpm-pythonprov | |
15 | BuildRequires: rpmbuild(macros) >= 1.219 | |
16 | BuildRequires: sane-backends-devel | |
17 | Requires: python-PIL | |
18 | Requires: python-numpy-numarray | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
22 | The SANE module provides an interface to the SANE scanner and frame | |
23 | grabber interface for Linux. | |
24 | ||
25 | %description -l pl.UTF-8 | |
26 | Moduł SANE udostępnia interfejs do biblioteki SANE będącej interfejsem | |
27 | do skanerów i urządzeń przechwytujących ramki obrazu dla Linuksa. | |
28 | ||
29 | %prep | |
30 | %setup -q -n pysane-%{version} | |
31 | ||
32 | %build | |
6317a8c3 | 33 | %py_build |
70c7f502 JB |
34 | |
35 | %install | |
36 | rm -rf $RPM_BUILD_ROOT | |
37 | ||
6317a8c3 | 38 | %py_install |
70c7f502 JB |
39 | |
40 | %py_postclean | |
41 | ||
42 | %clean | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | ||
45 | %files | |
46 | %defattr(644,root,root,755) | |
47 | %doc README | |
48 | %attr(755,root,root) %{py_sitedir}/_sane.so | |
49 | %{py_sitedir}/sane.py[co] | |
50 | %if "%{py_ver}" > "2.4" | |
51 | %{py_sitedir}/pysane-%{version}-py*.egg-info | |
52 | %endif |