]> git.pld-linux.org Git - packages/Zope-FileSystemSite.git/blob - Zope-FileSystemSite.spec
e6cc9e4e3ab943eab645235c736a6a1130ee5c29
[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:        3
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 BuildRequires:  python
13 %pyrequires_eq  python-modules
14 Requires:       Zope >= 2.7
15 Requires:       Zope-CMF >= 1: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 HISTORY.txt
63 %{_datadir}/%{name}
This page took 0.048992 seconds and 2 git commands to generate.