ERP5Form.spec 3.31 KB
Newer Older
1
%define product ERP5Form
Kevin Deldycke's avatar
Kevin Deldycke committed
2 3
%define version 0.12
%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:   A Zope product that add easy to use form to ERP5
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: ERP5Form
Kevin Deldycke's avatar
Kevin Deldycke committed
19
Requires:  erp5-zope erp5-Formulator pdftk pychart
Jean-Paul Smets's avatar
Jean-Paul Smets committed
20 21 22 23 24 25 26 27 28 29 30

#----------------------------------------------------------------------
%description
ERP5Form extends Zope Formulator and provides a very fast way to
create forms. ERP5Form forms can be designe with a web user interface
and rendered automatically by page template. Context variables (here,
form...) are provided to each field at rendering time. Together with
ERP5Type, ERP5Form defines a fast rapid application environment.

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

%build

35

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

41

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

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

Jean-Paul Smets's avatar
Jean-Paul Smets committed
60 61
#----------------------------------------------------------------------
%changelog
Kevin Deldycke's avatar
Kevin Deldycke committed
62 63 64
* Tue May 02 2006 Kevin Deldycke <kevin@nexedi.com> 0.12-1mdk
- New build from the SVN repository

65 66 67
* Tue Apr 04 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-7mdk
- New build from the SVN repository

Kevin Deldycke's avatar
Kevin Deldycke committed
68 69 70 71
* Wed Feb 01 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-6mdk
- Give ownership to zope
- New build from the CVS

Kevin Deldycke's avatar
Kevin Deldycke committed
72 73 74 75
* Wed Feb 01 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-5mdk
- Give ownership to zope
- New build from the CVS

76 77 78
* Tue Jan 31 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-4mdk
- pdftk is required to let ERP5Form handle PDF files

Kevin Deldycke's avatar
Kevin Deldycke committed
79 80 81
* Mon Jan 30 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-3mdk
- New build from the CVS

82 83 84
* Fri Jan 27 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-2mdk
- New build from the CVS

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

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

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

94 95 96 97
* 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
98 99 100 101 102 103
* Tue Sep 01 2004 Sebastien Robin <seb@nexedi.com> 0.8-1mdk
- Final relase for Mandrake 10.1

* Thu Jun 10 2004 Sebastien Robin <seb@nexedi.com> 0.1-5mdk
- New Release for Mandrake 10.1

Sebastien Robin's avatar
Sebastien Robin committed
104 105 106
* Tue Jan 10 2004 Sebastien Robin <seb@nexedi.com> 0.1-4mdk
- Added the dependency : ZGDChart

Jean-Paul Smets's avatar
Jean-Paul Smets committed
107 108 109 110 111 112 113 114
* 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