rpms/veusz/devel veusz.desktop, NONE, 1.1 veusz.spec, NONE, 1.1 veusz.xml, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Dr Jeremy Stephen Sanders (jsanders) fedora-extras-commits at redhat.com
Mon Jul 10 19:23:28 UTC 2006


Author: jsanders

Update of /cvs/extras/rpms/veusz/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv6199/devel

Modified Files:
	.cvsignore sources 
Added Files:
	veusz.desktop veusz.spec veusz.xml 
Log Message:
auto-import veusz-0.10-8 on branch devel from veusz-0.10-8.src.rpm


--- NEW FILE veusz.desktop ---
[Desktop Entry]
Encoding=UTF-8
Name=Veusz
GenericName=Veusz scientific plotting
Comment=Open .vsz scientific plotting files
MimeType=application/x-veusz
Exec=veusz %F
Icon=veusz.png
Terminal=false
Type=Application
Categories=Application;Graphics


--- NEW FILE veusz.spec ---
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%{!?python_siteinc: %define python_siteinc %(%{__python} -c "from distutils.sysconfig import get_python_inc; print get_python_inc()")}

Name:           veusz
Version:        0.10
Release:        8%{?dist}
Summary:        GUI scientific plotting package

Group:          Applications/Productivity
License:        GPL
URL:            http://home.gna.org/veusz/
Source0:        http://download.gna.org/veusz/veusz-%{version}.tar.gz
Source1:        %{name}.desktop
Source2:        %{name}.xml
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  python-devel desktop-file-utils python-numarray 
Requires:       python-numarray PyQt ghostscript /usr/bin/env
Provides:       python-veusz
Requires(post): shared-mime-info desktop-file-utils
Requires(postun): shared-mime-info desktop-file-utils

%description
Veusz is a scientific plotting package, designed to create
publication-ready Postscript 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, and fitting data.

%prep
%setup -q -n veusz-%{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}/windows/action.py

# avoid clash of README files
mv ${RPM_BUILD_DIR}/veusz-%{version}/windows/icons/README README-icons

%build
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build

%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT

# install desktop file
desktop-file-install --vendor fedora                            \
        --dir ${RPM_BUILD_ROOT}%{_datadir}/applications         \
        --add-category X-Fedora                                 \
        %{SOURCE1}

# file to register .vsz mimetype
mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/mime/packages/
cp %{SOURCE2} ${RPM_BUILD_ROOT}%{_datadir}/mime/packages/

# move icon files to /usr/share/pixmaps/veusz
# symlink main veusz icon also into pixmaps (for desktop file)
mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/pixmaps/veusz
mv ${RPM_BUILD_ROOT}%{python_sitearch}/veusz/windows/icons/*.png \
        ${RPM_BUILD_ROOT}%{_datadir}/pixmaps/veusz
ln -s veusz/veusz.png ${RPM_BUILD_ROOT}%{_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 ${RPM_BUILD_ROOT}%{python_sitearch}/veusz/veusz_main.py
chmod +x ${RPM_BUILD_ROOT}%{python_sitearch}/veusz/veusz_listen.py

%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
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc README AUTHORS COPYING README-icons
%doc examples
%doc Documents/manual.html
%doc Documents/manimages
%{_bindir}/veusz
%{_bindir}/veusz_listen
%{_datadir}/applications/fedora-%{name}.desktop
%{_datadir}/mime/packages/veusz.xml
%dir %{python_sitearch}/veusz
%{python_sitearch}/veusz/VERSION
%{python_sitearch}/veusz/*.py
%{python_sitearch}/veusz/*.pyc
%ghost %{python_sitearch}/veusz/*.pyo
%{python_sitearch}/veusz/dialogs/*.py
%{python_sitearch}/veusz/dialogs/*.pyc
%ghost %{python_sitearch}/veusz/dialogs/*.pyo
%{python_sitearch}/veusz/document/*.py
%{python_sitearch}/veusz/document/*.pyc
%ghost %{python_sitearch}/veusz/document/*.pyo
%{python_sitearch}/veusz/helpers/*.py
%{python_sitearch}/veusz/helpers/*.pyc
%{python_sitearch}/veusz/helpers/*.so
%ghost %{python_sitearch}/veusz/helpers/*.pyo
%{python_sitearch}/veusz/setting/*.py
%{python_sitearch}/veusz/setting/*.pyc
%ghost %{python_sitearch}/veusz/setting/*.pyo
%{python_sitearch}/veusz/utils/*.py
%{python_sitearch}/veusz/utils/*.pyc
%ghost %{python_sitearch}/veusz/utils/*.pyo
%{python_sitearch}/veusz/widgets/*.py
%{python_sitearch}/veusz/widgets/*.pyc
%{python_sitearch}/veusz/widgets/data/colormaps.dat
%ghost %{python_sitearch}/veusz/widgets/*.pyo
%{python_sitearch}/veusz/windows/*.py
%{python_sitearch}/veusz/windows/*.pyc
%ghost %{python_sitearch}/veusz/windows/*.pyo
%dir %{_datadir}/pixmaps/veusz
%{_datadir}/pixmaps/veusz/*.png
%{_datadir}/pixmaps/veusz.png

%changelog
* Mon Jul 10 2006 Jeremy Sanders <jeremy at jeremysanders.net> - 0.10-8
- Remove tab characters from spec file

* Fri Jul  7 2006 Jeremy Sanders <jeremy at jeremysanders.net> - 0.10-7
- Change from python_sitelib to python_sitearch to fix x86_64

* Wed Jun 28 2006 Jeremy Sanders <jeremy at jeremysanders.net> - 0.10-6
- Added semicolon to end of categories in .desktop file

* Mon Jun 26 2006 Jeremy Sanders <jeremy at jeremysanders.net> - 0.10-5
- Add desktop-file-utils dependancy to post and postun
- Explicitly ghost *.pyo files
- Add X-Fedora category to installed .desktop file

* Tue Jun 20 2006 Jeremy Sanders <jeremy at jeremysanders.net> - 0.10-4
- Own python module and pixmaps directory
- Fix location of icon for Gnome (use symlink)
- Register application/x-veusz mimetype
- Update mime and desktop databases in post and postun

* Mon Jun 19 2006 Jeremy Sanders <jeremy at jeremysanders.net> - 0.10-3
- Fix rpmlint errors

* Mon Jun 19 2006 Jeremy Sanders <jeremy at jeremysanders.net> - 0.10-2
- Renamed from python-veusz to veusz



--- NEW FILE veusz.xml ---
<?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>


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/veusz/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	10 Jul 2006 19:21:39 -0000	1.1
+++ .cvsignore	10 Jul 2006 19:23:28 -0000	1.2
@@ -0,0 +1 @@
+veusz-0.10.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/veusz/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	10 Jul 2006 19:21:39 -0000	1.1
+++ sources	10 Jul 2006 19:23:28 -0000	1.2
@@ -0,0 +1 @@
+25960033c8ee243f00a900c83c8deb92  veusz-0.10.tar.gz




More information about the fedora-extras-commits mailing list