]> git.pld-linux.org Git - packages/Zope-stripogram.git/blame_incremental - Zope-stripogram.spec
- tabs in preamble
[packages/Zope-stripogram.git] / Zope-stripogram.spec
... / ...
CommitLineData
1%define zope_subname stripogram
2Summary: Library for converting HTML to Plain Text
3Summary(pl.UTF-8): Biblioteka konwertująca format HTML do zwykłego tekstu
4Name: Zope-%{zope_subname}
5Version: 1.4
6Release: 2
7License: GPL
8Group: Development/Tools
9Source0: http://dl.sourceforge.net/squishdot/%{zope_subname}-1-4.tgz
10# Source0-md5: d09a0fa325ec2ae9a6a94b0b4aabd408
11URL: http://zope.org/Members/chrisw/StripOGram/
12BuildRequires: python
13BuildRequires: rpmbuild(macros) >= 1.268
14Requires(post,postun): /usr/sbin/installzopeproduct
15%pyrequires_eq python-modules
16Requires: Zope
17BuildArch: noarch
18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20%description
21stripogram is a library for converting HTML to Plain Text.
22
23%description -l pl.UTF-8
24stripogram jest biblioteką konwertującą format HTML do zwykłego
25tekstu.
26
27%prep
28%setup -q -n %{zope_subname}
29
30%install
31rm -rf $RPM_BUILD_ROOT
32install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
33
34cp -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
42rm -rf $RPM_BUILD_ROOT
43
44%post
45/usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
46%service -q zope restart
47
48%postun
49if [ "$1" = "0" ]; then
50 /usr/sbin/installzopeproduct -d %{zope_subname}
51 %service -q zope restart
52fi
53
54%files
55%defattr(644,root,root,755)
56%doc readme.txt
57%{_datadir}/%{name}
This page took 0.055885 seconds and 4 git commands to generate.