Author: matkor Date: Fri Jun 4 20:02:31 2010 GMT Module: packages Tag: HEAD ---- Log message: - This one waits for Coin too.
---- Files affected: packages/python-Pivy: python-Pivy.spec (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: packages/python-Pivy/python-Pivy.spec diff -u /dev/null packages/python-Pivy/python-Pivy.spec:1.1 --- /dev/null Fri Jun 4 22:02:31 2010 +++ packages/python-Pivy/python-Pivy.spec Fri Jun 4 22:02:22 2010 @@ -0,0 +1,71 @@ +# $Revision$, $Date$ +# TODO: +# Need working Coin +%define module Pivy +Summary: - +Summary(pl.UTF-8): - +Name: python-%{module} +Version: 0.3.0 +Release: 0.1 +License: - (enter GPL/GPL v2/GPL v3/LGPL/BSD/BSD-like/other license name here) +Group: Development/Languages/Python +# http://pivy.coin3d.org/download/pivy/releases/0.3.0/Pivy-0.3.0.tar.bz2 +Source0: http://pivy.coin3d.org/download/pivy/releases/%{version}/%{module}-%{version}.tar.bz2 +# Source0-md5: 4f6095396c58a16f12e2ded3dc7c16fe +URL: http://pivy.coin3d.org/ +BuildRequires: python-devel +BuildRequires: rpm-pythonprov +# if py_postclean is used +BuildRequires: rpmbuild(macros) >= 1.219 +Requires: coin +#Requires: python-libs +Requires: python-modules +#BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description + +%description -l pl.UTF-8 + +%prep +%setup -q -n %{module}-%{version} + +%build +# CFLAGS is only for arch packages - remove on noarch packages +export CFLAGS="%{rpmcflags}" +%{__python} setup.py build + +%install +rm -rf $RPM_BUILD_ROOT +%{__python} setup.py install \ + --optimize=2 \ + --root=$RPM_BUILD_ROOT + +# change %{py_sitedir} to %{py_sitescriptdir} for 'noarch' packages! +%py_ocomp $RPM_BUILD_ROOT%{py_sitedir} +%py_comp $RPM_BUILD_ROOT%{py_sitedir} +%py_postclean + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO +# change %{py_sitedir} to %{py_sitescriptdir} for 'noarch' packages! +%{py_sitedir}/*.py[co] +%attr(755,root,root) %{py_sitedir}/*.so +%if "%{py_ver}" > "2.4" +%{py_sitedir}/TEMPLATE-*.egg-info +%endif + + +%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) +%changelog +* %{date} PLD Team <feedb...@pld-linux.org> +All persons listed below can be reached at <cvs_login>@pld-linux.org + +$Log$ +Revision 1.1 2010/06/04 20:02:22 matkor +- This one waits for Coin too. + ================================================================ _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit