]>
Commit | Line | Data |
---|---|---|
1cd1cb33 | 1 | %define zope_subname stripogram |
2 | Summary: Library for converting HTML to Plain Text | |
aa371190 | 3 | Summary(pl.UTF-8): Biblioteka konwertująca format HTML do zwykłego tekstu |
1cd1cb33 | 4 | Name: Zope-%{zope_subname} |
5 | Version: 1.4 | |
945f59f9 | 6 | Release: 2 |
1cd1cb33 | 7 | License: GPL |
8 | Group: Development/Tools | |
b883c532 | 9 | Source0: http://dl.sourceforge.net/squishdot/%{zope_subname}-1-4.tgz |
1cd1cb33 | 10 | # Source0-md5: d09a0fa325ec2ae9a6a94b0b4aabd408 |
11 | URL: http://zope.org/Members/chrisw/StripOGram/ | |
81381f2f | 12 | BuildRequires: python |
b883c532 ER |
13 | BuildRequires: rpmbuild(macros) >= 1.268 |
14 | Requires(post,postun): /usr/sbin/installzopeproduct | |
1cd1cb33 | 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 | ||
a3385139 JR |
23 | %description -l pl.UTF-8 |
24 | stripogram jest biblioteką konwertującą format HTML do zwykłego | |
1cd1cb33 | 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} | |
b883c532 | 46 | %service -q zope restart |
1cd1cb33 | 47 | |
48 | %postun | |
49 | if [ "$1" = "0" ]; then | |
50 | /usr/sbin/installzopeproduct -d %{zope_subname} | |
b883c532 | 51 | %service -q zope restart |
1cd1cb33 | 52 | fi |
53 | ||
54 | %files | |
55 | %defattr(644,root,root,755) | |
56 | %doc readme.txt | |
57 | %{_datadir}/%{name} |