]>
Commit | Line | Data |
---|---|---|
e183472e | 1 | %define zope_subname CPSSkinsTutorial |
2 | Summary: Tutorial for CPSSkins | |
7b92fa46 | 3 | Summary(pl.UTF-8): Samouczek dla CPSSkins |
e183472e | 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/ | |
9f6c7060 | 12 | BuildRequires: python |
6510a4ce ER |
13 | BuildRequires: rpmbuild(macros) >= 1.268 |
14 | Requires(post,postun): /usr/sbin/installzopeproduct | |
e183472e | 15 | %pyrequires_eq python-modules |
16 | Requires: Zope | |
17 | Requires: Zope-CPSSkins | |
18 | BuildArch: noarch | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
22 | Tutorial for CPSSkins. | |
23 | ||
ef66627a | 24 | %description -l pl.UTF-8 |
e183472e | 25 | Samouczek dla CPSSkins. |
26 | ||
27 | %prep | |
28 | %setup -q -c | |
29 | ||
30 | %install | |
31 | rm -rf $RPM_BUILD_ROOT | |
32 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name} | |
33 | ||
34 | cp -af Products/%{zope_subname}/{Extensions,i18n,skins,*.py,version.txt,refresh.txt} \ | |
0f94698d | 35 | $RPM_BUILD_ROOT%{_datadir}/%{name} |
e183472e | 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} | |
6510a4ce | 47 | %service -q zope restart |
e183472e | 48 | |
49 | %postun | |
50 | if [ "$1" = "0" ]; then | |
0f94698d | 51 | /usr/sbin/installzopeproduct -d %{zope_subname} |
6510a4ce | 52 | %service -q zope restart |
e183472e | 53 | fi |
54 | ||
55 | %files | |
56 | %defattr(644,root,root,755) | |
57 | %doc Products/%{zope_subname}/{INSTALL.TXT,*.doc} | |
58 | %{_datadir}/%{name} |