ERP5Catalog.spec 2.06 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
%define product ERP5Catalog
%define version 0.9.20060110
%define release 1

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

Summary:   This Zope product for ERP5 is a catalog that filter queries
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
Requires:  erp5-zope zope-ZSQLCatalog zope-ERP5Type
Jean-Paul Smets's avatar
Jean-Paul Smets committed
19 20 21

#----------------------------------------------------------------------
%description
22
This is a Catalog that filters catalog queries. It is based on ZSQLCatalog.
Jean-Paul Smets's avatar
Jean-Paul Smets committed
23 24 25

#----------------------------------------------------------------------
%prep
26
%setup -c
Jean-Paul Smets's avatar
Jean-Paul Smets committed
27 28 29

%build

30

Jean-Paul Smets's avatar
Jean-Paul Smets committed
31
%install
32 33 34 35 36
%{__rm} -rf %{buildroot}
%{__mkdir_p} %{buildroot}/%{software_home}/Products
%{__cp} -a * %{buildroot}%{software_home}/Products/


Jean-Paul Smets's avatar
Jean-Paul Smets committed
37
%clean
38 39 40 41 42 43 44 45 46 47 48
%{__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
49 50

%files
51
%defattr(0644, root, root, 0755)
Jean-Paul Smets's avatar
Jean-Paul Smets committed
52
%doc VERSION.txt
53 54
%{software_home}/Products/*

Jean-Paul Smets's avatar
Jean-Paul Smets committed
55 56
#----------------------------------------------------------------------
%changelog
57 58 59 60
* 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
61 62 63 64 65 66
* Tue Sep 01 2004 Sebastien Robin <seb@nexedi.com> 0.8-1mdk
- Final relase for Mandrake 10.1

* Tue Feb 17 2004 Sebastien Robin <seb@nexedi.com> 0.1-5mdk
- New release for Mandrake 10.1

Sebastien Robin's avatar
Sebastien Robin committed
67 68 69
* Tue Feb 17 2004 Sebastien Robin <seb@nexedi.com> 0.1-4mdk
- Changed permissions on files

Jean-Paul Smets's avatar
Jean-Paul Smets committed
70 71 72 73 74 75 76 77
* 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