]> git.pld-linux.org Git - packages/Zope-FileSystemSite.git/blob - Zope-FileSystemSite.spec
- release 2 for rebuild with python 2.4
[packages/Zope-FileSystemSite.git] / Zope-FileSystemSite.spec
1 %define         zope_subname    FileSystemSite
2 Summary:        Repackaging of the CMF's FileSystem Directory Views
3 Summary(pl):    Produkt zmieniaj±cy organizacje wy¶wietlania katalogów w CMF
4 Name:           Zope-%{zope_subname}
5 Version:        1.4.1
6 Release:        2
7 License:        ZPL 2.0
8 Group:          Development/Tools
9 Source0:        http://www.infrae.com/download/%{zope_subname}/%{version}/%{zope_subname}-%{version}.tgz
10 # Source0-md5:  5c3bf90234187f0d37ab3dcf2c4c4129
11 URL:            http://zope.org/Members/philikon/FileSystemSite/
12 %pyrequires_eq  python-modules
13 Requires:       Zope >= 2.7
14 Requires:       Zope-CMF >= 1.4.1
15
16 Requires(post,postun):  /usr/sbin/installzopeproduct
17 BuildArch:      noarch
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 FileSystemSite repackaging of the CMF's FileSystem Directory Views
22
23 %description -l pl
24 FileSystemSite jest produktem Zope zmieniaj±cym sposób
25 wy¶wietlania katalogów w CMF
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 {EditorUtils,ExampleSite,Extensions,dtml,images,templates,tests,*.py,version.txt,refresh.txt} \
35         $RPM_BUILD_ROOT%{_datadir}/%{name}
36
37 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
38 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
39
40 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
41
42 %clean
43 rm -rf $RPM_BUILD_ROOT
44
45 %post
46 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
47 if [ -f /var/lock/subsys/zope ]; then
48         /etc/rc.d/init.d/zope restart >&2
49 fi
50
51 %postun
52 if [ "$1" = "0" ]; then
53         /usr/sbin/installzopeproduct -d %{zope_subname}
54         if [ -f /var/lock/subsys/zope ]; then
55                 /etc/rc.d/init.d/zope restart >&2
56         fi
57 fi
58
59 %files
60 %defattr(644,root,root,755)
61 %doc README.txt HISTORY.txt
62 %{_datadir}/%{name}
This page took 0.082386 seconds and 3 git commands to generate.