ERP5OOo.spec 1.98 KB
Newer Older
Kevin Deldycke's avatar
Kevin Deldycke committed
1
%define product ERP5OOo
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:   OpenOffice documents parser for 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: ERP5OOo
19
Requires:  erp5-zope
20 21 22

#----------------------------------------------------------------------
%description
23
General purpose tools to parse and handle OpenOffice v1.x documents in ERP5.
24 25 26

#----------------------------------------------------------------------
%prep
27
%setup -c
28 29 30

%build

31

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

37

38
%clean
39 40 41 42 43 44 45 46 47 48 49
%{__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
50 51

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

56 57
#----------------------------------------------------------------------
%changelog
Kevin Deldycke's avatar
Kevin Deldycke committed
58 59 60
* Mon Jan 30 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-3mdk
- New build from the CVS

61 62 63
* Fri Jan 27 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-2mdk
- New build from the CVS

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

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

Kevin Deldycke's avatar
Kevin Deldycke committed
70 71 72
* Mon Jan 16 2006 Kevin Deldycke <kevin@nexedi.com> 0.2.20060116-1mdk
- New build from the CVS

73 74 75 76 77
* Tue Jan 10 2006 Kevin Deldycke <kevin@nexedi.com> 0.2-1mdk
- New release for Mandriva 2006
- Spec file updated

* Sat Apr 30 2005 Kevin Deldycke <kevin@nexedi.com> 0.1-1nxd
78
- Create the spec file