[packages/mightyscape] - new

baggins baggins at pld-linux.org
Sat Jun 5 19:23:07 CEST 2021


commit 1a1ba03931580df43debf0ea1fee28293e8f854f
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Jun 5 19:22:49 2021 +0200

    - new

 mightyscape.spec | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 59 insertions(+)
---
diff --git a/mightyscape.spec b/mightyscape.spec
new file mode 100644
index 0000000..98f0af1
--- /dev/null
+++ b/mightyscape.spec
@@ -0,0 +1,59 @@
+Summary:	Extension collection for Inkscape 1.0+
+Name:		mightyscape
+%define		snap	20210605
+Version:	1.X.%{snap}
+Release:	1
+License:	GPL v3
+Group:		Applications
+Source0:	https://github.com/vmario89/mightyscape-1.X/archive/master/%{name}-%{version}.tar.gz
+# Source0-md5:	621e44e8685eb51c6b89e01ca01d7085
+URL:		https://y.stadtfabrikanten.org/mightyscape-doku
+Requires:	inkscape
+Requires:	python3-lxml
+Requires:	python3-networkx
+Requires:	python3-numpy
+Requires:	python3-opencv
+Requires:	python3-pillow
+Requires:	python3-scipy
+Requires:	python3-shapely
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_enable_debug_packages	0
+
+%description
+A maintained extension collection for Inkscape 1.0+.
+
+%prep
+%setup -q -n mightyscape-1.X-master
+cd extensions/fablabchemnitz
+
+%{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+python3(\s|$),#!%{__python3}\1,' \
+      */*.py
+
+# Remove binary blobs and blob wrapper plugins
+%{__rm} -r dxf2papercraft \
+	papercraft_unfold \
+	svg2shenzhen \
+	primitive \
+	cutting_optimizer \
+	imagetracerjs \
+	inkstitch \
+	sudoku \
+	svgo_output \
+	boxes.py/boxes.exe \
+	dxf_dwg_importer/{node.exe,node_modules,kabeja}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_datadir}/inkscape/extensions
+
+cp -ap extensions/fablabchemnitz $RPM_BUILD_ROOT%{_datadir}/inkscape/extensions/
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%{_datadir}/inkscape/extensions/fablabchemnitz
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mightyscape.git/commitdiff/1a1ba03931580df43debf0ea1fee28293e8f854f



More information about the pld-cvs-commit mailing list