]>
Commit | Line | Data |
---|---|---|
8ad22b7a | 1 | %define zope_subname FileSystemSite |
2 | Summary: Repackaging of the CMF's FileSystem Directory Views | |
1c1bcddb | 3 | Summary(pl.UTF-8): Produkt zmieniający organizacje wyświetlania katalogów w CMF |
8ad22b7a | 4 | Name: Zope-%{zope_subname} |
35506ae6 | 5 | Version: 2.1 |
4b00fa56 | 6 | Release: 1 |
8ad22b7a | 7 | License: ZPL 2.0 |
8 | Group: Development/Tools | |
95aed1e2 | 9 | Source0: http://www.infrae.com/download/%{zope_subname}/%{version}/%{zope_subname}-%{version}.tgz |
35506ae6 | 10 | # Source0-md5: 8c3069af49168023ea8e56c54f2bf4c8 |
8ad22b7a | 11 | URL: http://zope.org/Members/philikon/FileSystemSite/ |
095fc1ac | 12 | BuildRequires: python |
54b31e04 | 13 | BuildRequires: rpmbuild(macros) >= 1.268 |
8ad22b7a | 14 | %pyrequires_eq python-modules |
15 | Requires: Zope >= 2.7 | |
4237d614 | 16 | Requires: Zope-CMF >= 1:1.4.1 |
8ad22b7a | 17 | |
18 | Requires(post,postun): /usr/sbin/installzopeproduct | |
19 | BuildArch: noarch | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
23 | FileSystemSite repackaging of the CMF's FileSystem Directory Views | |
24 | ||
da1873d7 JR |
25 | %description -l pl.UTF-8 |
26 | FileSystemSite jest produktem Zope zmieniającym sposób wyświetlania | |
27 | katalogów w CMF | |
8ad22b7a | 28 | |
29 | %prep | |
30 | %setup -q -n %{zope_subname} | |
31 | ||
32 | %install | |
33 | rm -rf $RPM_BUILD_ROOT | |
34 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name} | |
35 | ||
36 | cp -af {EditorUtils,ExampleSite,Extensions,dtml,images,templates,tests,*.py,version.txt,refresh.txt} \ | |
37 | $RPM_BUILD_ROOT%{_datadir}/%{name} | |
38 | ||
39 | %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name} | |
40 | %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name} | |
41 | ||
42 | # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;; | |
43 | ||
44 | %clean | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %post | |
48 | /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname} | |
54b31e04 | 49 | %service -q zope restart |
8ad22b7a | 50 | |
51 | %postun | |
52 | if [ "$1" = "0" ]; then | |
53 | /usr/sbin/installzopeproduct -d %{zope_subname} | |
54b31e04 | 54 | %service -q zope restart |
8ad22b7a | 55 | fi |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
95aed1e2 | 59 | %doc README.txt HISTORY.txt |
8ad22b7a | 60 | %{_datadir}/%{name} |