[python-visual/f13/master] Initial import (#537983)

tomspur tomspur at fedoraproject.org
Tue Oct 26 13:45:51 UTC 2010


commit 21dacf7510bda5857c5030e568bd14226bdd5670
Author: Thomas Spura <tomspur at fedoraproject.org>
Date:   Tue Oct 26 12:21:16 2010 +0200

    Initial import (#537983)

 .gitignore         |    1 +
 python-visual.spec |  153 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources            |    1 +
 3 files changed, 155 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..dd93f44 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/visual-5.32_release.tar.bz2
diff --git a/python-visual.spec b/python-visual.spec
new file mode 100644
index 0000000..263b5d4
--- /dev/null
+++ b/python-visual.spec
@@ -0,0 +1,153 @@
+%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
+%endif
+
+%{?filter_setup:
+%filter_provides_in %{python_sitearch}/.*\.so*
+%filter_requires_in %{python_sitearch}/.*\.so*
+%filter_setup
+}
+
+Name:           python-visual
+Version:        5.32
+Release:        9%{?dist}
+Summary:        3D Programming
+
+Group:          Development/Languages
+# See license.txt file for clarification
+License:        Boost and MIT
+URL:            http://vpython.org
+Source0:        http://vpython.org/contents/download/visual-%{version}_release.tar.bz2
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires:  boost-devel
+BuildRequires:  gtkglextmm-devel
+BuildRequires:  libglademm24-devel
+BuildRequires:  python2-devel
+BuildRequires:  numpy
+
+Obsoletes:      vpython < %{version}
+Provides:       vpython = %{version}
+
+
+%description
+Visual Python makes it easy to create navigable 3D displays and animations, 
+even for those with limited programming experience. Because it is based on
+Python, it also has much to offer for experienced programmers and researchers.
+
+
+%package doc
+Summary:        Documentation and examples for %{name}
+Group:          Documentation
+BuildArch:      noarch
+
+%description doc
+Documentation and examples for developing with %{name}
+
+
+%prep
+%setup -q -n visual-%{version}_release
+#rm -r dependencies
+
+sed -i 's/\r//' \
+    docs/visual/VisualRef.css
+
+# make the build more verbose, with deleting all redirections to log file
+sed -i 's/2\?>> \?\$(LOGFILE).*//' src/Makefile.in
+
+
+%build
+%configure --with-html-dir=%{_defaultdocdir}/%{name}-doc-%{version}
+
+# remove rpath
+sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
+sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
+
+
+CFLAGS="%{optflags}" make %{?_smp_mflags}
+
+
+%install
+rm -rf %{buildroot}
+make install DESTDIR=%{buildroot} INSTALL="install -p"
+
+%ifarch x86_64 ppc64
+# files are in wrong folder
+mkdir -p %{buildroot}%{python_sitearch}
+mv %{buildroot}%{python_sitelib}/* %{buildroot}%{python_sitearch}
+%endif
+
+
+find %{buildroot}%{python_sitearch} -name '*.la' | xargs rm -f
+
+# remove installed examples and docs, they go into -doc in %%files section
+rm -r %{buildroot}%{python_sitearch}/visual/examples
+rm -r %{buildroot}%{_docdir}/*
+
+# IDLE is not packaged in fedora, delete vpython excecuable
+rm -f %{buildroot}%{_bindir}/vpython
+
+ 
+%clean
+rm -rf %{buildroot}
+
+
+%files
+%defattr(-,root,root,-)
+%doc license.txt authors.txt NEWS.txt
+%{python_sitearch}/cvisualmodule.so*
+%{python_sitearch}/visual
+
+
+%files doc
+%defattr(-,root,root,-)
+%doc examples docs/index.html docs/visual
+
+
+%changelog
+* Thu Oct  7 2010 Thomas Spura <tomspur at fedoraproject.org> - 5.32-9
+- follow Packaging:AutoProvidesAndRequiresFiltering
+
+* Mon Jun 14 2010 Thomas Spura <tomspur at fedoraproject.org> - 5.32-8
+- change license to Boost and MIT
+
+* Wed Jun  2 2010 Thomas Spura <tomspur at fedoraproject.org> - 5.32-7
+- make the build verbose (Thanks to ELMORABITY Mohamed)
+- correct removing of cvisualmodule.so from provides/requires list
+
+* Mon May 31 2010 Thomas Spura <tomspur at fedoraproject.org> - 5.32-6
+- remove cvisualmodule.so from provides/requires list
+
+* Wed May 26 2010 Thomas Spura <tomspur at fedoraproject.org> - 5.32-5
+- move examples somewhere else, so the package can be noarch again
+
+* Wed May 26 2010 Thomas Spura <tomspur at fedoraproject.org> - 5.32-4
+- doc subpackage needs to be non-noarch
+
+* Sun May  2 2010 Thomas Spura <tomspur at fedoraproject.org> - 5.32-3
+- move examples subfolder to doc package
+
+* Mon Apr 12 2010 Thomas Spura <tomspur at fedoraproject.org> - 5.32-2
+- restrict moving of python_sitelib -> python_sitearch to 64bit
+
+* Sat Apr 10 2010 Thomas Spura <tomspur at fedoraproject.org> - 5.32-1
+- new version (again)
+- rename vpython -> python-visual
+
+* Wed Apr  7 2010 Thomas Spura <tomspur at fedoraproject.org> - 5.31-1
+- new version
+
+* Thu Mar 11 2010 Thomas Spura <tomspur at fedoraproject.org> - 5.22-1
+- new version
+- move python_sitelib/* to python_sitearch in %%install
+  (if not, patch always needs to regenerated)
+
+* Thu Nov 26 2009 Thomas Spura <tomspur at fedoraproject.org> - 5.13-3
+- remove patch1: boost bug (#537612) gone
+
+* Thu Nov 18 2009 Thomas Spura <tomspur at fedoraproject.org> - 5.13-2
+- remove wrong-file-end-of-line-encoding
+
+* Thu Nov 17 2009 Thomas Spura <tomspur at fedoraproject.org> - 5.13-1
+- Initial creation
diff --git a/sources b/sources
index e69de29..35d5912 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+866f51f0c49b60086dbe3581f508d30b  visual-5.32_release.tar.bz2


More information about the scm-commits mailing list