ZSQLCatalog.spec 4.01 KB
Newer Older
1
%define product ZSQLCatalog
Kevin Deldycke's avatar
Kevin Deldycke committed
2
%define version 0.11
Kevin Deldycke's avatar
Kevin Deldycke committed
3
%define release 5
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 to search the Zope database with SQL requests
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: ZSQLCatalog
19
Requires:  zope
Jean-Paul Smets's avatar
Jean-Paul Smets committed
20 21 22 23 24 25 26 27 28

#----------------------------------------------------------------------
%description
ZSQLCatalog is a Zope product which allows to search the Zope database
with SQL requests. It replaces the standard Zope Catalog with a meta-catalog
which can be connected to any SQL relationnal database through ZSQLMethods.

#----------------------------------------------------------------------
%prep
29
%setup -c
Jean-Paul Smets's avatar
Jean-Paul Smets committed
30

31
%build
Jean-Paul Smets's avatar
Jean-Paul Smets committed
32

33

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

39

Jean-Paul Smets's avatar
Jean-Paul Smets committed
40
%clean
41 42 43
%{__rm} -rf %{buildroot}

%post
Kevin Deldycke's avatar
Kevin Deldycke committed
44
mkdir /var/lib/zope/Extensions
Kevin Deldycke's avatar
Kevin Deldycke committed
45
ln -s %{software_home}/Products/%{product}/zsqlbrain.py /var/lib/zope/Extensions/
46 47 48 49 50 51 52 53
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}/README.txt %{product}/INSTALL.txt %{product}/CREDITS.txt %{product}/GPL.txt %{product}/ZPL.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 65
* Wed Feb 01 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-5mdk
- Give ownership to zope
- New build from the CVS

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

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

73 74 75
* Fri Jan 27 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-2mdk
- New build from the CVS

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

Kevin Deldycke's avatar
Kevin Deldycke committed
79 80 81
* Mon Jan 23 2006 Kevin Deldycke <kevin@nexedi.com> 0.10-3mdk
- Fix bad symlink

Kevin Deldycke's avatar
Kevin Deldycke committed
82 83 84
* Thu Jan 19 2006 Kevin Deldycke <kevin@nexedi.com> 0.10-2mdk
- Add missing custom post-command

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

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

91 92 93 94
* 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
95 96 97 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.2.1-9mdk
- Fix user permission

* Thu Jun 10 2004 Sebastien Robin <seb@nexedi.com> 0.2.1-8mdk
- New Release For Mandkrake 10.1

Sebastien Robin's avatar
Sebastien Robin committed
104 105 106
* Tue Feb 17 2004 Sebatien Robin <seb@nexedi.com> 0.2.1-7mdk
- New release before Mandrake 10.0

Jean-Paul Smets's avatar
Jean-Paul Smets committed
107 108 109 110 111
* Mon Sep 08 2003 Sebatien Robin <seb@nexedi.com> 0.2.1-6mdk
- The content of this package was not updated because
  of a problem with the script which create the rpm

* Thu Sep 04 2003 Sebatien Robin <seb@nexedi.com> 0.2.1-5mdk
112
- change in the spec file '/usr/lib' by %%{_libdir}
Jean-Paul Smets's avatar
Jean-Paul Smets committed
113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136

* Thu Sep 04 2003 Sbastien Robin <seb@nexedi.com> 0.2.1-4mdk
- Update spec in order to follows Mandrake Rules

* Tue Jun 26 2003 Sbastien Robin <seb@nexedi.com> 0.2.1-3nxd
- Add the zsqlbrain in /var/lib/zope/Extensions

* Wed Apr 25 2003 Sbastien Robin <seb@nexedi.com> 0.2.1-2nxd
- Clean the spec file

* Wed Apr 9 2003 Jean-Paul Smets <jp@nexedi.com> 0.2.1-1nxd
- Updated source

* Wed Jan 8 2003 Jean-Paul Smets <jp@nexedi.com> 0.2.0-5nxd
- Added brain

* Wed Jan 8 2003 Jean-Paul Smets <jp@nexedi.com> 0.2.0-4nxd
- Code update

* Thu Dec 12 2002 Jean-Paul Smets <jp@nexedi.com> 0.2.0-2nxd
- Initial release

* Sat Oct 12 2002 Jean-Paul Smets <jp@nexedi.com> 0.1.0-1nxd
- Initial release