[packages/python-UM] update BR, name py3 package with python3- prefix
glen
glen at pld-linux.org
Mon Jun 8 09:49:30 CEST 2015
commit 6e5b694557110320884fbfe470446e85ce21fad6
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Mon Jun 8 10:48:54 2015 +0300
update BR, name py3 package with python3- prefix
python-UM.spec | 34 ++++++++++++++++++++--------------
1 file changed, 20 insertions(+), 14 deletions(-)
---
diff --git a/python-UM.spec b/python-UM.spec
index 9520e52..f4c3f62 100644
--- a/python-UM.spec
+++ b/python-UM.spec
@@ -1,50 +1,56 @@
-# Conditional build:
-%bcond_without doc # don't build doc
-%bcond_without tests # do not perform "make test"
-%bcond_without python3 # CPython 3.x module
-
-%define module UM
+# TODO
+# - rename .spec to python3 if python2 is never to be supported
+%define rel 1
%define snap 20150608
+%define module UM
Summary: Framework for building 3D printing related applications
Name: python-%{module}
Version: 0.1
-Release: 0.%{snap}.1
+Release: 0.%{snap}.%{rel}
License: AGPL v3+
Group: Libraries/Python
Source0: Uranium-%{snap}.tar.bz2
# Source0-md5: 9772a194ea2dd8f03a5ce17cd8583b88
URL: https://github.com/Ultimaker/Uranium
BuildRequires: cmake
+BuildRequires: libstdc++-devel
+BuildRequires: python3-devel
BuildRequires: rpm-pythonprov
-Requires: python3-modules
-#BuildArch: noarch
+BuildRequires: sed >= 4.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Uranium framework for building 3D printing related applications.
+%package -n python3-%{module}
+Summary: Framework for building 3D printing related applications
+Group: Libraries/Python
+Requires: python3-modules
+
+%description -n python3-%{module}
+Uranium framework for building 3D printing related applications.
+
%prep
-%setup -q -n Uranium
-# -n %{module}-%{version}
+%setup -qc
+mv Uranium/* .
sed -i -e 's#CMAKE_INSTALL_LIBDIR#CMAKE_INSTALL_DATADIR#g' CMakeLists.txt
%build
install -d build
cd build
-%{cmake} ..
+%cmake ..
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-
%{__make} -C build install \
DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
-%files
+%files -n python3-%{module}
%defattr(644,root,root,755)
%doc README.md
%{py3_sitescriptdir}/%{module}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-UM.git/commitdiff/6e5b694557110320884fbfe470446e85ce21fad6
More information about the pld-cvs-commit
mailing list