commit 4371d1066d2c763ca6876d64c35d935662af2c67
Author: Arkadiusz Miƛkiewicz <[email protected]>
Date:   Mon Jun 8 09:19:58 2015 +0200

    - initial

 python-UM.spec | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)
---
diff --git a/python-UM.spec b/python-UM.spec
new file mode 100644
index 0000000..9520e52
--- /dev/null
+++ b/python-UM.spec
@@ -0,0 +1,51 @@
+# 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
+%define                snap    20150608
+Summary:       Framework for building 3D printing related applications
+Name:          python-%{module}
+Version:       0.1
+Release:       0.%{snap}.1
+License:       AGPL v3+
+Group:         Libraries/Python
+Source0:       Uranium-%{snap}.tar.bz2
+# Source0-md5: 9772a194ea2dd8f03a5ce17cd8583b88
+URL:           https://github.com/Ultimaker/Uranium
+BuildRequires: cmake
+BuildRequires: rpm-pythonprov
+Requires:      python3-modules
+#BuildArch:    noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Uranium framework for building 3D printing related applications.
+
+%prep
+%setup -q -n Uranium
+# -n %{module}-%{version}
+
+sed -i -e 's#CMAKE_INSTALL_LIBDIR#CMAKE_INSTALL_DATADIR#g' CMakeLists.txt
+
+%build
+install -d build
+cd build
+%{cmake} ..
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C build install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%{py3_sitescriptdir}/%{module}
+%{_datadir}/uranium
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-UM.git/commitdiff/4371d1066d2c763ca6876d64c35d935662af2c67

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to