]> git.pld-linux.org Git - packages/python-pysane.git/blame - python-pysane.spec
- new
[packages/python-pysane.git] / python-pysane.spec
CommitLineData
70c7f502
JB
1Summary: Python SANE module
2Summary(pl.UTF-8): Moduł SANE dla Pythona
3Name: python-pysane
4Version: 2.0.1
5Release: 1
6License: MIT-like
7Group: Libraries/Python
8Source0: https://pypi.python.org/packages/source/p/pysane/pysane-%{version}.tar.gz
9# Source0-md5: 8964574c06ab6ee7b782429386e887ac
10URL: https://pypi.python.org/pypi/pysane/
11BuildRequires: python-PIL-devel
12BuildRequires: python-devel >= 2
13BuildRequires: python-numpy-numarray-devel
14BuildRequires: rpm-pythonprov
15BuildRequires: rpmbuild(macros) >= 1.219
16BuildRequires: sane-backends-devel
17Requires: python-PIL
18Requires: python-numpy-numarray
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%description
22The SANE module provides an interface to the SANE scanner and frame
23grabber interface for Linux.
24
25%description -l pl.UTF-8
26Moduł SANE udostępnia interfejs do biblioteki SANE będącej interfejsem
27do skanerów i urządzeń przechwytujących ramki obrazu dla Linuksa.
28
29%prep
30%setup -q -n pysane-%{version}
31
32%build
33CC="%{__cc}" \
34CFLAGS="%{rpmcflags}" \
35%{__python} setup.py build
36
37%install
38rm -rf $RPM_BUILD_ROOT
39
40%{__python} setup.py install \
41 --skip-build \
42 --root=$RPM_BUILD_ROOT \
43 --optimize=2
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]
55%if "%{py_ver}" > "2.4"
56%{py_sitedir}/pysane-%{version}-py*.egg-info
57%endif
This page took 0.080947 seconds and 4 git commands to generate.