]>
Commit | Line | Data |
---|---|---|
d35b8ac5 | 1 | %define module pycups |
d35b8ac5 | 2 | Summary: Set of Python bindings for the CUPS API |
052e6a33 | 3 | Summary(pl.UTF-8): Zbiór wiązań Pythona do API CUPS-a |
d35b8ac5 | 4 | Name: python-%{module} |
abbf6a31 | 5 | Version: 1.9.67 |
4a5d6911 | 6 | Release: 1 |
44ca03bb | 7 | License: GPL v2+ |
d35b8ac5 AF |
8 | Group: Development/Languages/Python |
9 | Source0: http://cyberelk.net/tim/data/pycups/pycups-%{version}.tar.bz2 | |
abbf6a31 | 10 | # Source0-md5: 7275811ac3c0abc2fd50cbad935b09a5 |
25f6a54d | 11 | URL: http://cyberelk.net/tim/software/pycups/ |
7d3e3981 | 12 | BuildRequires: cups-devel >= 1.2.1 |
44ca03bb | 13 | BuildRequires: epydoc |
f4abb5fa | 14 | BuildRequires: python-devel >= 1:2.5 |
541b7fbe | 15 | BuildRequires: rpm-pythonprov |
44ca03bb | 16 | Obsoletes: python-cups |
d35b8ac5 AF |
17 | %pyrequires_eq python-modules |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
44ca03bb ER |
21 | This package provides Python bindings for the CUPS API, known as |
22 | pycups. It was written for use with system-config-printer, but can be | |
23 | put to other uses as well. | |
d35b8ac5 | 24 | |
052e6a33 | 25 | %description -l pl.UTF-8 |
4a5d6911 JB |
26 | Ten pakiet udostępnia wiązania Pythona do API CUPS-a, znane jako |
27 | pycups. Został napisany z myślą o pakiecie system-config-printer, ale | |
28 | może mieć także inne zastosowania. | |
541b7fbe | 29 | |
44ca03bb | 30 | %package doc |
4a5d6911 JB |
31 | Summary: Documentation for pycups |
32 | Summary(pl.UTF-8): Dokumentacja do pycupsa | |
44ca03bb ER |
33 | Group: Documentation |
34 | ||
35 | %description doc | |
4a5d6911 JB |
36 | Documentation for pycups. |
37 | ||
38 | %description doc -l pl.UTF-8 | |
39 | Dokumentacja do pycupsa. | |
44ca03bb | 40 | |
d35b8ac5 AF |
41 | %prep |
42 | %setup -q -n %{module}-%{version} | |
43 | ||
44 | %build | |
44ca03bb ER |
45 | %{__make} \ |
46 | CFLAGS="%{rpmcflags} -fno-strict-aliasing" | |
d35b8ac5 | 47 | |
44ca03bb | 48 | %{__make} doc |
d35b8ac5 AF |
49 | %install |
50 | rm -rf $RPM_BUILD_ROOT | |
44ca03bb ER |
51 | %{__make} install \ |
52 | DESTDIR=$RPM_BUILD_ROOT | |
d35b8ac5 | 53 | |
d35b8ac5 AF |
54 | %clean |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
4a5d6911 | 59 | %doc ChangeLog NEWS README TODO |
44ca03bb | 60 | %attr(755,root,root) %{py_sitedir}/cups.so |
4a5d6911 JB |
61 | %{py_sitedir}/pycups-%{version}-py*.egg-info |
62 | ||
63 | %files doc | |
64 | %defattr(644,root,root,755) | |
65 | %doc html/* |