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