]>
Commit | Line | Data |
---|---|---|
3f4fbb2c | 1 | %include /usr/lib/rpm/macros.python |
2 | %define zope_subname fcForum | |
3 | Summary: Message Board Product for Zope | |
4 | Summary(pl): Forum dla Zope | |
5 | Name: Zope-%{zope_subname} | |
6 | Version: 2.0.1 | |
7 | Release: 1 | |
8 | License: ZPL 2.0 | |
66e190e4 | 9 | Group: Development/Tools |
3f4fbb2c | 10 | Source0: http://www.genix.biz/files/%{zope_subname}-2-0-1.tgz |
11 | # Source0-md5: 9c74b9b6f532aee732345485301c3c85 | |
12 | URL: http://www.genix.biz/forum_dev/index_html | |
13 | %pyrequires_eq python-modules | |
14 | Requires: Zope | |
15 | Requires: Zope-CookieCrumbler | |
16 | BuildArch: noarch | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %define product_dir /usr/lib/zope/Products | |
20 | ||
21 | %description | |
66e190e4 | 22 | Message Board Product for Zope. |
3f4fbb2c | 23 | |
24 | %description -l pl | |
66e190e4 | 25 | Forum dla Zope. |
3f4fbb2c | 26 | |
27 | %prep | |
28 | %setup -q -c %{zope_subname}-%{version} | |
29 | ||
30 | %install | |
31 | rm -rf $RPM_BUILD_ROOT | |
32 | install -d $RPM_BUILD_ROOT%{product_dir} | |
33 | cp -af * $RPM_BUILD_ROOT%{product_dir}/%{zope_subname} | |
34 | ||
35 | %py_comp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname} | |
36 | %py_ocomp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname} | |
37 | ||
38 | # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;; | |
39 | # rm -rf $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}/*.txt | |
40 | ||
41 | %clean | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
44 | %post | |
45 | if [ -f /var/lock/subsys/zope ]; then | |
46 | /etc/rc.d/init.d/zope restart >&2 | |
47 | fi | |
48 | ||
49 | %postun | |
50 | if [ -f /var/lock/subsys/zope ]; then | |
51 | /etc/rc.d/init.d/zope restart >&2 | |
52 | fi | |
53 | ||
54 | %files | |
55 | %defattr(644,root,root,755) | |
56 | # %%doc %{zope_subname}/*.txt | |
57 | %{product_dir}/%{zope_subname} |