]>
Commit | Line | Data |
---|---|---|
3f4fbb2c | 1 | %define zope_subname fcForum |
2 | Summary: Message Board Product for Zope | |
1407322b | 3 | Summary(pl.UTF-8): Forum dla Zope |
3f4fbb2c | 4 | Name: Zope-%{zope_subname} |
e3d21ce4 | 5 | Version: 2.0.7 |
80484da1 | 6 | Release: 3 |
3f4fbb2c | 7 | License: ZPL 2.0 |
66e190e4 | 8 | Group: Development/Tools |
e3d21ce4 | 9 | Source0: http://www.genixsys.com/files/%{zope_subname}-2-0-7.tgz |
10 | # Source0-md5: 159dedced08004e140c516041f6954bc | |
9d1ad2d6 | 11 | URL: http://www.genixsys.com/forum_dev/index_html |
5c71df4f | 12 | BuildRequires: python |
9e8f45d4 | 13 | BuildRequires: rpmbuild(macros) >= 1.268 |
3f4fbb2c | 14 | %pyrequires_eq python-modules |
9e8f45d4 | 15 | Requires(post,postun): /usr/sbin/installzopeproduct |
3f4fbb2c | 16 | Requires: Zope |
17 | Requires: Zope-CookieCrumbler | |
18 | BuildArch: noarch | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
3f4fbb2c | 21 | %description |
66e190e4 | 22 | Message Board Product for Zope. |
3f4fbb2c | 23 | |
1f284526 | 24 | %description -l pl.UTF-8 |
66e190e4 | 25 | Forum dla Zope. |
3f4fbb2c | 26 | |
27 | %prep | |
dd5e743f | 28 | %setup -q -n %{zope_subname} |
3f4fbb2c | 29 | |
30 | %install | |
31 | rm -rf $RPM_BUILD_ROOT | |
f939c3ad | 32 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name} |
dd5e743f | 33 | |
e3d21ce4 | 34 | cp -af {media,www,*.py,refresh.txt,version.txt} $RPM_BUILD_ROOT%{_datadir}/%{name} |
3f4fbb2c | 35 | |
f939c3ad JK |
36 | %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name} |
37 | %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name} | |
3f4fbb2c | 38 | |
39 | # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;; | |
3f4fbb2c | 40 | |
41 | %clean | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
44 | %post | |
f939c3ad | 45 | /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname} |
9e8f45d4 | 46 | %service -q zope restart |
3f4fbb2c | 47 | |
48 | %postun | |
f939c3ad | 49 | if [ "$1" = "0" ]; then |
9e8f45d4 ER |
50 | /usr/sbin/installzopeproduct -d %{zope_subname} |
51 | %service -q zope restart | |
3f4fbb2c | 52 | fi |
53 | ||
54 | %files | |
55 | %defattr(644,root,root,755) | |
e3d21ce4 | 56 | %doc filelist.txt readme.txt |
f939c3ad | 57 | %{_datadir}/%{name} |