]>
Commit | Line | Data |
---|---|---|
1 | %define zope_subname stripogram | |
2 | Summary: Library for converting HTML to Plain Text | |
3 | Summary(pl.UTF-8): Biblioteka konwertująca format HTML do zwykłego tekstu | |
4 | Name: Zope-%{zope_subname} | |
5 | Version: 1.4 | |
6 | Release: 2 | |
7 | License: GPL | |
8 | Group: Development/Tools | |
9 | Source0: http://dl.sourceforge.net/squishdot/%{zope_subname}-1-4.tgz | |
10 | # Source0-md5: d09a0fa325ec2ae9a6a94b0b4aabd408 | |
11 | URL: http://zope.org/Members/chrisw/StripOGram/ | |
12 | BuildRequires: python | |
13 | BuildRequires: rpmbuild(macros) >= 1.268 | |
14 | Requires(post,postun): /usr/sbin/installzopeproduct | |
15 | %pyrequires_eq python-modules | |
16 | Requires: Zope | |
17 | BuildArch: noarch | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
21 | stripogram is a library for converting HTML to Plain Text. | |
22 | ||
23 | %description -l pl.UTF-8 | |
24 | stripogram jest biblioteką konwertującą format HTML do zwykłego | |
25 | tekstu. | |
26 | ||
27 | %prep | |
28 | %setup -q -n %{zope_subname} | |
29 | ||
30 | %install | |
31 | rm -rf $RPM_BUILD_ROOT | |
32 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name} | |
33 | ||
34 | cp -af *.py $RPM_BUILD_ROOT%{_datadir}/%{name} | |
35 | ||
36 | %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name} | |
37 | %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name} | |
38 | ||
39 | # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;; | |
40 | ||
41 | %clean | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
44 | %post | |
45 | /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname} | |
46 | %service -q zope restart | |
47 | ||
48 | %postun | |
49 | if [ "$1" = "0" ]; then | |
50 | /usr/sbin/installzopeproduct -d %{zope_subname} | |
51 | %service -q zope restart | |
52 | fi | |
53 | ||
54 | %files | |
55 | %defattr(644,root,root,755) | |
56 | %doc readme.txt | |
57 | %{_datadir}/%{name} |