Commit 861ee72b authored by Sebastien Robin's avatar Sebastien Robin

first submission


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@462 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5044d369
Name: CMFActivity
Summary: Activity Tool for zope
Version: 0.1
Release: 1mdk
Group: Development/Python
Requires: zope
License: GPL
URL: http://www.erp5.org
Packager: Sebastien Robin <seb@nexedi.com>
BuildRoot: %{_tmppath}/%{name}-%{version}-rootdir
Buildarch: noarch
Source: %{name}-%{version}.tar.bz2
#----------------------------------------------------------------------
%description
This tools allows to implement activities for zope objects.
http://www.erp5.org
#----------------------------------------------------------------------
%prep
rm -rf $RPM_BUILD_ROOT
%setup -a 0
#----------------------------------------------------------------------
%build
#----------------------------------------------------------------------
%install
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/
install %{name}-%{version}/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/
install %{name}-%{version}/*.txt $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/
install %{name}-%{version}/*.png $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Activity
install %{name}-%{version}/Activity/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Activity
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Constraint
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Document
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/dtml
install %{name}-%{version}/dtml/*.dtml $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/dtml
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/help
install %{name}-%{version}/help/*.stx $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/help
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/Interface
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/PropertySheet
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/activity
install %{name}-%{version}/skins/activity/*.zsql $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/skins/activity
%clean
rm -rf $RPM_BUILD_ROOT
#----------------------------------------------------------------------
%files
%defattr(-,zope,zope,0755)
%doc VERSION.txt
%{_libdir}/zope/lib/python/Products/%{name}/
#----------------------------------------------------------------------
%changelog
* Mon Feb 09 2004 Sebastien Robin <seb@nexedi.com> 0.1-1nxd
- Create the spec file
Name: CPS
Summary: internal or external web content strategy in a collaborative approach
Version: 3.0b3
Release: 1mdk
Group: Development/Python
Requires: zope BTreeFolder2 Localizer TranslationService
License: GPL
URL: http://www.cps-project.org
Packager: Sebastien Robin <seb@nexedi.com>
BuildRoot: %{_tmppath}/%{name}-%{version}-rootdir
Buildarch: noarch
Source: %{name}-%{version}.tar.bz2
#----------------------------------------------------------------------
%description
Collaborative Portal Server (CPS), Nuxeo's flagship solution, empowers
your internal or external web content strategy in a collaborative
approach. CPS is the ideal solution to create, share and turn the
information of your organisation into value.
#----------------------------------------------------------------------
%prep
rm -rf $RPM_BUILD_ROOT
%setup -a 0
#----------------------------------------------------------------------
%build
#----------------------------------------------------------------------
%install
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSCore
install %{name}-%{version}/CPSCore/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSCore
install %{name}-%{version}/CPSCore/*.txt $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSCore
install %{name}-%{version}/CPSCore/*.gif $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSCore
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSCore/doc
install %{name}-%{version}/CPSCore/doc/*.stx $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSCore/doc
install %{name}-%{version}/CPSCore/doc/*.html $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSCore/doc
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSCore/zmi
install %{name}-%{version}/CPSCore/zmi/*.dtml $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSCore/zmi
install %{name}-%{version}/CPSCore/zmi/*.gif $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSCore/zmi
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSCore/drafts
install %{name}-%{version}/CPSCore/drafts/*.txt $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSCore/drafts
install %{name}-%{version}/CPSCore/drafts/*.stx $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSCore/drafts
install %{name}-%{version}/CPSCore/drafts/*.css $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSCore/drafts
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSCore/tests
install %{name}-%{version}/CPSCore/tests/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSCore/tests
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDefault
install %{name}-%{version}/CPSDefault/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDefault
install %{name}-%{version}/CPSDefault/*.txt $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDefault
install %{name}-%{version}/CPSDefault/*.gif $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDefault
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDefault/Extensions
install %{name}-%{version}/CPSDefault/Extensions/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDefault/Extensions
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDefault/doc
install %{name}-%{version}/CPSDefault/doc/*.txt $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDefault/doc
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDefault/doc/__internal__
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDefault/i18n
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDefault/skins
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDefault/skins/cps_default
install %{name}-%{version}/CPSDefault/skins/cps_default/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDefault/skins/cps_default
install %{name}-%{version}/CPSDefault/skins/cps_default/*.dtml $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDefault/skins/cps_default
install %{name}-%{version}/CPSDefault/skins/cps_default/*.png $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDefault/skins/cps_default
install %{name}-%{version}/CPSDefault/skins/cps_default/*.pt $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDefault/skins/cps_default
install %{name}-%{version}/CPSDefault/skins/cps_default/*.gif $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDefault/skins/cps_default
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDefault/skins/cps_devel
install %{name}-%{version}/CPSDefault/skins/cps_devel/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDefault/skins/cps_devel
install %{name}-%{version}/CPSDefault/skins/cps_devel/*.pt $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDefault/skins/cps_devel
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDefault/skins/cps_images
install %{name}-%{version}/CPSDefault/skins/cps_images/*.png $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDefault/skins/cps_images
install %{name}-%{version}/CPSDefault/skins/cps_images/*.gif $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDefault/skins/cps_images
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDefault/skins/cps_javascript
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDefault/skins/cps_styles
install %{name}-%{version}/CPSDefault/skins/cps_styles/*.dtml $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDefault/skins/cps_styles
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDefault/skins/cps_styles/nuxeo
install %{name}-%{version}/CPSDefault/skins/cps_styles/nuxeo/*.png $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDefault/skins/cps_styles/nuxeo
install %{name}-%{version}/CPSDefault/skins/cps_styles/nuxeo/*.gif $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDefault/skins/cps_styles/nuxeo
install %{name}-%{version}/CPSDefault/skins/cps_styles/nuxeo/*.props $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDefault/skins/cps_styles/nuxeo
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDefault/skins/cps_styles/nuxeo_ns4
install %{name}-%{version}/CPSDefault/skins/cps_styles/nuxeo_ns4/*.pt $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDefault/skins/cps_styles/nuxeo_ns4
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDefault/tests
install %{name}-%{version}/CPSDefault/tests/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDefault/tests
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDefault/tests/puffin
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDefault/zmi
install %{name}-%{version}/CPSDefault/zmi/*.dtml $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDefault/zmi
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDocument
install %{name}-%{version}/CPSDocument/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDocument
install %{name}-%{version}/CPSDocument/*.txt $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDocument
install %{name}-%{version}/CPSDocument/*.png $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDocument
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDocument/Extensions
install %{name}-%{version}/CPSDocument/Extensions/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDocument/Extensions
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDocument/doc
install %{name}-%{version}/CPSDocument/doc/*.txt $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDocument/doc
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDocument/i18n
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDocument/skins
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDocument/skins/cps_document
install %{name}-%{version}/CPSDocument/skins/cps_document/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDocument/skins/cps_document
install %{name}-%{version}/CPSDocument/skins/cps_document/*.dtml $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDocument/skins/cps_document
install %{name}-%{version}/CPSDocument/skins/cps_document/*.pt $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDocument/skins/cps_document
install %{name}-%{version}/CPSDocument/skins/cps_document/*.gif $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDocument/skins/cps_document
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDocument/tests
install %{name}-%{version}/CPSDocument/tests/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDocument/tests
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDocument/zmi
install %{name}-%{version}/CPSDocument/zmi/*.dtml $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSDocument/zmi
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSSchemas
install %{name}-%{version}/CPSSchemas/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSSchemas
install %{name}-%{version}/CPSSchemas/*.txt $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSSchemas
install %{name}-%{version}/CPSSchemas/*.gif $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSSchemas
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSSchemas/Extensions
install %{name}-%{version}/CPSSchemas/Extensions/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSSchemas/Extensions
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSSchemas/doc
install %{name}-%{version}/CPSSchemas/doc/*.txt $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSSchemas/doc
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSSchemas/i18n
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSSchemas/skins
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSSchemas/skins/cps_jscalendar
install %{name}-%{version}/CPSSchemas/skins/cps_jscalendar/*.gif $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSSchemas/skins/cps_jscalendar
install %{name}-%{version}/CPSSchemas/skins/cps_jscalendar/*.css $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSSchemas/skins/cps_jscalendar
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSSchemas/skins/cps_jscalendar/lang
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSSchemas/skins/cps_schemas
install %{name}-%{version}/CPSSchemas/skins/cps_schemas/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSSchemas/skins/cps_schemas
install %{name}-%{version}/CPSSchemas/skins/cps_schemas/*.pt $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSSchemas/skins/cps_schemas
install %{name}-%{version}/CPSSchemas/skins/cps_schemas/*.gif $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSSchemas/skins/cps_schemas
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSSchemas/tests
install %{name}-%{version}/CPSSchemas/tests/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSSchemas/tests
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSSchemas/zmi
install %{name}-%{version}/CPSSchemas/zmi/*.dtml $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/CPSSchemas/zmi
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/Epoz
install %{name}-%{version}/Epoz/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/Epoz
install %{name}-%{version}/Epoz/*.txt $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/Epoz
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/Epoz/skins
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/Epoz/skins/epoz
install %{name}-%{version}/Epoz/skins/epoz/*.dtml $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/Epoz/skins/epoz
install %{name}-%{version}/Epoz/skins/epoz/*.pt $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/Epoz/skins/epoz
install %{name}-%{version}/Epoz/skins/epoz/*.gif $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/Epoz/skins/epoz
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/Epoz/Extensions
install %{name}-%{version}/Epoz/Extensions/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/Epoz/Extensions
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/NuxMetaDirectories
install %{name}-%{version}/NuxMetaDirectories/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/NuxMetaDirectories
install %{name}-%{version}/NuxMetaDirectories/*.txt $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/NuxMetaDirectories
install %{name}-%{version}/NuxMetaDirectories/*.gif $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/NuxMetaDirectories
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/NuxMetaDirectories/i18n
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/NuxMetaDirectories/zmi
install %{name}-%{version}/NuxMetaDirectories/zmi/*.dtml $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/NuxMetaDirectories/zmi
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/NuxMetaDirectories/import
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/NuxMetaDirectories/skins
install %{name}-%{version}/NuxMetaDirectories/skins/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/NuxMetaDirectories/skins
install %{name}-%{version}/NuxMetaDirectories/skins/*.pt $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/NuxMetaDirectories/skins
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/NuxMetaDirectories/skins/cps_nuxmetadirectories
install %{name}-%{version}/NuxMetaDirectories/skins/cps_nuxmetadirectories/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/NuxMetaDirectories/skins/cps_nuxmetadirectories
install %{name}-%{version}/NuxMetaDirectories/skins/cps_nuxmetadirectories/*.pt $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/NuxMetaDirectories/skins/cps_nuxmetadirectories
install %{name}-%{version}/NuxMetaDirectories/skins/cps_nuxmetadirectories/*.gif $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/NuxMetaDirectories/skins/cps_nuxmetadirectories
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/NuxUserGroups
install %{name}-%{version}/NuxUserGroups/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/NuxUserGroups
install %{name}-%{version}/NuxUserGroups/*.txt $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/NuxUserGroups
install %{name}-%{version}/NuxUserGroups/*.gif $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/NuxUserGroups
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/NuxUserGroups/zmi
install %{name}-%{version}/NuxUserGroups/zmi/*.dtml $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/NuxUserGroups/zmi
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/OrderedFolderSupportPatch
install %{name}-%{version}/OrderedFolderSupportPatch/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/OrderedFolderSupportPatch
install %{name}-%{version}/OrderedFolderSupportPatch/*.txt $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/OrderedFolderSupportPatch
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/PortalTransforms
install %{name}-%{version}/PortalTransforms/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/PortalTransforms
install %{name}-%{version}/PortalTransforms/*.txt $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/PortalTransforms
install %{name}-%{version}/PortalTransforms/*.gif $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/PortalTransforms
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/PortalTransforms/CVS/Base
install %{name}-%{version}/PortalTransforms/CVS/Base/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/PortalTransforms/CVS/Base
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/PortalTransforms/bin
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/PortalTransforms/www
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/PortalTransforms/www/CVS/Base
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/PortalTransforms/docs
install %{name}-%{version}/PortalTransforms/docs/*.html $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/PortalTransforms/docs
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/PortalTransforms/docs/CVS/Base
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/PortalTransforms/zope
install %{name}-%{version}/PortalTransforms/zope/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/PortalTransforms/zope
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/PortalTransforms/zope/CVS/Base
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/PortalTransforms/transforms
install %{name}-%{version}/PortalTransforms/transforms/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/PortalTransforms/transforms
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/PortalTransforms/transforms/CVS/Base
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/PortalTransforms/skins
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/PortalTransforms/skins/mimetypes_icons
install %{name}-%{version}/PortalTransforms/skins/mimetypes_icons/*.png $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/PortalTransforms/skins/mimetypes_icons
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/PortalTransforms/tests
install %{name}-%{version}/PortalTransforms/tests/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/PortalTransforms/tests
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/PortalTransforms/tests/CVS/Base
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/PortalTransforms/tests/input
install %{name}-%{version}/PortalTransforms/tests/input/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/PortalTransforms/tests/input
install %{name}-%{version}/PortalTransforms/tests/input/*.html $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/PortalTransforms/tests/input
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/PortalTransforms/tests/output
install %{name}-%{version}/PortalTransforms/tests/output/*.txt $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/PortalTransforms/tests/output
install %{name}-%{version}/PortalTransforms/tests/output/*.html $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/PortalTransforms/tests/output
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/PortalTransforms/libtransforms
install %{name}-%{version}/PortalTransforms/libtransforms/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/PortalTransforms/libtransforms
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/PortalTransforms/Extensions
install %{name}-%{version}/PortalTransforms/Extensions/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/PortalTransforms/Extensions
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/PortalTransforms/mime_types
install %{name}-%{version}/PortalTransforms/mime_types/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/PortalTransforms/mime_types
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/PortalTransforms/mime_types/CVS/Base
install %{name}-%{version}/PortalTransforms/mime_types/CVS/Base/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/PortalTransforms/mime_types/CVS/Base
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/PortalTransforms/unsafe_transforms
install %{name}-%{version}/PortalTransforms/unsafe_transforms/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/PortalTransforms/unsafe_transforms
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/PortalTransforms/unsafe_transforms/CVS/Base
%clean
rm -rf $RPM_BUILD_ROOT
#----------------------------------------------------------------------
%files
%defattr(-,zope,zope,0755)
%doc INSTALL.txt UPGRADE.txt COPYRIGHT.txt COPYING.txt CHANGES
%{_libdir}/zope/lib/python/Products/CPSCore/
%{_libdir}/zope/lib/python/Products/CPSDefault/
%{_libdir}/zope/lib/python/Products/CPSDocument/
%{_libdir}/zope/lib/python/Products/CPSSchemas/
%{_libdir}/zope/lib/python/Products/Epoz/
%{_libdir}/zope/lib/python/Products/NuxMetaDirectories/
%{_libdir}/zope/lib/python/Products/NuxUserGroups/
%{_libdir}/zope/lib/python/Products/OrderedFolderSupportPatch/
%{_libdir}/zope/lib/python/Products/PortalTransforms/
#----------------------------------------------------------------------
%changelog
* Tue Feb 06 2004 Sebastien Robin <seb@nexedi.com> 3.0b3-1mdk
- Initial Release
%define name FunctionalTests
%define version 0.4
%define release 1nxd
Summary: Functional Testing module for Zope
Name: %{name}
Version: %{version}
Release: %{release}
License: ZPL
URL: http://www.zope.org/Members/tseaver/FunctionalTests
Group: Development/Python
Source0: FunctionalTests-%{version}.tar.bz2
Patch1: FunctionalTests-0.4-python-path.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
Requires: python >= 2.1
%description
FunctionalTests is an automated framework for recording and replaying
"functional" tests of a Zope web application. Requests can be either
HTTP requests, including authentication, cookies, and form variables,
or ZEO-based Python functions (especially useful for
setup/teardown/postcondition implementations).
%prep
%setup -q
%patch1 -p1
%build
python setup.py build
%install
rm -rf %{buildroot}
python setup.py install --root=%{buildroot}
%clean
rm -rf %{buildroot}
%files
%defattr(-, root, root)
%doc doc/* examples
%{_libdir}/python*/site-packages/*
%{_bindir}/ft*
%changelog
* Mon Nov 17 2003 Yoshinori OKUJI <yo@nexedi.com> 0.4-1nxd
- initial version
Name: ZGDChart
Summary: gdchart-based product to draw charts in zope
Version: 0.6.4
Release: 1mdk
Group: Development/Python
Requires: zope
License: GPL
URL: http://www.zope.org/Members/teyc/ZGDChart
Packager: Sebastien Robin <seb@nexedi.com>
BuildRoot: %{_tmppath}/%{name}-%{version}-rootdir
Buildarch: noarch
Source: %{name}-%{version}.tar.bz2
#----------------------------------------------------------------------
%description
A simple chart class which generates plots dynamically using data from
DTML or ZSQL. The output image format is PNG. For the SQL case, the
chart plots the first two columns of a SQL query result.
#----------------------------------------------------------------------
%prep
rm -rf $RPM_BUILD_ROOT
%setup -a 0
#----------------------------------------------------------------------
%build
#----------------------------------------------------------------------
%install
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}
install %{name}-%{version}/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}
install %{name}-%{version}/*.so $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}
install %{name}-%{version}/setup $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}
install %{name}-%{version}/*.gif $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}
install %{name}-%{version}/*.pyd $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}
install %{name}-%{version}/*.bat $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/www
install %{name}-%{version}/www/*.gif $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/www
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/test
install %{name}-%{version}/test/*.html $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/test
install %{name}-%{version}/test/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/test
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/temp
install %{name}-%{version}/temp/*.pyd $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/temp
install %{name}-%{version}/temp/*.so $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/temp
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/manage
install %{name}-%{version}/manage/*.js $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/manage
install %{name}-%{version}/manage/*.dtml $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/manage
install %{name}-%{version}/manage/editPie $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/manage
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/import
install %{name}-%{version}/import/*.zexp $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/import
install %{name}-%{version}/import/*.xml $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/import
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/solaris
install %{name}-%{version}/solaris/*.so $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/solaris
install %{name}-%{version}/solaris/*.txt $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/solaris
install -d $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/help
install %{name}-%{version}/help/*.stx $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/help
install %{name}-%{version}/help/*.py $RPM_BUILD_ROOT%{_libdir}/zope/lib/python/Products/%{name}/help
%clean
rm -rf $RPM_BUILD_ROOT
#----------------------------------------------------------------------
%files
%defattr(-,root,root,0755)
%doc CHANGES.TXT README.txt version.txt
%{_libdir}/zope/lib/python/Products/%{name}/
#----------------------------------------------------------------------
%changelog
* Tue Feb 10 2004 Sebastien Robin <seb@nexedi.com> 0.6.4-1nxd
- Initial release
#!/bin/bash
PARAMS=1
# Where we can find the RPM directory
# and where we want to store the source code from cvs
CVS_PATH=/home/$USER/cvs
RPM_PATH=/home/$USER/rpm
PRODUCT_PATH=%{_libdir}/zope/lib/python/Products/
FULL_RPM_BUILD_ROOT=\$RPM_BUILD_ROOT$PRODUCT_PATH
if [ $# -lt "$PARAMS" ] || [ $# -gt "$PARAMS" ]
then
echo
echo "Give me exactly $PARAMS command-line arguments!"
echo "build-rpm PACKAGE_NAME"
exit 0
fi
if [ -n "$1" ]
then
echo Starting Building $1
NAME=$1
VERSION=3.0b3
cd $CVS_PATH && tar jcvf $NAME-$VERSION.tar.bz2 $NAME-$VERSION && cd -
cp $CVS_PATH/$NAME-$VERSION.tar.bz2 $RPM_PATH/SOURCES/
# Remove theses text files in order to hack a small error
mv -f $CVS_PATH/$NAME-$VERSION/COPYING.txt /tmp
mv -f $CVS_PATH/$NAME-$VERSION/COPYRIGHT.txt /tmp
mv -f $CVS_PATH/$NAME-$VERSION/INSTALL.txt /tmp
mv -f $CVS_PATH/$NAME-$VERSION/UPGRADE.txt /tmp
# We will generate one part of the spec file, so we make sure
# to not forget any file
# Generate the folder tree
rm -f /tmp/build-rpm-install.tmp
rm -f /tmp/build-rpm-files.tmp
rm -f /tmp/build-rpm-spec.tmp
for directory in "" `cd $CVS_PATH/$NAME-$VERSION && find * -type d -not -name "CVS" && cd -`
do echo install -d $FULL_RPM_BUILD_ROOT/$directory | sed -e "s/\/\//\//g" >> /tmp/build-rpm-install.tmp
# then add files we want to include into the rpm
for file_type in py dtml txt png pt stx form zsql gif jpg css html props
do if (ls $CVS_PATH/$NAME-$VERSION/$directory/*.$file_type > /dev/null 2>&1)
then echo install %{name}-%{version}/$directory/*.$file_type $FULL_RPM_BUILD_ROOT/$directory | sed -e "s/\/\//\//g" >> /tmp/build-rpm-install.tmp
fi
done
done
cp /tmp/COPYING.txt /$CVS_PATH/$NAME-$VERSION/
cp /tmp/COPYRIGHT.txt /$CVS_PATH/$NAME-$VERSION/
cp /tmp/INSTALL.txt /$CVS_PATH/$NAME-$VERSION/
cp /tmp/UPGRADE.txt /$CVS_PATH/$NAME-$VERSION/
for directory in `cd $CVS_PATH/$NAME-$VERSION && find * -type d -maxdepth 0 && cd -`
do echo $PRODUCT_PATH$directory/ >> /tmp/build-rpm-files.tmp
done
# now we will regenerate the spec file
# The line where we have %install
L_INSTALL=`grep -n "%install" $NAME.spec| sed -e "s/:/ /g" |awk '{print $1}'`
# The line where we have %clean
L_CLEAN=`grep -n "%clean" $NAME.spec| sed -e "s/:/ /g" |awk '{print $1}'`
# The line where we have %doc
L_DOC=`grep -n "%doc" $NAME.spec| sed -e "s/:/ /g" |awk '{print $1}'`
# The line where we have %changelog
L_CHANGELOG=`grep -n "%changelog" $NAME.spec| sed -e "s/:/ /g" |awk '{print $1}'`
# The total number of lines
L_TOTAL=`wc -l $NAME.spec | awk '{print $1}'`
# Take the head of the file
head -n $L_INSTALL $NAME.spec > /tmp/build-rpm-spec.tmp
cat /tmp/build-rpm-install.tmp >> /tmp/build-rpm-spec.tmp
head -n $L_DOC $NAME.spec | tail -n `expr $L_DOC - $L_CLEAN + 1` >> /tmp/build-rpm-spec.tmp
cat /tmp/build-rpm-files.tmp >> /tmp/build-rpm-spec.tmp
echo "#----------------------------------------------------------------------" >> /tmp/build-rpm-spec.tmp
tail -n `expr $L_TOTAL - $L_CHANGELOG + 1` $NAME.spec >> /tmp/build-rpm-spec.tmp
# now we can replace the spec file
cp -f /tmp/build-rpm-spec.tmp $RPM_PATH/SPECS/$NAME.spec
fi
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