CMFCategory.spec 2.8 KB
Newer Older
1
%define product CMFCategory
Kevin Deldycke's avatar
Kevin Deldycke committed
2
%define version 0.11
Kevin Deldycke's avatar
Kevin Deldycke committed
3
%define release 3
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:   All algorithms related to categories and relations in CMF
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: CMFCategory
19
Requires:  zope zope-CMF
Jean-Paul Smets's avatar
Jean-Paul Smets committed
20 21 22 23 24 25 26 27

#----------------------------------------------------------------------
%description
Category objects allow to define classification categories
in an ERP5 portal. For example, a document may be assigned a color
attribute (red, blue, green). Rather than assigning an attribute
with a pop-up menu (which is still a possibility), we can prefer
in certain cases to associate to the object a category. In this
28
example, the category will be named color/red, color/blue or color/green.
Jean-Paul Smets's avatar
Jean-Paul Smets committed
29 30 31

#----------------------------------------------------------------------
%prep
32
%setup -c
Jean-Paul Smets's avatar
Jean-Paul Smets committed
33 34 35

%build

36

Jean-Paul Smets's avatar
Jean-Paul Smets committed
37
%install
38 39 40 41
%{__rm} -rf %{buildroot}
%{__mkdir_p} %{buildroot}/%{software_home}/Products
%{__cp} -a * %{buildroot}%{software_home}/Products/

42

Jean-Paul Smets's avatar
Jean-Paul Smets committed
43
%clean
44 45 46 47 48 49 50 51 52 53 54
%{__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
Jean-Paul Smets's avatar
Jean-Paul Smets committed
55 56

%files
Kevin Deldycke's avatar
Kevin Deldycke committed
57
%defattr(0644, zope, zope, 0755)
58
%doc %{product}/VERSION.txt
59 60
%{software_home}/Products/*

Jean-Paul Smets's avatar
Jean-Paul Smets committed
61 62
#----------------------------------------------------------------------
%changelog
Kevin Deldycke's avatar
Kevin Deldycke committed
63 64 65
* Mon Jan 30 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-3mdk
- New build from the CVS

66 67 68
* Fri Jan 27 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-2mdk
- New build from the CVS

Kevin Deldycke's avatar
Kevin Deldycke committed
69 70 71
* Thu Jan 26 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-1mdk
- Update to version 0.11

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

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

78 79 80 81
* 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
82 83 84 85 86 87
* 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-5mdk
- New release for Mandrake 10.1

Sebastien Robin's avatar
Sebastien Robin committed
88 89 90
* Tue Feb 17 2004 Sebastien Robin <seb@nexedi.com> 0.1-4mdk
- New release before mandrake 10

Jean-Paul Smets's avatar
Jean-Paul Smets committed
91 92 93 94 95 96 97 98
* Mon Sep 08 2003 Sebastien Robin <seb@nexedi.com> 0.1-3mdk
- Changed permissions on files

* Wed Sep 05 2003 Sebastien Robin <seb@nexedi.com> 0.1-2mdk
- Update spec in order to follows Mandrake Rules

* Mon May 12 2003 Sebastien Robin <seb@nexedi.com> 0.1-1nxd
- Create the spec file