]>
Commit | Line | Data |
---|---|---|
27aef112 | 1 | %define zope_subname BTreeFolder2 |
c57033d9 | 2 | Summary: Zope product that acts like a Zope folder but can store many more items |
b3a4e0fc | 3 | Summary(pl.UTF-8): Dodatek do Zope rozszerzający możliwości pracy na folderach |
27aef112 | 4 | Name: Zope-%{zope_subname} |
dfba7982 | 5 | Version: 1.0.2 |
6 | Release: 1 | |
e8ac922d | 7 | License: ZPL 2.0 |
27aef112 | 8 | Group: Development/Tools |
dfba7982 | 9 | Source0: http://plone.org/Members/tiran/BTreeFolder2-%{version}.tar.gz |
10 | # Source0-md5: ff9ac5d485ca2a9d4f65e85509c88f2e | |
c57033d9 | 11 | URL: http://hathawaymix.org/Software/BTreeFolder2/ |
fc14761e | 12 | BuildRequires: python |
bbede82a | 13 | BuildRequires: rpmbuild(macros) >= 1.268 |
27aef112 | 14 | %pyrequires_eq python-modules |
1005c56d | 15 | Requires(post,postun): /usr/sbin/installzopeproduct |
bbede82a | 16 | Requires: Zope |
27aef112 JB |
17 | BuildArch: noarch |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
27aef112 JB |
20 | %description |
21 | BTreeFolder2 is a Zope product that acts like a Zope folder but can | |
22 | store many more items. | |
23 | ||
3a388368 JR |
24 | %description -l pl.UTF-8 |
25 | BTreeFolder2 jest dodatkiem do Zope rozszerzającym możliwości pracy na | |
c57033d9 | 26 | folderach. |
27aef112 JB |
27 | |
28 | %prep | |
e8ac922d | 29 | %setup -q -n %{zope_subname} |
27aef112 JB |
30 | |
31 | %install | |
32 | rm -rf $RPM_BUILD_ROOT | |
1005c56d | 33 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name} |
a5da8566 | 34 | cp -af tests *.py *.dtml *.gif version.txt $RPM_BUILD_ROOT%{_datadir}/%{name} |
27aef112 | 35 | |
1005c56d JK |
36 | %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name} |
37 | %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name} | |
27aef112 | 38 | |
62757789 | 39 | # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;; |
27aef112 JB |
40 | |
41 | %clean | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
44 | %post | |
bb3d0668 | 45 | /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname} |
bbede82a | 46 | %service -q zope restart |
27aef112 JB |
47 | |
48 | %postun | |
1005c56d | 49 | if [ "$1" = "0" ]; then |
bbede82a ER |
50 | /usr/sbin/installzopeproduct -d %{zope_subname} |
51 | %service -q zope restart | |
27aef112 JB |
52 | fi |
53 | ||
54 | %files | |
55 | %defattr(644,root,root,755) | |
1005c56d JK |
56 | %doc README.txt CHANGES.txt |
57 | %{_datadir}/%{name} |