]> git.pld-linux.org Git - packages/Zope-stripogram.git/blob - Zope-stripogram.spec
- spaces -> tabs
[packages/Zope-stripogram.git] / Zope-stripogram.spec
1 %define         zope_subname    stripogram
2 Summary:        Library for converting HTML to Plain Text
3 Summary(pl):    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/sourceforge/squishdot/%{zope_subname}-1-4.tgz
10 # Source0-md5:  d09a0fa325ec2ae9a6a94b0b4aabd408
11 URL:            http://zope.org/Members/chrisw/StripOGram/
12 Requires(post,postun):  /usr/sbin/installzopeproduct
13 BuildRequires:  python
14 %pyrequires_eq  python-modules
15 Requires:       Zope
16 BuildArch:      noarch
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 stripogram is a library for converting HTML to Plain Text.
21
22 %description -l pl
23 stripogram jest bibliotek± konwertuj±c± format HTML do zwyk³ego
24 tekstu.
25
26 %prep
27 %setup -q -n %{zope_subname}
28
29 %install
30 rm -rf $RPM_BUILD_ROOT
31 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
32
33 cp -af *.py $RPM_BUILD_ROOT%{_datadir}/%{name}
34
35 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
36 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
37
38 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
39
40 %clean
41 rm -rf $RPM_BUILD_ROOT
42
43 %post
44 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
45 if [ -f /var/lock/subsys/zope ]; then
46         /etc/rc.d/init.d/zope restart >&2
47 fi
48
49 %postun
50 if [ "$1" = "0" ]; then
51         /usr/sbin/installzopeproduct -d %{zope_subname}
52         if [ -f /var/lock/subsys/zope ]; then
53                 /etc/rc.d/init.d/zope restart >&2
54         fi
55 fi
56
57 %files
58 %defattr(644,root,root,755)
59 %doc readme.txt
60 %{_datadir}/%{name}
This page took 0.085222 seconds and 3 git commands to generate.