[openerp-client] Initial import

leamas leamas at fedoraproject.org
Thu Jun 21 17:22:44 UTC 2012


commit 229018c06df13f5dfecc0a62a81846d2d2b5f899
Author: Alec Leamas <alec at tests.notat.diaspora.com>
Date:   Thu Jun 21 19:22:23 2012 +0200

    Initial import

 .gitignore               |    1 +
 openerp-client-licensing |   12 +++++
 openerp-client.desktop   |   11 ++++
 openerp-client.spec      |  122 ++++++++++++++++++++++++++++++++++++++++++++++
 sources                  |    1 +
 5 files changed, 147 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..70d7a4f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/openerp-client-6.1-1.tar.gz
diff --git a/openerp-client-licensing b/openerp-client-licensing
new file mode 100644
index 0000000..4e28c30
--- /dev/null
+++ b/openerp-client-licensing
@@ -0,0 +1,12 @@
+Except as stated below, all files ar AGPLv3+
+
+GPLv3+ files:
+------------
+./bin/widget_search/filter.py: GPL (v3 or later)
+./bin/widget_search/custom_filter.py: GPL (v3 or later)
+./bin/widget/view/list.py: GPL (v3 or later)
+./bin/release.py: GPL (v3 or later)
+
+LGPLv3+ files:
+--------------
+./bin/widget/view/diagram_gtk/xdot.py: LGPL (v3 or later)
diff --git a/openerp-client.desktop b/openerp-client.desktop
new file mode 100644
index 0000000..4dea4f6
--- /dev/null
+++ b/openerp-client.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Version=1.0
+Name=OpenERP
+GenericName=GTK ERP Client
+Comment=A gtk client for the open source ERP
+Exec=/usr/bin/openerp-client
+Icon=openerp-icon
+Terminal=false
+Type=Application
+StartupNotify=true
+Categories=Office;GNOME;GTK;
diff --git a/openerp-client.spec b/openerp-client.spec
new file mode 100644
index 0000000..4c94a73
--- /dev/null
+++ b/openerp-client.spec
@@ -0,0 +1,122 @@
+Name:           openerp-client
+Version:        6.1
+Release:        2%{?dist}
+                # See LICENSING
+License:        AGPLv3 and GPLv3+ and LGPLv3+
+Group:          Applications/Databases
+Summary:        Business Applications Server Client
+URL:            http://www.openerp.com
+Source0:        http://nightly.openerp.com/%{version}/releases/%{name}-%{version}-1.tar.gz
+Source1:        %{name}.desktop
+Source2:        %{name}-licensing
+BuildArch:      noarch
+
+BuildRequires:  desktop-file-utils
+BuildRequires:  gettext
+BuildRequires:  libxslt-python
+BuildRequires:  pygtk2-devel
+BuildRequires:  python-setuptools
+BuildRequires:  python-tools
+BuildRequires:  python2-devel
+
+Requires:       hippo-canvas-python
+Requires:       mx
+Requires:       pydot
+Requires:       pygobject2
+Requires:       pygtk2-libglade
+Requires:       python-dateutil
+Requires:       python-lxml
+Requires:       python-matplotlib
+Requires:       python-spiffgtkwidgets
+
+
+%description
+Gtk client for Open ERP.
+
+OpenERP is a free Enterprise Resource Planning and Customer Relationship
+Management software. It is mainly developed to meet changing needs.
+
+This package only contains the thin, native client for the ERP application.
+After installing this, you will be able to connect to any OpenERP server
+running in your local network or the Internet.
+
+
+%prep
+%setup -q -n %{name}-%{version}.1
+
+# Remove bundled stuff and foreign packaging
+rm -f setup.nsi
+rm -rf bin/SpiffGtkWidgets
+sed -i '/SpiffGtkWidgets/d' setup.py
+rm -f msgfmt.py
+
+sed -i -e '\;/usr/bin/env;d' bin/release.py bin/%{name}.py
+sed -i -e 's/\r//' doc/README* doc/License.rtf
+chmod 644 doc/License.rtf
+
+
+%build
+PYTHONPATH=%{_bindir} %{__python} ./setup.py --quiet build
+
+
+%install
+PYTHONPATH=%{_bindir} \
+    %{__python} ./setup.py --quiet install --root=%{buildroot}
+
+rm -rf %{buildroot}%{_docdir}/*
+rm doc/INSTALL
+cp %{SOURCE2} doc
+
+install -m 644 -D bin/pixmaps/openerp-icon.png \
+    %{buildroot}%{_datadir}/icons/%{name}/openerp-icon.png
+
+# https://bugs.launchpad.net/bugs/994216
+# Adjusting locale names for Albania, Ukraine
+pushd %{buildroot}/%{_datadir}/locale
+    mv al sq
+    rm -r ua # there is already an "uk" file for Ukraine, ua seems old.
+popd
+
+mkdir %{buildroot}%{_datadir}/applications
+desktop-file-install \
+    --dir  %{buildroot}%{_datadir}/applications \
+    %{SOURCE1}
+
+%find_lang %{name}
+
+
+%post
+update-desktop-database %{_datadir}/applications > /dev/null || :
+touch --no-create %{_datadir}/icons &>/dev/null || :
+
+%postun
+update-desktop-database %{_datadir}/applications > /dev/null || :
+if [ $1 -eq 0 ] ; then
+    touch --no-create %{_datadir}/icons &>/dev/null
+    gtk-update-icon-cache %{_datadir}/icons &>/dev/null || :
+fi
+
+%posttrans
+gtk-update-icon-cache %{_datadir}/icons &>/dev/null || :
+
+
+%files -f %{name}.lang
+%doc doc/*
+%{_bindir}/%{name}
+%{_mandir}/man1/%{name}*
+%{_datadir}/applications/%{name}.desktop
+%{_datadir}/%{name}
+%{_datadir}/icons/%{name}
+%{_datadir}/pixmaps/%{name}
+%{python_sitelib}/%{name}
+%{python_sitelib}/openerp_client*egg-info
+
+
+%changelog
+* Wed Jun 13 2012 Alec Leamas <leamas at nowhere.net> 6.1-2
+  - Dropping initial changelog from bug 693425
+* Wed Jun 13 2012 Alec Leamas <leamas at nowhere.net> 6.1-2
+  - Initial review remarks: rename sources.
+* Thu May 3 2012 Alec Leamas <leamas at nowhere.net> 6.1-1
+  - Initial release for v 6.1
+
diff --git a/sources b/sources
index e69de29..d3ad67f 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+f0d349bfa0f1d8979b36a64bd5204b0c  openerp-client-6.1-1.tar.gz


More information about the scm-commits mailing list