Accepting request 78177 from science
New package: python-veusz - scientific plotting package with GUI, command-line, and scripting interfaces OBS-URL: https://build.opensuse.org/request/show/78177 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-veusz?expand=0&rev=1
This commit is contained in:
@@ -0,0 +1,69 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 5 22:08:59 UTC 2011 - badshah400@gmail.com
|
||||
|
||||
- Update to version 1.12:
|
||||
+ Multiple widgets can now be selected for editing properties
|
||||
+ Add Edit->Select menu and context menu for above
|
||||
+ Added context menu on dataset browser for filenames to reload,
|
||||
delete or unlink all associated datasets
|
||||
+ New tree-like dataset browsing widget is shown in data edit
|
||||
dialog
|
||||
+ Importing 1D fits images is now supported
|
||||
+ Date / time data has its own dataset type
|
||||
+ The data edit dialog box can create or edit date/time data in
|
||||
human-readable form
|
||||
+ Add LaTeX commands \cdot, \nabla, \overline plus some arrows
|
||||
+ Inform user in exception dialog if a new version is available
|
||||
+ Add linevertbar and linehorzbar error bar styles
|
||||
+ Bug fixes:
|
||||
- Fix crash on filling filled error regions if no error bars
|
||||
- Remove grouping separator to numbers in locale as it creates
|
||||
ambiguous lists of numbers
|
||||
- Undo works properly for boolean and integer settings
|
||||
- Prevent widgets getting the same names when dragging and
|
||||
dropping
|
||||
- Hidden plot widgets are ignored when calculating axis ranges
|
||||
- Combo boxes are now case sensitive when displaying matches
|
||||
with previous text
|
||||
- Fix errors if plotting DatasetRange or Dataset1DPlugin
|
||||
datasets against data with nan values
|
||||
- Fix division by zero in dataset preview
|
||||
- Do not leave settings pointing to deleted widgets after an
|
||||
undo
|
||||
- Fix errors when using super/subscripts of super/subscripts
|
||||
- Fix crash when giving positions of bar plot and labels
|
||||
- Do not allow dataset names to be invalid after remaining
|
||||
- Several EMF format bug fixes
|
||||
- Stop crash when contouring zero-sized datasets
|
||||
- Changes from version 1.11:
|
||||
+ New data point picker for finding coordinates of points on plot
|
||||
+ New data navigator window for filtering, sorting and examining
|
||||
dataset statistics
|
||||
+ ".." button next to dataset settings pops up data navigator for
|
||||
choosing datasets
|
||||
+ Data fitting can now use PyMinuit, giving error estimates
|
||||
+ Console history now uses currently entered characters to select
|
||||
lines from history
|
||||
+ New self test script, comparing graph output with expected
|
||||
output
|
||||
+ Put superscripts and subscripts above each other when
|
||||
formatting
|
||||
+ Key entries can have multiple lines (using \\)
|
||||
+ Option to treat blanks as data items in CSV files
|
||||
+ Locale support added for number formatting
|
||||
- Can use current locale or US/English in documents
|
||||
- Can use US/English or current local in user interface
|
||||
+ Contours avoid missing (nan) values
|
||||
+ Several bug fixes (see ChangeLog file for details)
|
||||
- Spec file cleanup:
|
||||
+ Removed BuildRequires: python-distribute to allow building
|
||||
with openSUSE 11.4 and earlier
|
||||
+ Use %suse_update_desktop_file macro to install .desktop entry
|
||||
+ Miscellaneous minor modifications
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Dec 19 06:00:52 UTC 2010 - ocefpaf@yahoo.com.br
|
||||
|
||||
- First OpenSuse release
|
||||
|
||||
|
||||
@@ -0,0 +1,135 @@
|
||||
#
|
||||
# spec file for package python-veusz
|
||||
#
|
||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
#
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
%define pyname veusz
|
||||
|
||||
Name: python-%{pyname}
|
||||
Version: 1.12
|
||||
Release: 1
|
||||
# The entire source code is GPLv2+ except helpers/src/_nc_cntr.c which is Python
|
||||
License: GPLv2+ and Python
|
||||
Summary: GUI scientific plotting package
|
||||
Url: http://home.gna.org/veusz/
|
||||
Group: Productivity/Scientific/Other
|
||||
Source0: veusz-%{version}.tar.bz2
|
||||
Source1: %{pyname}.desktop
|
||||
Source2: %{pyname}.xml
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: libqt4-devel
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-numpy-devel
|
||||
BuildRequires: python-qt4-devel
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python-sip
|
||||
BuildRequires: update-desktop-files
|
||||
Requires: python-numpy
|
||||
Requires: python-qt4
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Requires(post): shared-mime-info desktop-file-utils
|
||||
Requires(postun): shared-mime-info desktop-file-utils
|
||||
%{py_requires}
|
||||
|
||||
%description
|
||||
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.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{pyname}-%{version}
|
||||
find -name \*~ | xargs rm -f
|
||||
|
||||
# change path of where to lookup bitmaps
|
||||
# this is so we can move the icons out of the python directory
|
||||
# and into /usr/share/pixmaps/veusz
|
||||
sed -i "/imagedir =/c\\imagedir = '%{_datadir}/pixmaps/veusz'" \
|
||||
${RPM_BUILD_DIR}/veusz-%{version}/utils/action.py
|
||||
|
||||
# change path of where to look for COPYING - should be docdir
|
||||
sed -i "/f =/s+utils.veuszDirectory+'%{_docdir}/veusz-%{version}'+" \
|
||||
${RPM_BUILD_DIR}/veusz-%{version}/dialogs/aboutdialog.py
|
||||
|
||||
%build
|
||||
CFLAGS="%{optflags}"
|
||||
python setup.py build
|
||||
|
||||
%install
|
||||
python setup.py install -O1 --skip-build --prefix="%{_prefix}" \
|
||||
--root=%{buildroot}
|
||||
|
||||
# install desktop file
|
||||
%suse_update_desktop_file -i veusz
|
||||
|
||||
# file to register .vsz mimetype
|
||||
mkdir -p %{buildroot}%{_datadir}/mime/packages/
|
||||
cp %{SOURCE2} %{buildroot}%{_datadir}/mime/packages/
|
||||
|
||||
# move icon files to /usr/share/pixmaps/veusz
|
||||
# symlink main veusz icon also into pixmaps (for desktop file)
|
||||
mkdir -p %{buildroot}%{_datadir}/pixmaps/veusz
|
||||
mv %{buildroot}%{python_sitearch}/veusz/windows/icons/*.png \
|
||||
%{buildroot}%{_datadir}/pixmaps/veusz
|
||||
mv %{buildroot}%{python_sitearch}/veusz/windows/icons/*.svg \
|
||||
%{buildroot}%{_datadir}/pixmaps/veusz
|
||||
ln -s veusz/veusz_48.png %{buildroot}%{_datadir}/pixmaps/veusz.png
|
||||
|
||||
# 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.
|
||||
# Do this so that the scripts don't need modification.
|
||||
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/veusz.1 Documents/veusz_listen.1 -m 0644 \
|
||||
%{buildroot}%{_mandir}/man1
|
||||
|
||||
%fdupes -s %{buildroot}%{py_sitedir}
|
||||
%fdupes %{buildroot}%{_datadir}/pixmaps/%{pyname}/
|
||||
|
||||
%post
|
||||
update-mime-database %{_datadir}/mime > /dev/null 2>&1 || :
|
||||
update-desktop-database %{_datadir}/applications
|
||||
|
||||
%postun
|
||||
update-mime-database %{_datadir}/mime > /dev/null 2>&1 || :
|
||||
update-desktop-database %{_datadir}/applications
|
||||
|
||||
%clean
|
||||
%{?buildroot:rm -rf %{buildroot}}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc README AUTHORS COPYING ChangeLog
|
||||
%doc examples/
|
||||
%doc Documents/manual.html
|
||||
%doc Documents/manimages/
|
||||
%{_bindir}/veusz
|
||||
%{_bindir}/veusz_listen
|
||||
%{_datadir}/applications/%{pyname}.desktop
|
||||
%{_datadir}/mime/packages/%{pyname}.xml
|
||||
%{python_sitearch}/%{pyname}-%{version}-py%{py_ver}.egg-info
|
||||
%{python_sitearch}/%{pyname}/
|
||||
%{_datadir}/pixmaps/%{pyname}/
|
||||
%{_datadir}/pixmaps/%{pyname}.png
|
||||
%{_mandir}/man1/*
|
||||
|
||||
%changelog
|
||||
@@ -0,0 +1,24 @@
|
||||
*.changes merge=merge-changes
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tar filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||
@@ -0,0 +1,4 @@
|
||||
*.obscpio
|
||||
*.osc
|
||||
_build.*
|
||||
.pbuild
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:da2ee180a80954c4eab0926189773fc85842c61306b6af0b49b1ca3367c68a12
|
||||
size 1426803
|
||||
@@ -0,0 +1,16 @@
|
||||
[Desktop Entry]
|
||||
Name=Veusz
|
||||
Comment=Open .vsz scientific plotting files
|
||||
GenericName=Veusz scientific plotting
|
||||
Exec=veusz %F
|
||||
StartupNotify=true
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Icon=veusz
|
||||
Categories=GTK;GNOME;Education;Graphics;3DGraphics;X-Science,X-DataVisualization;
|
||||
Encoding=UTF-8
|
||||
MimeType=application/x-veusz;
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
<?xml version='1.0'?>
|
||||
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
|
||||
<mime-type type="application/x-veusz">
|
||||
<comment>Veusz saved graph</comment>
|
||||
<glob pattern="*.vsz"/>
|
||||
<magic priority="50">
|
||||
<match type="string" value="# Veusz saved document" offset="0"/>
|
||||
</magic>
|
||||
</mime-type>
|
||||
</mime-info>
|
||||
Reference in New Issue
Block a user