]> git.pld-linux.org Git - packages/Zope-CPSSkinsTutorial.git/blame - Zope-CPSSkinsTutorial.spec
- tabs in preamble
[packages/Zope-CPSSkinsTutorial.git] / Zope-CPSSkinsTutorial.spec
CommitLineData
e183472e 1%define zope_subname CPSSkinsTutorial
2Summary: Tutorial for CPSSkins
7b92fa46 3Summary(pl.UTF-8): Samouczek dla CPSSkins
e183472e 4Name: Zope-%{zope_subname}
5Version: 0.2
6Release: 1
7License: GPL
8Group: Development/Tools
9Source0: http://www.medic.chalmers.se/~jmo/CPS/%{zope_subname}%{version}.tgz
10# Source0-md5: 3ac2fcee53fcef9f244cb6b06d696a8c
11URL: http://www.medic.chalmers.se/~jmo/CPS/
9f6c7060 12BuildRequires: python
6510a4ce
ER
13BuildRequires: rpmbuild(macros) >= 1.268
14Requires(post,postun): /usr/sbin/installzopeproduct
e183472e 15%pyrequires_eq python-modules
16Requires: Zope
17Requires: Zope-CPSSkins
18BuildArch: noarch
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%description
22Tutorial for CPSSkins.
23
ef66627a 24%description -l pl.UTF-8
e183472e 25Samouczek dla CPSSkins.
26
27%prep
28%setup -q -c
29
30%install
31rm -rf $RPM_BUILD_ROOT
32install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
33
34cp -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
43rm -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
50if [ "$1" = "0" ]; then
0f94698d 51 /usr/sbin/installzopeproduct -d %{zope_subname}
6510a4ce 52 %service -q zope restart
e183472e 53fi
54
55%files
56%defattr(644,root,root,755)
57%doc Products/%{zope_subname}/{INSTALL.TXT,*.doc}
58%{_datadir}/%{name}
This page took 0.072026 seconds and 4 git commands to generate.