]> git.pld-linux.org Git - packages/Zope-fcForum.git/blame - Zope-fcForum.spec
- removed %%include /usr/lib/rpm/macros.python
[packages/Zope-fcForum.git] / Zope-fcForum.spec
CommitLineData
3f4fbb2c 1%define zope_subname fcForum
2Summary: Message Board Product for Zope
3Summary(pl): Forum dla Zope
4Name: Zope-%{zope_subname}
e3d21ce4 5Version: 2.0.7
6Release: 1
3f4fbb2c 7License: ZPL 2.0
66e190e4 8Group: Development/Tools
e3d21ce4 9Source0: http://www.genixsys.com/files/%{zope_subname}-2-0-7.tgz
10# Source0-md5: 159dedced08004e140c516041f6954bc
9d1ad2d6 11URL: http://www.genixsys.com/forum_dev/index_html
3f4fbb2c 12%pyrequires_eq python-modules
13Requires: Zope
14Requires: Zope-CookieCrumbler
b97dadb6 15Requires(post,postun): /usr/sbin/installzopeproduct
3f4fbb2c 16BuildArch: noarch
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
3f4fbb2c 19%description
66e190e4 20Message Board Product for Zope.
3f4fbb2c 21
22%description -l pl
66e190e4 23Forum dla Zope.
3f4fbb2c 24
25%prep
dd5e743f 26%setup -q -n %{zope_subname}
3f4fbb2c 27
28%install
29rm -rf $RPM_BUILD_ROOT
f939c3ad 30install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
dd5e743f 31
e3d21ce4 32cp -af {media,www,*.py,refresh.txt,version.txt} $RPM_BUILD_ROOT%{_datadir}/%{name}
3f4fbb2c 33
f939c3ad
JK
34%py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
35%py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
3f4fbb2c 36
37# find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
3f4fbb2c 38
39%clean
40rm -rf $RPM_BUILD_ROOT
41
42%post
f939c3ad 43/usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
3f4fbb2c 44if [ -f /var/lock/subsys/zope ]; then
45 /etc/rc.d/init.d/zope restart >&2
46fi
47
48%postun
f939c3ad
JK
49if [ "$1" = "0" ]; then
50 /usr/sbin/installzopeproduct -d %{zope_subname}
51 if [ -f /var/lock/subsys/zope ]; then
52 /etc/rc.d/init.d/zope restart >&2
53 fi
3f4fbb2c 54fi
55
56%files
57%defattr(644,root,root,755)
e3d21ce4 58%doc filelist.txt readme.txt
f939c3ad 59%{_datadir}/%{name}
This page took 0.119826 seconds and 4 git commands to generate.