]> git.pld-linux.org Git - packages/Zope-OrderedFolderSupportPatch.git/blame - Zope-OrderedFolderSupportPatch.spec
- move Sources to distfiles
[packages/Zope-OrderedFolderSupportPatch.git] / Zope-OrderedFolderSupportPatch.spec
CommitLineData
b7339938 1%define zope_subname OrderedFolderSupportPatch
6b18678a 2Summary: Patch-product that modifies ObjectManager
147f662a 3Summary(pl.UTF-8): Poprawka modyfikująca ObjectManagera
b7339938 4Name: Zope-%{zope_subname}
5Version: 1.0
9978a92d 6Release: 3
b7339938 7License: GPL
8Group: Development/Tools
9Source0: OrderedFolderSupportPatch.tar.gz
7f8380f4 10# Source0-md5: a036a5c4131d29fe27b195b695036e63
b7339938 11URL: http://www.nuxeo.org
c4086fd9 12BuildRequires: python
b81a479a
ER
13BuildRequires: rpmbuild(macros) >= 1.268
14Requires(post,postun): /usr/sbin/installzopeproduct
b7339938 15%pyrequires_eq python-modules
16Requires: Zope >= 2.6
17BuildArch: noarch
18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20%description
21This is a patch-product that modifies ObjectManager to allow folders
22to be ordered by the user.
23
ca7391b4
JR
24%description -l pl.UTF-8
25Poprawka modyfikująca ObjectManagera, aby pozwalał na sortowanie
26folderów przez użytkownika.
b7339938 27
28%prep
29%setup -q -n %{zope_subname}
30
31%install
32rm -rf $RPM_BUILD_ROOT
33install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
34
35cp -af *.py $RPM_BUILD_ROOT%{_datadir}/%{name}
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}
b81a479a 47%service -q zope restart
b7339938 48
49%postun
50if [ "$1" = "0" ]; then
f25af92b 51 /usr/sbin/installzopeproduct -d %{zope_subname}
b81a479a 52 %service -q zope restart
b7339938 53fi
54
55%files
56%defattr(644,root,root,755)
57%doc CHANGES HISTORY LICENSE.txt README.txt
58%{_datadir}/%{name}
This page took 0.067611 seconds and 4 git commands to generate.