]> git.pld-linux.org Git - packages/python-pysane.git/blame - python-pysane.spec
- obsolete, continued as python-sane
[packages/python-pysane.git] / python-pysane.spec
CommitLineData
ff0bf111 1# NOTE: python3/pillow compatible continuation in python-sane.spec
70c7f502
JB
2Summary: Python SANE module
3Summary(pl.UTF-8): Moduł SANE dla Pythona
4Name: python-pysane
5Version: 2.0.1
ff0bf111 6Release: 2.1
70c7f502
JB
7License: MIT-like
8Group: Libraries/Python
593b4656
JB
9#Source0Download: https://pypi.org/simple/pysane/
10Source0: https://files.pythonhosted.org/packages/source/p/pysane/pysane-%{version}.tar.gz
70c7f502 11# Source0-md5: 8964574c06ab6ee7b782429386e887ac
593b4656
JB
12URL: https://pypi.org/project/pysane/
13BuildRequires: python-devel >= 1:2.5
70c7f502 14BuildRequires: python-numpy-numarray-devel
593b4656 15BuildRequires: python-pillow-devel
70c7f502 16BuildRequires: rpm-pythonprov
593b4656
JB
17BuildRequires: rpmbuild(macros) >= 1.714
18BuildRequires: sed >= 4.0
70c7f502 19BuildRequires: sane-backends-devel
70c7f502 20Requires: python-numpy-numarray
593b4656 21Requires: python-pillow
70c7f502
JB
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
25The SANE module provides an interface to the SANE scanner and frame
26grabber interface for Linux.
27
28%description -l pl.UTF-8
29Moduł SANE udostępnia interfejs do biblioteki SANE będącej interfejsem
30do 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
41rm -rf $RPM_BUILD_ROOT
42
6317a8c3 43%py_install
70c7f502
JB
44
45%py_postclean
46
47%clean
48rm -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
This page took 0.0737 seconds and 4 git commands to generate.