Commit 93202171 authored by Kevin Deldycke's avatar Kevin Deldycke

Move spec files from ERP5 product to dedicated folder

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7753 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b77ae76f
%define product CMFActivity
%define version 0.12
%define release 2
%define zope_home %{_prefix}/lib/zope
%define software_home %{zope_home}/lib/python
Summary: Activity Tool for Zope
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
Conflicts: CMFActivity
Requires: zope zope-CMF zope-TimerService
#----------------------------------------------------------------------
%description
This tools add activities for Zope objects.
#----------------------------------------------------------------------
%prep
%setup -c
%build
%install
%{__rm} -rf %{buildroot}
%{__mkdir_p} %{buildroot}/%{software_home}/Products
%{__cp} -a * %{buildroot}%{software_home}/Products/
%clean
%{__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
%files
%defattr(0644, zope, zope, 0755)
%doc %{product}/VERSION.txt
%{software_home}/Products/*
#----------------------------------------------------------------------
%changelog
* Fri May 05 2006 Kevin Deldycke <kevin@nexedi.com> 0.12-2mdk
- New build from the SVN repository
* Tue May 02 2006 Kevin Deldycke <kevin@nexedi.com> 0.12-1mdk
- New build from the SVN repository
* Tue Apr 04 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-6mdk
- New build from the SVN repository
* Wed Feb 01 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-5mdk
- Give ownership to zope
- New build from the CVS
* Wed Feb 01 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-4mdk
- Give ownership to zope
- New build from the CVS
* Mon Jan 30 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-3mdk
- New build from the CVS
* Fri Jan 27 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-2mdk
- New build from the CVS
* Thu Jan 26 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-1mdk
- Update to version 0.11
* Mon Jan 23 2006 Kevin Deldycke <kevin@nexedi.com> 0.10-2mdk
- CMFActivity need Timer Service Zope product
* Wed Jan 18 2006 Kevin Deldycke <kevin@nexedi.com> 0.10-1mdk
- Update to version 0.10
* Mon Jan 16 2006 Kevin Deldycke <kevin@nexedi.com> 0.9.20060116-1mdk
- New build from the CVS
* Tue Jan 10 2006 Kevin Deldycke <kevin@nexedi.com> 0.9.20060110-1mdk
- New release for Mandriva 2006
- Spec file updated
* 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-2mdk
- New release for Mandrake 10.1
* Mon Feb 09 2004 Sebastien Robin <seb@nexedi.com> 0.1-1nxd
- Create the spec file
%define product CMFCategory
%define version 0.12
%define release 2
%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
Conflicts: CMFCategory
Requires: zope zope-CMF
#----------------------------------------------------------------------
%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
example, the category will be named color/red, color/blue or color/green.
#----------------------------------------------------------------------
%prep
%setup -c
%build
%install
%{__rm} -rf %{buildroot}
%{__mkdir_p} %{buildroot}/%{software_home}/Products
%{__cp} -a * %{buildroot}%{software_home}/Products/
%clean
%{__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
%files
%defattr(0644, zope, zope, 0755)
%doc %{product}/VERSION.txt
%{software_home}/Products/*
#----------------------------------------------------------------------
%changelog
* Fri May 05 2006 Kevin Deldycke <kevin@nexedi.com> 0.12-2mdk
- New build from the SVN repository
* Tue May 02 2006 Kevin Deldycke <kevin@nexedi.com> 0.12-1mdk
- New build from the SVN repository
* Tue Apr 04 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-6mdk
- New build from the SVN repository
* Wed Feb 01 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-5mdk
- Give ownership to zope
- New build from the CVS
* Wed Feb 01 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-4mdk
- Give ownership to zope
- New build from the CVS
* Mon Jan 30 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-3mdk
- New build from the CVS
* Fri Jan 27 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-2mdk
- New build from the CVS
* Thu Jan 26 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-1mdk
- Update to version 0.11
* Wed Jan 18 2006 Kevin Deldycke <kevin@nexedi.com> 0.10-1mdk
- Update to version 0.10
* Mon Jan 16 2006 Kevin Deldycke <kevin@nexedi.com> 0.9.20060116-1mdk
- New build from the CVS
* Tue Jan 10 2006 Kevin Deldycke <kevin@nexedi.com> 0.9.20060110-1mdk
- New release for Mandriva 2006
- Spec file updated
* 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
* Tue Feb 17 2004 Sebastien Robin <seb@nexedi.com> 0.1-4mdk
- New release before mandrake 10
* 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
%define product ERP5
%define version 0.12
%define release 2
%define zope_home %{_prefix}/lib/zope
%define software_home %{zope_home}/lib/python
Summary: A Zope framework to implement ERP software
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
Conflicts: ERP5
Requires: erp5-zope >= 2.7.8, erp5-CMFPhoto, erp5-Formulator, zope-CMFReportTool, zope-Localizer, zope-Photo, zope-ZMySQLDDA, zope-ZMySQLDA, zope-BTreeFolder2, zope-CMFMailIn, zope-ERP5Catalog, zope-ERP5Form, zope-ERP5SyncML, zope-CMFCategory, zope-ERP5Type, python-numeric, python-psyco, python-glpk, zope-CMFActivity, zope-ERP5Security, zope-ERP5OOo, zope-ExtFile, zope-TimerService, zope-FCKeditor
#----------------------------------------------------------------------
%description
ERP5 is a Zope framework which allows to implement ERP software.
It includes a Rapid Application Development system and a Universal
Business Model which together allow to model any business process in
very short time.
#----------------------------------------------------------------------
%prep
%setup -c
%build
%install
%{__rm} -rf %{buildroot}
%{__mkdir_p} %{buildroot}/%{software_home}/Products
%{__cp} -a * %{buildroot}%{software_home}/Products/
cat > README.urpmi <<EOF
ERP5 need a MySQL-Max version 5.x.x server to work properly. Because this server
can be installed on another machine, we let you the choice to install it or not.
If you want to let ERP5 working on a standalone machine, please install MySQL-Max
package and its dependancies.
EOF
%clean
%{__rm} -rf %{buildroot}
%post
mkdir /var/lib/zope/Extensions
mkdir /var/lib/zope/PropertySheet
mkdir /var/lib/zope/Constraint
mkdir /var/lib/zope/bt5
mkdir /var/lib/zope/tests
chmod -R 755 /var/lib/zope
chown -R zope:zope /var/lib/zope
ln -s %{software_home}/Products/%{product}/Extensions/zsqlbrain.py /var/lib/zope/Extensions/
ln -s %{software_home}/Products/%{product}/Extensions/InventoryBrain.py /var/lib/zope/Extensions/
mv %{software_home}/Products/%{product}/utils/cvs_update.sh /var/lib/zope/Products/
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
%files
%defattr(0644, zope, zope, 0755)
%doc %{product}/VERSION.txt %{product}/README.txt %{product}/INSTALL.txt %{product}/CREDITS.txt %{product}/GPL.txt %{product}/ZPL.txt README.urpmi
%{software_home}/Products/*
#----------------------------------------------------------------------
%changelog
* Fri May 05 2006 Kevin Deldycke <kevin@nexedi.com> 0.12-2mdk
- New build from the SVN repository
* Tue May 02 2006 Kevin Deldycke <kevin@nexedi.com> 0.12-1mdk
- New build from the SVN repository
* Tue Apr 04 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-9mdk
- New build from the SVN repository
* Mon Feb 06 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-8mdk
- Create /var/lib/zope/tests directory automaticcaly
* Wed Feb 01 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-7mdk
- Give ownership to zope
- New build from the CVS
* Wed Feb 01 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-6mdk
- Give ownership to zope
- New build from the CVS
* Mon Jan 30 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-5mdk
- Correct /var/lib/zope/ ownership and rights
* Mon Jan 30 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-4mdk
- Add missing symlink to InventoryBrain.py
* Mon Jan 30 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-3mdk
- New build from the CVS
* Fri Jan 27 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-2mdk
- New build from the CVS
- Create a bt5 folder in /var/lib/zope
* Thu Jan 26 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-1mdk
- Update to version 0.11
- Put the cvs_update script in the right place
* Wed Jan 25 2006 Kevin Deldycke <kevin@nexedi.com> 0.10-9mdk
- Add README.urpmi in %%doc
* Mon Jan 23 2006 Kevin Deldycke <kevin@nexedi.com> 0.10-8mdk
- Add a README to warn user that ERP5 need a MySQL-Max server to work
- Delete "Requires: MySQL-Max >= 5" statement
* Mon Jan 23 2006 Kevin Deldycke <kevin@nexedi.com> 0.10-7mdk
- ERP5 Zope product also need Timer Service to make Portal Alarm Working
* Mon Jan 23 2006 Kevin Deldycke <kevin@nexedi.com> 0.10-6mdk
- Fix bad symlink
* Thu Jan 19 2006 Kevin Deldycke <kevin@nexedi.com> 0.10-5mdk
- Don't need Translation Service Zope product for ERP5
* Thu Jan 19 2006 Kevin Deldycke <kevin@nexedi.com> 0.10-4mdk
- Add missing custom post-command
* Wed Jan 18 2006 Kevin Deldycke <kevin@nexedi.com> 0.10-3mdk
- Add a version to the required zope package
* Wed Jan 18 2006 Kevin Deldycke <kevin@nexedi.com> 0.10-2mdk
- Add ExtFile Zope Product as required
* Wed Jan 18 2006 Kevin Deldycke <kevin@nexedi.com> 0.10-1mdk
- Update to version 0.10
* Mon Jan 16 2006 Kevin Deldycke <kevin@nexedi.com> 0.9.20060116-1mdk
- New build from the CVS
* Tue Jan 10 2006 Kevin Deldycke <kevin@nexedi.com> 0.9.20060110-1mdk
- New release for Mandriva 2006
- Spec file updated
* Tue Sep 01 2004 Sebastien Robin <seb@nexedi.com> 0.8-1mdk
- New release for Mandrake 10.1
* Tue Jun 15 2004 Sebastien Robin <seb@nexedi.com> 0.1-26mdk
- Fix some sql queries
* Thu Jun 10 2004 Sebastien Robin <seb@nexedi.com> 0.1-25mdk
- New release for Mandrake 10.1
* Mon Nov 03 2003 Sebastien Robin <seb@nexedi.com> 0.1-24mdk
- Added dependencies to python-numeric and gplk
* Mon Sep 08 2003 Sebastien Robin <seb@nexedi.com> 0.1-23mdk
- Changed permissions on files
* Wed Sep 05 2003 Sebastien Robin <seb@nexedi.com> 0.1-22mdk
- Update spec in order to follows Mandrake Rules
* Wed May 21 2003 Sbastien Robin <seb@nexedi.com> 0.1-21nxd
- Added dependencies : python-imaging TranslationService
* Tue May 13 2003 Sbastien Robin <seb@nexedi.com> 0.1-20nxd
- Added dependencies : ERP5Catalog, ERP5Form, CMFCategory, ERP5SyncML...
- We need theses dependencies because ERP5 was splitted in several products
* Wed May 02 2003 Sbastien Robin <seb@nexedi.com> 0.1-19nxd
- Added dependencies : PyXML, python-reportlab
- Remove dependencies : python2.1-xml
* Mon Apr 28 2003 Sbastien Robin <seb@nexedi.com> 0.1-17nxd
- Added a dependency (ZMySQLDA), since ERP5 is only tested
with mysql actually. May be it should be removed afterwards.
* Wed Apr 25 2003 Sbastien Robin <seb@nexedi.com> 0.1-16nxd
- Clean this spec file in order to not copy local files
- Remove dependencies (zope-zserver)
- Add the directory Constraint
* Wed Mar 5 2003 Jean-Paul Smets <jp@nexedi.com> 0.1-15nxd
- Added missing dependencies (zope-zserver)
* Wed Mar 5 2003 Jean-Paul Smets <jp@nexedi.com> 0.1-14nxd
- Added missing dependencies (CMFReport CMFMailIn)
* Wed Mar 5 2003 Jean-Paul Smets <jp@nexedi.com> 0.1-13nxd
- Added missing dependencies (Base18)
* Tue Feb 25 2003 Jean-Paul Smets <jp@nexedi.com> 0.1-12nxd
- Added props
* Tue Feb 25 2003 Jean-Paul Smets <jp@nexedi.com> 0.1-11nxd
- Added images
* Tue Feb 25 2003 Jean-Paul Smets <jp@nexedi.com> 0.1-10nxd
- Code update
* Thu Feb 13 2003 Jean-Paul Smets <jp@nexedi.com> 0.1-9nxd
- Code update
* Mon Feb 2 2003 Jean-Paul Smets <jp@nexedi.com> 0.1-8nxd
- Added portal.gif
* Mon Feb 2 2003 Jean-Paul Smets <jp@nexedi.com> 0.1-7nxd
- Added Core
* Mon Feb 2 2003 Jean-Paul Smets <jp@nexedi.com> 0.1-6nxd
- Code update + do it again
* Thu Dec 12 2002 Jean-Paul Smets <jp@nexedi.com> 0.1-2nxd
- CVS Updates
* Mon Nov 4 2002 Jean-Paul Smets <jp@nexedi.com> 0.1-1nxd
- Initial release
%define product ERP5Catalog
%define version 0.12
%define release 2
%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
Conflicts: ERP5Catalog
Requires: erp5-zope zope-ZSQLCatalog zope-ERP5Type
#----------------------------------------------------------------------
%description
This is a Catalog that filters catalog queries. It is based on ZSQLCatalog.
#----------------------------------------------------------------------
%prep
%setup -c
%build
%install
%{__rm} -rf %{buildroot}
%{__mkdir_p} %{buildroot}/%{software_home}/Products
%{__cp} -a * %{buildroot}%{software_home}/Products/
%clean
%{__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
%files
%defattr(0644, zope, zope, 0755)
%doc %{product}/VERSION.txt
%{software_home}/Products/*
#----------------------------------------------------------------------
%changelog
* Fri May 05 2006 Kevin Deldycke <kevin@nexedi.com> 0.12-2mdk
- New build from the SVN repository
* Tue May 02 2006 Kevin Deldycke <kevin@nexedi.com> 0.12-1mdk
- New build from the SVN repository
* Tue Apr 04 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-6mdk
- New build from the SVN repository
* Wed Feb 01 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-5mdk
- Give ownership to zope
- New build from the CVS
* Wed Feb 01 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-4mdk
- Give ownership to zope
- New build from the CVS
* Mon Jan 30 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-3mdk
- New build from the CVS
* Fri Jan 27 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-2mdk
- New build from the CVS
* Thu Jan 26 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-1mdk
- Update to version 0.11
* Wed Jan 18 2006 Kevin Deldycke <kevin@nexedi.com> 0.10-1mdk
- Update to version 0.10
* Mon Jan 16 2006 Kevin Deldycke <kevin@nexedi.com> 0.9.20060116-1mdk
- New build from the CVS
* Tue Jan 10 2006 Kevin Deldycke <kevin@nexedi.com> 0.9.20060110-1mdk
- New release for Mandriva 2006
- Spec file updated
* 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
* Tue Feb 17 2004 Sebastien Robin <seb@nexedi.com> 0.1-4mdk
- Changed permissions on files
* 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
%define product ERP5Form
%define version 0.12
%define release 2
%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
Conflicts: ERP5Form
Requires: erp5-zope erp5-Formulator pdftk pychart
#----------------------------------------------------------------------
%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
%setup -c
%build
%install
%{__rm} -rf %{buildroot}
%{__mkdir_p} %{buildroot}/%{software_home}/Products
%{__cp} -a * %{buildroot}%{software_home}/Products/
%clean
%{__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
%files
%defattr(0644, zope, zope, 0755)
%doc %{product}/VERSION.txt %{product}/TODO.txt
%{software_home}/Products/*
#----------------------------------------------------------------------
%changelog
* Fri May 05 2006 Kevin Deldycke <kevin@nexedi.com> 0.12-2mdk
- New build from the SVN repository
* Tue May 02 2006 Kevin Deldycke <kevin@nexedi.com> 0.12-1mdk
- New build from the SVN repository
* Tue Apr 04 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-7mdk
- New build from the SVN repository
* Wed Feb 01 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-6mdk
- Give ownership to zope
- New build from the CVS
* Wed Feb 01 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-5mdk
- Give ownership to zope
- New build from the CVS
* Tue Jan 31 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-4mdk
- pdftk is required to let ERP5Form handle PDF files
* Mon Jan 30 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-3mdk
- New build from the CVS
* Fri Jan 27 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-2mdk
- New build from the CVS
* Thu Jan 26 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-1mdk
- Update to version 0.11
* Wed Jan 18 2006 Kevin Deldycke <kevin@nexedi.com> 0.10-1mdk
- Update to version 0.10
* Mon Jan 16 2006 Kevin Deldycke <kevin@nexedi.com> 0.9.20060116-1mdk
- New build from the CVS
* Tue Jan 10 2006 Kevin Deldycke <kevin@nexedi.com> 0.9.20060110-1mdk
- New release for Mandriva 2006
- Spec file updated
* 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
* Tue Jan 10 2004 Sebastien Robin <seb@nexedi.com> 0.1-4mdk
- Added the dependency : ZGDChart
* 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
%define product ERP5OOo
%define version 0.12
%define release 2
%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
Conflicts: ERP5OOo
Requires: erp5-zope
#----------------------------------------------------------------------
%description
General purpose tools to parse and handle OpenOffice v1.x documents in ERP5.
#----------------------------------------------------------------------
%prep
%setup -c
%build
%install
%{__rm} -rf %{buildroot}
%{__mkdir_p} %{buildroot}/%{software_home}/Products
%{__cp} -a * %{buildroot}%{software_home}/Products/
%clean
%{__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
%files
%defattr(0644, zope, zope, 0755)
%doc %{product}/VERSION.txt
%{software_home}/Products/*
#----------------------------------------------------------------------
%changelog
* Fri May 05 2006 Kevin Deldycke <kevin@nexedi.com> 0.12-2mdk
- New build from the SVN repository
* Tue May 02 2006 Kevin Deldycke <kevin@nexedi.com> 0.12-1mdk
- New build from the SVN repository
* Tue Apr 04 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-6mdk
- New build from the SVN repository
* Wed Feb 01 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-5mdk
- Give ownership to zope
- New build from the CVS
* Wed Feb 01 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-4mdk
- Give ownership to zope
- New build from the CVS
* Mon Jan 30 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-3mdk
- New build from the CVS
* Fri Jan 27 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-2mdk
- New build from the CVS
* Thu Jan 26 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-1mdk
- Update to version 0.11
* Wed Jan 18 2006 Kevin Deldycke <kevin@nexedi.com> 0.10-1mdk
- Update to version 0.10
* Mon Jan 16 2006 Kevin Deldycke <kevin@nexedi.com> 0.2.20060116-1mdk
- New build from the CVS
* 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
- Create the spec file
%define product ERP5Security
%define version 0.12
%define release 2
%define zope_home %{_prefix}/lib/zope
%define software_home %{zope_home}/lib/python
Summary: A collection of plugins for Pluggable Auth Service to manage ERP5 security
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
Conflicts: ERP5Security
Requires: erp5-zope zope-PluggableAuthService
#----------------------------------------------------------------------
%description
This zope product is a plugin to Pluggable Auth Service, to manage roles,
groups and users in ERP5. It also add fine security management features to
ERP5.
#----------------------------------------------------------------------
%prep
%setup -c
%build
%install
%{__rm} -rf %{buildroot}
%{__mkdir_p} %{buildroot}/%{software_home}/Products
%{__cp} -a * %{buildroot}%{software_home}/Products/
%clean
%{__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
%files
%defattr(0644, zope, zope, 0755)
%doc %{product}/VERSION.txt
%{software_home}/Products/*
#----------------------------------------------------------------------
%changelog
* Fri May 05 2006 Kevin Deldycke <kevin@nexedi.com> 0.12-2mdk
- New build from the SVN repository
* Tue May 02 2006 Kevin Deldycke <kevin@nexedi.com> 0.12-1mdk
- New build from the SVN repository
* Tue Apr 04 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-6mdk
- New build from the SVN repository
* Wed Feb 01 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-5mdk
- Give ownership to zope
- New build from the CVS
* Wed Feb 01 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-4mdk
- Give ownership to zope
- New build from the CVS
* Mon Jan 30 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-3mdk
- New build from the CVS
* Fri Jan 27 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-2mdk
- New build from the CVS
* Thu Jan 26 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-1mdk
- Update to version 0.11
* Wed Jan 18 2006 Kevin Deldycke <kevin@nexedi.com> 0.10-1mdk
- Update to version 0.10
* Mon Jan 16 2006 Kevin Deldycke <kevin@nexedi.com> 0.1.20060116-1mdk
- New build from the CVS
* Tue Jan 10 2006 Kevin Deldycke <kevin@nexedi.com> 0.1.20060110-1mdk
- Initial release
%define product ERP5Subversion
%define version 0.12
%define release 2
%define zope_home %{_prefix}/lib/zope
%define software_home %{zope_home}/lib/python
Summary: A zope product to integrate SVN with ERP5 to make developer life easier.
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
Conflicts: ERP5Subversion
Requires: erp5-zope pysvn
#----------------------------------------------------------------------
%description
This zope product provides a Subversion interface to ERP5.
#----------------------------------------------------------------------
%prep
%setup -c
%build
%install
%{__rm} -rf %{buildroot}
%{__mkdir_p} %{buildroot}/%{software_home}/Products
%{__cp} -a * %{buildroot}%{software_home}/Products/
%clean
%{__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
%files
%defattr(0644, zope, zope, 0755)
%doc %{product}/VERSION.txt %{product}/README.txt
%{software_home}/Products/*
#----------------------------------------------------------------------
%changelog
* Fri May 05 2006 Kevin Deldycke <kevin@nexedi.com> 0.12-2mdk
- New build from the SVN repository
* Tue May 02 2006 Kevin Deldycke <kevin@nexedi.com> 0.12-1mdk
- New build from the SVN repository
* Tue May 02 2006 Kevin Deldycke <kevin@nexedi.com> 0
- Initial release
%define product ERP5SyncML
%define version 0.12
%define release 2
%define zope_home %{_prefix}/lib/zope
%define software_home %{zope_home}/lib/python
Summary: SyncML 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
Conflicts: ERP5SyncML
Requires: erp5-zope zope-ERP5Type erp5diff
#----------------------------------------------------------------------
%description
ERP5Type contains most importants objects for ERP5. ERP5Type defines
most of methods that will be used by every object. It also implements
the Rapid Application Developpement feature used in ERP5.
#----------------------------------------------------------------------
%prep
%setup -c
%build
%install
%{__rm} -rf %{buildroot}
%{__mkdir_p} %{buildroot}/%{software_home}/Products
%{__cp} -a * %{buildroot}%{software_home}/Products/
%clean
%{__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
%files
%defattr(0644, zope, zope, 0755)
%doc %{product}/VERSION.txt
%{software_home}/Products/*
#----------------------------------------------------------------------
%changelog
* Fri May 05 2006 Kevin Deldycke <kevin@nexedi.com> 0.12-2mdk
- New build from the SVN repository
* Tue May 02 2006 Kevin Deldycke <kevin@nexedi.com> 0.12-1mdk
- New build from the SVN repository
* Tue Apr 04 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-6mdk
- New build from the SVN repository
* Wed Feb 01 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-5mdk
- Give ownership to zope
- New build from the CVS
* Wed Feb 01 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-4mdk
- Give ownership to zope
- New build from the CVS
* Mon Jan 30 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-3mdk
- New build from the CVS
* Fri Jan 27 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-2mdk
- New build from the CVS
* Thu Jan 26 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-1mdk
- Update to version 0.11
* Wed Jan 18 2006 Kevin Deldycke <kevin@nexedi.com> 0.10-1mdk
- Update to version 0.10
* Mon Jan 16 2006 Kevin Deldycke <kevin@nexedi.com> 0.9.20060116-1mdk
- New build from the CVS
* Tue Jan 10 2006 Kevin Deldycke <kevin@nexedi.com> 0.9.20060110-1mdk
- New release for Mandriva 2006
- Spec file updated
* 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 Mandkrake 10.1
* 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
%define product ERP5Type
%define version 0.12
%define release 2
%define zope_home %{_prefix}/lib/zope
%define software_home %{zope_home}/lib/python
Summary: Base objects 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
Conflicts: ERP5Type
Requires: erp5-zope
#----------------------------------------------------------------------
%description
ERP5Type contains most importants objects for ERP5. ERP5Type defines
most of methods that will be used by every object. It also implements
the Rapid Application Developpement feature used in ERP5.
#----------------------------------------------------------------------
%prep
%setup -c
%build
%install
%{__rm} -rf %{buildroot}
%{__mkdir_p} %{buildroot}/%{software_home}/Products
%{__cp} -a * %{buildroot}%{software_home}/Products/
%clean
%{__rm} -rf %{buildroot}
%post
mkdir /var/lib/zope/Document
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
%files
%defattr(0644, zope, zope, 0755)
%doc %{product}/VERSION.txt
%{software_home}/Products/*
#----------------------------------------------------------------------
%changelog
* Fri May 05 2006 Kevin Deldycke <kevin@nexedi.com> 0.12-2mdk
- New build from the SVN repository
* Tue May 02 2006 Kevin Deldycke <kevin@nexedi.com> 0.12-1mdk
- New build from the SVN repository
* Tue Apr 04 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-6mdk
- New build from the SVN repository
* Wed Feb 01 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-5mdk
- Give ownership to zope
- New build from the CVS
* Wed Feb 01 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-4mdk
- Give ownership to zope
- New build from the CVS
* Mon Jan 30 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-3mdk
- New build from the CVS
* Fri Jan 27 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-2mdk
- New build from the CVS
* Thu Jan 26 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-1mdk
- Update to version 0.11
* Thu Jan 19 2006 Kevin Deldycke <kevin@nexedi.com> 0.10-2mdk
- Add missing custom post-command
* Wed Jan 18 2006 Kevin Deldycke <kevin@nexedi.com> 0.10-1mdk
- Update to version 0.10
* Mon Jan 16 2006 Kevin Deldycke <kevin@nexedi.com> 0.9.20060116-1mdk
- New build from the CVS
* Tue Jan 10 2006 Kevin Deldycke <kevin@nexedi.com> 0.9.20060110-1mdk
- New release for Mandriva 2006
- Spec file updated
* 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 Mandkrake 10.1
* Mon Feb 09 2004 Sebastien Robin <seb@nexedi.com> 0.1-4mdk
- Updated to the last code
* 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
%define product ZSQLCatalog
%define version 0.12
%define release 2
%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
Conflicts: ZSQLCatalog
Requires: zope
#----------------------------------------------------------------------
%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
%setup -c
%build
%install
%{__rm} -rf %{buildroot}
%{__mkdir_p} %{buildroot}/%{software_home}/Products
%{__cp} -a * %{buildroot}%{software_home}/Products/
%clean
%{__rm} -rf %{buildroot}
%post
mkdir /var/lib/zope/Extensions
ln -s %{software_home}/Products/%{product}/zsqlbrain.py /var/lib/zope/Extensions/
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
%files
%defattr(0644, zope, zope, 0755)
%doc %{product}/VERSION.txt %{product}/README.txt %{product}/INSTALL.txt %{product}/CREDITS.txt %{product}/GPL.txt %{product}/ZPL.txt
%{software_home}/Products/*
#----------------------------------------------------------------------
%changelog
* Fri May 05 2006 Kevin Deldycke <kevin@nexedi.com> 0.12-2mdk
- New build from the SVN repository
* Tue May 02 2006 Kevin Deldycke <kevin@nexedi.com> 0.12-1mdk
- New build from the SVN repository
* Tue Apr 04 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-6mdk
- New build from the SVN repository
* Wed Feb 01 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-5mdk
- Give ownership to zope
- New build from the CVS
* Wed Feb 01 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-4mdk
- Give ownership to zope
- New build from the CVS
* Mon Jan 30 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-3mdk
- New build from the CVS
* Fri Jan 27 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-2mdk
- New build from the CVS
* Thu Jan 26 2006 Kevin Deldycke <kevin@nexedi.com> 0.11-1mdk
- Update to version 0.11
* Mon Jan 23 2006 Kevin Deldycke <kevin@nexedi.com> 0.10-3mdk
- Fix bad symlink
* Thu Jan 19 2006 Kevin Deldycke <kevin@nexedi.com> 0.10-2mdk
- Add missing custom post-command
* Wed Jan 18 2006 Kevin Deldycke <kevin@nexedi.com> 0.10-1mdk
- Update to version 0.10
* Mon Jan 16 2006 Kevin Deldycke <kevin@nexedi.com> 0.9.20060116-1mdk
- New build from the CVS
* Tue Jan 10 2006 Kevin Deldycke <kevin@nexedi.com> 0.9.20060110-1mdk
- New release for Mandriva 2006
- Spec file updated
* 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
* Tue Feb 17 2004 Sebatien Robin <seb@nexedi.com> 0.2.1-7mdk
- New release before Mandrake 10.0
* 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
- change in the spec file '/usr/lib' by %%{_libdir}
* 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
#!/bin/bash
PARAMS=1
# Where we can find the RPM directory
# and where we want to store the source code from svn
SVN_PATH="/home/$USER/svn"
RPM_PATH="/home/$USER/rpm"
REPOSIT="https://svn.erp5.org/repos/public/erp5/trunk/products"
# TODO: The spec repository should be moved from /ERP5/spec to /spec/Mandriva in the SVN repository
SPEC_REPOSITORY="ERP5/spec"
# Those variables are used to build the change log
PACKAGER="Kevin Deldycke"
EMAIL="kevin@nexedi.com"
LOG_MSG="- New build from the SVN repository"
if [ $# -lt "$PARAMS" ]
then
echo
echo "build-spec PACKAGE_NAME..."
exit 0
fi
while test $# -gt 0; do
####################
# Build the archive from the svn files
####################
NAME=$1
shift
echo Starting Building $NAME
# Retrieve the version in the source code as anonymous user to be sure we get published code only
cd $SVN_PATH && svn checkout $REPOSIT/$NAME && cd -
VERSION=`awk '{print $2}' $SVN_PATH/$NAME/VERSION.txt`
echo Building --$NAME-- Version --$VERSION--
rm -rf $SVN_PATH/$NAME-$VERSION/
mkdir -p $SVN_PATH/$NAME-$VERSION
cp -a $SVN_PATH/$NAME $SVN_PATH/$NAME-$VERSION
# Remove SVN extra files
find $SVN_PATH/$NAME-$VERSION/* -name ".svn" | xargs rm -rf
# Create the archive
cd $SVN_PATH/$NAME-$VERSION && tar jcvf $NAME-$VERSION.tar.bz2 $NAME && cd -
mv -f $SVN_PATH/$NAME-$VERSION/$NAME-$VERSION.tar.bz2 $RPM_PATH/SOURCES/$NAME-$VERSION.tar.bz2
rm -rf $SVN_PATH/$NAME-$VERSION
TMP_SPEC="/tmp/$NAME-$VERSION-tmp.spec"
rm -f $TMP_SPEC
touch $TMP_SPEC
####################
# Get data from the previous spec file commited in the SVN repository
####################
# Now we will regenerate a spec file skeleton based on the one stored in the SVN.
# This spec file need to be modified by hand to get
cd $SVN_PATH
rm -rf $NAME.spec
wget --no-check-certificate $REPOSIT/$SPEC_REPOSITORY/$NAME.spec
SVN_SPEC_FILE="$NAME.spec"
# Get summary and required packages
SUMMARY=`grep "^Summary*" $SVN_SPEC_FILE`
REQUIRES=`grep "^Requires*" $SVN_SPEC_FILE`
# Get the description and changelog from the previous spec file
L_SECTIONS=`grep -hn "#----------------------------------------------------------------------" $SVN_SPEC_FILE | sed -e "s/:/ /g" | awk '{print $1}'`
L_DESC_START=`echo $L_SECTIONS | awk '{print $1}'`
L_DESC_STOP=` echo $L_SECTIONS | awk '{print $2}'`
L_CHANGELOG=` echo $L_SECTIONS | awk '{print $3}'`
L_CORE_START=$L_DESC_STOP
L_CORE_STOP=$L_CHANGELOG
L_TOTAL=`wc -l $SVN_SPEC_FILE | awk '{print $1}'`
DESC_HEAD=`expr $L_DESC_STOP - 1`
DESC_TAIL=`expr $L_DESC_STOP - $L_DESC_START - 2`
CORE_HEAD=`expr $L_CORE_STOP - 1`
CORE_TAIL=`expr $L_CORE_STOP - $L_CORE_START - 1`
CLOG_TAIL=`expr $L_TOTAL - $L_CHANGELOG - 1`
DESCRIPTION=`head -n $DESC_HEAD $SVN_SPEC_FILE | tail -n $DESC_TAIL`
SPEC_CORE=`head -n $CORE_HEAD $SVN_SPEC_FILE | tail -n $CORE_TAIL`
CHANGELOG=`tail -n $CLOG_TAIL $SVN_SPEC_FILE`
TODAY=`env LC_TIME=en date +"%a %b %d %Y"`
# Increase the rpm release number if needed
PREVIOUS_VERSION=`grep "^%define version*" $SVN_SPEC_FILE | awk '{print $3}'`
PREVIOUS_REL=`grep "^%define release*" $SVN_SPEC_FILE | awk '{print $3}'`
if test "x$VERSION" = "x$PREVIOUS_VERSION"; then
RELEASE=`expr $PREVIOUS_REL + 1`
else
RELEASE="1"
fi
MKREL=`rpm --with unstable --eval "%mkrel $RELEASE"`
####################
# Build the spec file using the following template
####################
echo "%define product $NAME
%define version $VERSION
%define release $RELEASE
%define zope_home %{_prefix}/lib/zope
%define software_home %{zope_home}/lib/python
$SUMMARY
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
Conflicts: $NAME
$REQUIRES
#----------------------------------------------------------------------
%description
$DESCRIPTION
#----------------------------------------------------------------------
$SPEC_CORE
#----------------------------------------------------------------------
%changelog
* $TODAY $PACKAGER <$EMAIL> $VERSION-$MKREL
$LOG_MSG
$CHANGELOG" >> $TMP_SPEC
# now we can replace the spec file
rm -f $RPM_PATH/SPECS/$NAME.spec
mv -f $TMP_SPEC $RPM_PATH/SPECS/$NAME.spec
# rpmbuild -ba $RPM_PATH/SPECS/$NAME.spec
# A rpmlint can be launch here.
echo "-------------"
echo "Please commit the new $NAME.spec file in the Nexedi repository ($REPOSIT)"
echo "-------------"
done
exit 0
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment