CMFActivity.spec 2.09 KB
Newer Older
1
%define product CMFActivity
Kevin Deldycke's avatar
Kevin Deldycke committed
2 3
%define version 0.11
%define release 1
4 5 6 7 8 9 10 11 12 13 14 15 16 17

%define zope_home %{_prefix}/lib/zope
%define software_home %{zope_home}/lib/python

Summary:   Activity Tool for Zope
Name:      zope-%{product}
Version:   %{version}
Release:   %mkrel %{release}
License:   GPL
Group:     System/Servers
URL:       http://www.erp5.org
Source0:   %{product}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-rootdir
BuildArch: noarch
Kevin Deldycke's avatar
Kevin Deldycke committed
18
Conflicts: CMFActivity
Kevin Deldycke's avatar
Kevin Deldycke committed
19
Requires:  zope zope-CMF zope-TimerService
Sebastien Robin's avatar
Sebastien Robin committed
20 21 22

#----------------------------------------------------------------------
%description
23
This tools add activities for Zope objects.
Sebastien Robin's avatar
Sebastien Robin committed
24 25 26

#----------------------------------------------------------------------
%prep
27
%setup -c
Sebastien Robin's avatar
Sebastien Robin committed
28 29 30 31

%build

%install
32 33 34 35
%{__rm} -rf %{buildroot}
%{__mkdir_p} %{buildroot}/%{software_home}/Products
%{__cp} -a * %{buildroot}%{software_home}/Products/

Sebastien Robin's avatar
Sebastien Robin committed
36
%clean
37 38 39 40 41 42 43 44 45 46 47
%{__rm} -rf %{buildroot}

%post
if [ "`%{_prefix}/bin/zopectl status`" != "daemon manager not running" ] ; then
  service zope restart
fi

%postun
if [ -f "%{_prefix}/bin/zopectl" ] && [ "`%{_prefix}/bin/zopectl status`" != "daemon manager not running" ] ; then
  service zope restart
fi
Sebastien Robin's avatar
Sebastien Robin committed
48 49

%files
50
%defattr(0644, root, root, 0755)
51
%doc %{product}/VERSION.txt
52 53
%{software_home}/Products/*

Sebastien Robin's avatar
Sebastien Robin committed
54 55
#----------------------------------------------------------------------
%changelog
Kevin Deldycke's avatar
Kevin Deldycke committed
56 57 58
* Thu Jan 26 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-1mdk
- Update to version 0.11

Kevin Deldycke's avatar
Kevin Deldycke committed
59 60 61
* Mon Jan 23 2006 Kevin Deldycke <kevin@nexedi.com> 0.10-2mdk
- CMFActivity need Timer Service Zope product

Kevin Deldycke's avatar
Kevin Deldycke committed
62 63 64
* Wed Jan 18 2006 Kevin Deldycke <kevin@nexedi.com> 0.10-1mdk
- Update to version 0.10

Kevin Deldycke's avatar
Kevin Deldycke committed
65 66 67
* Mon Jan 16 2006 Kevin Deldycke <kevin@nexedi.com> 0.9.20060116-1mdk
- New build from the CVS

68 69 70 71
* Tue Jan 10 2006 Kevin Deldycke <kevin@nexedi.com> 0.9.20060110-1mdk
- New release for Mandriva 2006
- Spec file updated

Sebastien Robin's avatar
Sebastien Robin committed
72 73 74 75 76 77
* Tue Sep 01 2004 Sebastien Robin <seb@nexedi.com> 0.8-1mdk
- Final relase for Mandrake 10.1

* Mon Jun 14 2004 Sebastien Robin <seb@nexedi.com> 0.1-2mdk
- New release for Mandrake 10.1

Sebastien Robin's avatar
Sebastien Robin committed
78 79
* Mon Feb 09 2004 Sebastien Robin <seb@nexedi.com> 0.1-1nxd
- Create the spec file