]>
Commit | Line | Data |
---|---|---|
e183472e | 1 | %define zope_subname CPSSkinsTutorial |
2 | Summary: Tutorial for CPSSkins | |
3 | Summary(pl): Samouczek dla CPSSkins | |
4 | Name: Zope-%{zope_subname} | |
5 | Version: 0.2 | |
6 | Release: 1 | |
7 | License: GPL | |
8 | Group: Development/Tools | |
9 | Source0: http://www.medic.chalmers.se/~jmo/CPS/%{zope_subname}%{version}.tgz | |
10 | # Source0-md5: 3ac2fcee53fcef9f244cb6b06d696a8c | |
11 | URL: http://www.medic.chalmers.se/~jmo/CPS/ | |
12 | Requires(post,postun): /usr/sbin/installzopeproduct | |
13 | %pyrequires_eq python-modules | |
14 | Requires: Zope | |
15 | Requires: Zope-CPSSkins | |
16 | BuildArch: noarch | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | Tutorial for CPSSkins. | |
21 | ||
22 | %description -l pl | |
23 | Samouczek dla CPSSkins. | |
24 | ||
25 | %prep | |
26 | %setup -q -c | |
27 | ||
28 | %install | |
29 | rm -rf $RPM_BUILD_ROOT | |
30 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name} | |
31 | ||
32 | cp -af Products/%{zope_subname}/{Extensions,i18n,skins,*.py,version.txt,refresh.txt} \ | |
0f94698d | 33 | $RPM_BUILD_ROOT%{_datadir}/%{name} |
e183472e | 34 | |
35 | %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name} | |
36 | %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name} | |
37 | ||
38 | # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;; | |
39 | ||
40 | %clean | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | ||
43 | %post | |
44 | /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname} | |
45 | if [ -f /var/lock/subsys/zope ]; then | |
46 | /etc/rc.d/init.d/zope restart >&2 | |
47 | fi | |
48 | ||
49 | %postun | |
50 | if [ "$1" = "0" ]; then | |
0f94698d | 51 | /usr/sbin/installzopeproduct -d %{zope_subname} |
52 | if [ -f /var/lock/subsys/zope ]; then | |
53 | /etc/rc.d/init.d/zope restart >&2 | |
54 | fi | |
e183472e | 55 | fi |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
59 | %doc Products/%{zope_subname}/{INSTALL.TXT,*.doc} | |
60 | %{_datadir}/%{name} |