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