]> git.pld-linux.org Git - packages/Zope-PortalTransport.git/blob - Zope-PortalTransport.spec
- tabs in preamble
[packages/Zope-PortalTransport.git] / Zope-PortalTransport.spec
1 %define         zope_subname    PortalTransport
2 Summary:        Provides a subscription service for CMF
3 Summary(pl.UTF-8):      Produkt dodający możliwość subskrypcji dla usług CMF
4 Name:           Zope-%{zope_subname}
5 Version:        1.1
6 Release:        4
7 License:        GPL
8 Group:          Development/Tools
9 Source0:        http://dl.sourceforge.net/collective/%{zope_subname}-%{version}.tar.gz
10 # Source0-md5:  a461fbee5442e1d29af623a9d9bcbfbb
11 Patch0:         %{name}-Interface.patch
12 URL:            http://sourceforge.net/projects/collective/
13 BuildRequires:  python
14 BuildRequires:  rpmbuild(macros) >= 1.268
15 Requires(post,postun):  /usr/sbin/installzopeproduct
16 %pyrequires_eq  python-modules
17 Requires:       Zope
18 Requires:       Zope-CMF >= 1:1.4.2
19 Requires:       Zope-CMFPlone >= 2.0
20 Requires:       Zope-archetypes >= 1.2.5
21 Requires:       Zope-stripogram
22 BuildArch:      noarch
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 PortalTransport provides a subscription service for CMF.
27
28 %description -l pl.UTF-8
29 PortalTransport jest produktem dodającym możliwość subskrypcji dla
30 usług CMF.
31
32 %prep
33 %setup -q -n %{zope_subname}
34 %patch0 -p1
35
36 %install
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
39
40 cp -af {Bouncers,Extensions,i18n,interfaces,skins,zpt,*.py,*.gif,VERSION.txt} \
41         $RPM_BUILD_ROOT%{_datadir}/%{name}
42
43 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
44 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
45
46 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
47
48 %clean
49 rm -rf $RPM_BUILD_ROOT
50
51 %post
52 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
53 %service -q zope restart
54
55 %postun
56 if [ "$1" = "0" ]; then
57         /usr/sbin/installzopeproduct -d %{zope_subname}
58         %service -q zope restart
59 fi
60
61 %files
62 %defattr(644,root,root,755)
63 %doc CHANGES.txt README.txt CREDITS.txt TODO
64 %{_datadir}/%{name}
This page took 0.415901 seconds and 3 git commands to generate.