]>
Commit | Line | Data |
---|---|---|
c297e4bf | 1 | %define modulename pychm |
2 | Summary: Python package to handle CHM files | |
781af856 | 3 | Summary(pl.UTF-8): Pakiet dla pythona do obsługi plików CHM |
c297e4bf | 4 | Name: python-chm |
7e4fe8ad | 5 | Version: 0.8.4 |
5a3addf4 | 6 | Release: 4 |
7e4fe8ad | 7 | License: GPL v2+ |
c297e4bf | 8 | Group: Libraries/Python |
a83764a4 | 9 | Source0: http://downloads.sourceforge.net/gnochm/%{modulename}-%{version}.tar.gz |
7e4fe8ad | 10 | # Source0-md5: ff7f0baf94290c44263a1618e7e6a116 |
f66bb11c | 11 | URL: http://gnochm.sourceforge.net/pychm.html |
c297e4bf | 12 | BuildRequires: chmlib-devel |
a5807ff9 | 13 | BuildRequires: python |
7e4fe8ad | 14 | BuildRequires: python-devel >= 1:2.5 |
a83764a4 | 15 | BuildRequires: python-modules |
16 | BuildRequires: rpm-pythonprov | |
a5807ff9 | 17 | %pyrequires_eq python |
c297e4bf | 18 | Obsoletes: pychm |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
22 | The chm package provides three modules, chm, chmlib and extra, which | |
23 | provide access to the API implemented by the C library chmlib and some | |
24 | additional classes and functions. They are used to access MS-ITSS | |
63bb49a6 | 25 | encoded files - Compressed HTML Help files (.chm). |
c297e4bf | 26 | |
6259a5cf JR |
27 | %description -l pl.UTF-8 |
28 | Pakiet chm udostępnia trzy moduły - chm, chmlib i extra, które | |
29 | udostępniają dostęp do API biblioteki chmlib oraz kilka dodatkowych | |
30 | klas i funkcji. Są one wykorzystywane do dostępu zakodowanych w | |
31 | MS-ITSS plików - skompresowanych plików pomocy HTML(.chm). | |
c297e4bf | 32 | |
33 | %prep | |
34 | %setup -q -n %{modulename}-%{version} | |
35 | ||
36 | %build | |
1753707a | 37 | %py_build |
c297e4bf | 38 | |
39 | %install | |
40 | rm -rf $RPM_BUILD_ROOT | |
1753707a | 41 | %py_install |
c297e4bf | 42 | |
7e4fe8ad JB |
43 | %py_postclean |
44 | ||
c297e4bf | 45 | %clean |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | ||
48 | %files | |
49 | %defattr(644,root,root,755) | |
7e4fe8ad | 50 | %doc ChangeLog NEWS README |
c297e4bf | 51 | %dir %{py_sitedir}/chm |
52 | %attr(755,root,root) %{py_sitedir}/chm/*.so | |
53 | %{py_sitedir}/chm/*.py[oc] | |
7e4fe8ad | 54 | %{py_sitedir}/pychm-*.egg-info |