rpms/lybniz/F-7 lybniz-exec-desktop.patch, NONE, 1.1 lybniz-startup.sh, NONE, 1.1 lybniz.spec, NONE, 1.1
Stewart Adam (firewing)
fedora-extras-commits at redhat.com
Fri Sep 28 22:27:33 UTC 2007
- Previous message (by thread): rpms/lybniz/devel lybniz-exec-desktop.patch, NONE, 1.1 lybniz-startup.sh, NONE, 1.1 lybniz.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message (by thread): rpms/lybniz/FC-6 lybniz-exec-desktop.patch, NONE, 1.1 lybniz-startup.sh, NONE, 1.1 lybniz.spec, NONE, 1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: firewing
Update of /cvs/extras/rpms/lybniz/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv3621/F-7
Added Files:
lybniz-exec-desktop.patch lybniz-startup.sh lybniz.spec
Log Message:
Copy devel/ to F-7 & FC-6 (initial import for F-7 & FC-6)
lybniz-exec-desktop.patch:
--- NEW FILE lybniz-exec-desktop.patch ---
--- lybniz.desktop.old 2007-09-27 16:46:22.000000000 -0400
+++ lybniz.desktop 2007-09-27 16:46:26.000000000 -0400
@@ -2,7 +2,7 @@
Encoding=UTF-8
Name=Lybniz Graph Plotter
Comment=Plot graphs and functions
-Exec=lybniz.py
+Exec=lybniz
Terminal=false
StartupNotify=true
Type=Application
--- NEW FILE lybniz-startup.sh ---
#!/bin/sh
/usr/bin/python /usr/share/lybniz/lybniz.py
--- NEW FILE lybniz.spec ---
# sitelib for noarch packages, sitearch for others (remove the unneeded one)
%{!?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)")}
Name: lybniz
Version: 1.3
Release: 5%{?dist}
Summary: A function graph plotter
Group: Applications/Engineering
License: BSD
URL: http://lybniz2.sourceforge.net/
Source0: http://downloads.sourceforge.net/lybniz2/%{name}-%{version}.tar.gz
Source1: lybniz-startup.sh
Patch0: lybniz-exec-desktop.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
Requires: python >= 2.4
Requires: pygtk2 >= 2.6
BuildRequires: python-devel
BuildRequires: desktop-file-utils
%description
Lybniz is an easy to use mathematical function graph plotter using PyGTK.
%prep
%setup -q
%patch0 -p0
%build
%{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
# make dirs
install -d -m755 $RPM_BUILD_ROOT%{_datadir}/%{name}
# setup.py installs to /usr/bin/lybniz.py - Let's move it out of there and use
# a startup script instead
mv $RPM_BUILD_ROOT/%{_bindir}/lybniz.py $RPM_BUILD_ROOT%{_datadir}/%{name}
# startup script
install -m755 %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/lybniz
# redo desktop file
desktop-file-install --vendor fedora\
--dir ${RPM_BUILD_ROOT}%{_datadir}/applications\
--delete-original\
${RPM_BUILD_ROOT}%{_datadir}/applications/%{name}.desktop
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING PKG-INFO README
%dir %{_datadir}/%{name}
%dir %{_datadir}/gnome/help/%{name}
%{_datadir}/%{name}/*
%{_bindir}/*
%{_datadir}/pixmaps/*%{name}*
%{_datadir}/applications/fedora-*.desktop
%{_datadir}/gnome/help/%{name}/*
%changelog
* Fri Sep 28 2007 Stewart Adam <s.adam at diffingo.com> 1.3-5
- Fix changelog version
* Fri Sep 28 2007 Stewart Adam <s.adam at diffingo.com> 1.3-4
- Directory ownership...
* Thu Sep 27 2007 Stewart Adam <s.adam at diffingo.com> 1.3-3
- Add patch to fix Exec field in desktop file
* Thu Sep 27 2007 Stewart Adam <s.adam at diffingo.com> 1.3-2
- Change Source0 to proper URL
- Fix perms on lybniz-startup.sh
- Why CFLAGS? Gone.
- Use --delete-original and drop rm for the .desktop file
* Tue Sep 25 2007 Stewart Adam <s.adam at diffingo.com> 1.3-1
- Initial Release
- Previous message (by thread): rpms/lybniz/devel lybniz-exec-desktop.patch, NONE, 1.1 lybniz-startup.sh, NONE, 1.1 lybniz.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message (by thread): rpms/lybniz/FC-6 lybniz-exec-desktop.patch, NONE, 1.1 lybniz-startup.sh, NONE, 1.1 lybniz.spec, NONE, 1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list