Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:kwk
processing
processing.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File processing.spec of Package processing
# # spec file for package processing # # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define javaversion 17 # not yet %%define joglUrl https://jogamp.org/deployment/archive/rc/v2.4.0/jar %define joglUrl https://download.processing.org/jogl/v2.4.0-rc-20210111y Name: processing Version: 4.3 %define binversion 1293 Release: 0 Summary: A flexible software sketchbook and a language for learning how to code License: GPL-2.0 and LGPL-2.0 Group: Development/Libraries/Java Url: http://www.processing.org Source0: https://github.com/processing/processing4/archive/refs/tags/%{name}4-%{name}-%{binversion}-%{version}.tar.gz Source1: %{joglUrl}/gluegen-rt.jar Source2: %{joglUrl}/jogl-all.jar Source3: https://repo1.maven.org/maven2/com/formdev/flatlaf/2.4/flatlaf-2.4.jar Source4: https://archive.apache.org/dist/xmlgraphics/batik/binaries/batik-bin-1.14.zip Source5: https://download.processing.org/reference.zip Source6: https://repo1.maven.org/maven2/org/eclipse/lsp4j/org.eclipse.lsp4j/0.19.0/org.eclipse.lsp4j-0.19.0.jar Source7: https://repo1.maven.org/maven2/org/eclipse/lsp4j/org.eclipse.lsp4j.jsonrpc/0.19.0/org.eclipse.lsp4j.jsonrpc-0.19.0.jar Source8: https://repo1.maven.org/maven2/com/google/code/gson/gson/2.9.1/gson-2.9.1.jar Patch1: 0001-error-incompatible-types-File-cannot-be-converted-to.patch Patch2: 0002-disable-prepare-ffmpeg.patch Patch3: 0003-Disable-tar-rsync-of-JDK.patch BuildRequires: ant BuildRequires: fdupes BuildRequires: ffmpeg BuildRequires: java-devel = %{javaversion} BuildRequires: jna BuildRequires: jna-contrib BuildRequires: rsync BuildRequires: sed BuildRequires: unzip BuildRequires: update-desktop-files BuildRequires: xdg-utils Requires: java-headless = %{javaversion} Requires: ffmpeg %description Processing is a flexible software sketchbook and a language for learning how to code. Since 2001, Processing has promoted software literacy within the visual arts and visual literacy within technology. There are tens of thousands of students, artists, designers, researchers, and hobbyists who use Processing for learning and prototyping. %prep %setup -q -n %{name}4-%{name}-%{binversion}-%{version} %patch1 -p1 %patch2 -p1 %patch3 -p1 cp %{S:1} core/library cp %{S:2} core/library cp /usr/share/java/ant.jar app/lib cp /usr/share/java/ant-launcher.jar app/lib cp %{S:3} app/lib/flatlaf.jar cp /usr/share/java/jna.jar app/lib cp /usr/share/java/jna-platform.jar app/lib unzip -p %{S:4} batik-1.14/lib/batik-all-1.14.jar > java/libraries/svg/library/batik.jar cp %{S:5} java mkdir -p build/linux/work/tools/MovieMaker/tool ln -s %{_bindir}/ffmpeg build/linux/work/tools/MovieMaker/tool cp %{S:6} java/mode/org.eclipse.lsp4j.jar cp %{S:7} java/mode/org.eclipse.lsp4j.jsonrpc.jar cp %{S:8} java/mode/gson.jar %build export JAVA_HOME=%{_libdir}/jvm/java-%{javaversion}-openjdk-%{javaversion} cd build ant -Djdk.archive.downloaded=true \ -Dffmpeg.present=true \ -Dplatform=linux \ -Darch=amd64 \ build %install cd build/linux rm -rf work/core/library/windows-amd64 rm -rf work/modes/java/application/launch4j/bin/ld rm -rf work/modes/java/application/launch4j/bin/windres rm -rf work/modes/java/application/launch4j/w32api rm -rf work/modes/java/libraries/io/library/linux-arm* rm -rf work/modes/java/libraries/io/library/linux32 install -d %{buildroot}%{_bindir} install -d %{buildroot}%{_datadir} install -d %{buildroot}%{_datadir}/metainfo ln -s %{_datadir}/%{name}/%{name} %{buildroot}%{_bindir} install -m 644 appdata.xml %{buildroot}%{_datadir}/metainfo/%{name}.appdata.xml cp -a work %{buildroot}%{_datadir}/%{name} ln -s $JAVA_HOME %{buildroot}%{_datadir}/%{name}/java sed -i 's/\/opt/\/usr\/share/g' processing.desktop %suse_update_desktop_file -i -u %{name} Utility DesktopUtility %fdupes %{buildroot}%{_datadir}/%{name} %files %defattr(-,root,root) %dir %{_datadir}/%{name} %{_datadir}/%{name} %{_bindir}/* %{_datadir}/metainfo/*.appdata.xml %{_datadir}/applications/*.desktop %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor