Hello community,

here is the log from the commit of package python-veusz for openSUSE:Factory 
checked in at 2016-08-10 19:55:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-veusz (Old)
 and      /work/SRC/openSUSE:Factory/.python-veusz.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-veusz"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-veusz/python-veusz.changes        
2016-07-20 09:21:02.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-veusz.new/python-veusz.changes   
2016-08-10 19:55:39.000000000 +0200
@@ -1,0 +2,7 @@
+Wed Aug  3 00:27:51 UTC 2016 - [email protected]
+
+- Drop the GUI application (this is still available from the
+  python3 compiled version python3-veusz), leaving only the python
+  modules.
+
+-------------------------------------------------------------------

Old:
----
  veusz_256.png

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-veusz.spec ++++++
--- /var/tmp/diff_new_pack.82NnMa/_old  2016-08-10 19:55:40.000000000 +0200
+++ /var/tmp/diff_new_pack.82NnMa/_new  2016-08-10 19:55:40.000000000 +0200
@@ -28,10 +28,8 @@
 # The entire source code is GPL-2.0+ except helpers/src/_nc_cntr.c which is 
Python-2.0
 Url:            http://home.gna.org/veusz/
 Source0:        http://download.gna.org/veusz/veusz-%{version}.tar.gz
-Source3:        veusz_256.png
 BuildRequires:  desktop-file-utils
 BuildRequires:  fdupes
-BuildRequires:  hicolor-icon-theme
 BuildRequires:  libqt4-devel
 BuildRequires:  python-devel
 BuildRequires:  python-h5py
@@ -39,16 +37,9 @@
 BuildRequires:  python-qt4-devel
 BuildRequires:  python-setuptools
 BuildRequires:  python-sip
-BuildRequires:  update-desktop-files
-BuildRequires:  xorg-x11-server
 Requires:       python-h5py
 Requires:       python-numpy
 Requires:       python-qt4
-Requires(post): desktop-file-utils
-Requires(post): shared-mime-info
-Requires(postun): desktop-file-utils
-Requires(postun): shared-mime-info
-Recommends:     %{appname}
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
 %description
@@ -59,20 +50,8 @@
 plotting functions, data with errors, keys, labels, stacked plots,
 multiple plots, contours, shapes and fitting data.
 
-%package -n %{appname}
-Summary:        GUI scientific plotting package
-Group:          Productivity/Scientific/Other
-Requires:       %{name} = %{version}
-Requires(post): desktop-file-utils
-Requires(postun): desktop-file-utils
-
-%description -n %{appname}
-Veusz is a scientific plotting package, designed to create
-publication-ready Postscript/PDF/SVG output. It features GUI,
-command-line, and scripting interfaces. Graphs are constructed from
-widgets, allowing complex layouts to be designed. Veusz supports
-plotting functions, data with errors, keys, labels, stacked plots,
-multiple plots, contours, shapes and fitting data.
+This package provides only the python module needed for
+scripting using python.
 
 %prep
 %setup -q -n veusz-%{version}
@@ -86,35 +65,6 @@
 python setup.py install -O1 --skip-build --prefix="%{_prefix}" \
                                               --root=%{buildroot}
 
-# Install .desktop, mime and appdata files from upstream tarball
-install -Dm0644 support/veusz.appdata.xml 
%{buildroot}%{_datadir}/appdata/%{appname}.appdata.xml
-install -Dm0644 support/veusz.xml 
%{buildroot}/%{_datadir}/mime/packages/%{appname}.xml
-desktop-file-install -m 0644 \
-  --dir=%{buildroot}/%{_datadir}/applications/ \
-  --add-category=2DGraphics \
-  support/%{appname}.desktop
-
-# move icon files to /usr/share/pixmaps/veusz
-mkdir -p %{buildroot}%{_datadir}/pixmaps/%{appname}
-mv %{buildroot}%{python_sitearch}/veusz/icons/*.png \
-        %{buildroot}%{_datadir}/pixmaps/%{appname}
-mv %{buildroot}%{python_sitearch}/veusz/icons/*.svg \
-        %{buildroot}%{_datadir}/pixmaps/%{appname}
-for i in `ls %{buildroot}%{_datadir}/pixmaps/veusz/`; do
-ln -s  %{_datadir}/pixmaps/%{appname}/$i \
-          %{buildroot}%{python_sitearch}/veusz/icons/$i ;
-done
-# hardlink main veusz icon also into hicolor-icon-theme dir (for desktop file)
-install -m 0644 %{SOURCE3} 
%{buildroot}%{_datadir}/pixmaps/%{appname}/veusz_256.png
-for size in 16 32 48 64 128 256; do
-    odir=%{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps
-    mkdir -p $odir
-    ln %{buildroot}%{_datadir}/pixmaps/%{appname}/veusz_${size}.png 
${odir}/%{appname}.png
-done
-odir=%{buildroot}%{_datadir}/icons/hicolor/scalable/apps
-mkdir -p $odir
-ln %{buildroot}%{_datadir}/pixmaps/%{appname}/veusz.svg $odir/%{appname}.svg
-
 # Mark some scripts as executable.
 # This isn't really needed, but Veusz includes shebangs in scripts
 # so that they can be run when not installed.
@@ -122,43 +72,18 @@
 chmod +x %{buildroot}%{python_sitearch}/veusz/veusz_main.py
 chmod +x %{buildroot}%{python_sitearch}/veusz/veusz_listen.py
 
-# install man pages
-mkdir -p %{buildroot}%{_mandir}/man1
-install -p Documents/%{appname}.1 Documents/%{appname}_listen.1 -m 0644 \
-        %{buildroot}%{_mandir}/man1
-
 install -m0644 COPYING %{buildroot}%{python_sitearch}/veusz/
 
 %fdupes -s %{buildroot}%{python_sitearch}
 %fdupes %{buildroot}%{_datadir}/pixmaps/%{appname}/
 
-%check
-# Problems connectiong to xserver for openSUSE 12.2 and below
-%if 0%{?suse_version} > 1220
-export DISPLAY=%{X_display}
-Xvfb %{X_display} >& Xvfb.log &
-sleep 5
-PYTHONPATH=%{buildroot}%{python_sitearch} \
-            python tests/runselftest.py
-%endif
-
 # CLEAN-UP __pycache__ DIRS CONTAINING OBJECT FILES LEFT BY %%check WITHOUT 
THE CORRESPONDING SOURCES
 rm -fr %{buildroot}%{python3_sitearch}/veusz/*/__pycache__
 rm -fr %{buildroot}%{python3_sitearch}/veusz/__pycache__
 
-%post
-update-mime-database %{_datadir}/mime > /dev/null 2>&1 || :
-%icon_theme_cache_post
-
-%postun
-update-mime-database %{_datadir}/mime > /dev/null 2>&1 || :
-%icon_theme_cache_postun
-
-%post -n %{appname}
-update-desktop-database %{_datadir}/applications
-
-%postun -n %{appname}
-update-desktop-database %{_datadir}/applications
+# Drop GUI binaries, install python3-veusz for the GUI application instead
+rm %{buildroot}%{_bindir}/%{appname}
+rm %{buildroot}%{_bindir}/%{appname}_listen
 
 %files
 %defattr(-,root,root)
@@ -168,16 +93,4 @@
 %{python_sitearch}/veusz-%{version}-py*.egg-info
 %{python_sitearch}/veusz/
 
-%files -n %{appname}
-%defattr(-,root,root)
-%{_bindir}/%{appname}
-%{_bindir}/%{appname}_listen
-%{_datadir}/applications/%{appname}.desktop
-%{_datadir}/pixmaps/%{appname}/
-%dir %{_datadir}/appdata
-%{_datadir}/appdata/%{appname}.appdata.xml
-%{_datadir}/icons/hicolor/*/apps/%{appname}.*
-%{_datadir}/mime/packages/%{appname}.xml
-%{_mandir}/man1/*
-
 %changelog


Reply via email to