Files
javacpp/javacpp.spec

86 lines
2.8 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package javacpp
#
Accepting request 1159153 from home:urbic:branches:Java:packages - Update to v1.5.10 * Changes of 1.5.10: + Move native Loader methods to Helper class to avoid deadlocks (issue #737) + Fix Parser failing to pick up Info for constructors with template arguments (pull #739) + Fix MoveAdapter and UniquePtrAdapter causing double free on function calls (pull #738) + Fix Parser handling of template specialization and their friend declarations (pull #733) + Improve Parser capabilities for operator and function templates (pull #732) + Fix Parser failing on nested initializer lists and on attributes found inside enum declarations + Fix Parser for basic containers like std::optional<std::pair<int,int> > (issue #718) + Add support for std::basic_string basic container (issue bytedeco/javacpp-presets#1311) + Enhance Parser by adding downcast constructors for polymorphic classes (pull #700) + Let Generator pick up @Name annotations on allocate() as well (pull #700) + Fix Parser failing to place annotations on default constructors (pull #699) + Let Parser output reset() methods for basic containers like std::optional (pull #696) + Let Parser define front() and back() for one-dimensional basic containers (pull #695) + Let Parser map iterators of basic containers systematically (pull #694) + Fix Parser for function parameters contained in template arguments (pull #693) + Fix Parser on function pointer declarations starting with typedef struct (pull bytedeco/javacpp-presets#1361) OBS-URL: https://build.opensuse.org/request/show/1159153 OBS-URL: https://build.opensuse.org/package/show/Java:packages/javacpp?expand=0&rev=7
2024-03-19 06:55:35 +00:00
# Copyright (c) 2024 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: javacpp
Accepting request 1159153 from home:urbic:branches:Java:packages - Update to v1.5.10 * Changes of 1.5.10: + Move native Loader methods to Helper class to avoid deadlocks (issue #737) + Fix Parser failing to pick up Info for constructors with template arguments (pull #739) + Fix MoveAdapter and UniquePtrAdapter causing double free on function calls (pull #738) + Fix Parser handling of template specialization and their friend declarations (pull #733) + Improve Parser capabilities for operator and function templates (pull #732) + Fix Parser failing on nested initializer lists and on attributes found inside enum declarations + Fix Parser for basic containers like std::optional<std::pair<int,int> > (issue #718) + Add support for std::basic_string basic container (issue bytedeco/javacpp-presets#1311) + Enhance Parser by adding downcast constructors for polymorphic classes (pull #700) + Let Generator pick up @Name annotations on allocate() as well (pull #700) + Fix Parser failing to place annotations on default constructors (pull #699) + Let Parser output reset() methods for basic containers like std::optional (pull #696) + Let Parser define front() and back() for one-dimensional basic containers (pull #695) + Let Parser map iterators of basic containers systematically (pull #694) + Fix Parser for function parameters contained in template arguments (pull #693) + Fix Parser on function pointer declarations starting with typedef struct (pull bytedeco/javacpp-presets#1361) OBS-URL: https://build.opensuse.org/request/show/1159153 OBS-URL: https://build.opensuse.org/package/show/Java:packages/javacpp?expand=0&rev=7
2024-03-19 06:55:35 +00:00
Version: 1.5.10
Release: 0
Summary: The missing bridge between Java and native C++
License: Apache-2.0
Group: Development/Libraries/Java
URL: https://github.com/bytedeco/%{name}
Source0: %{url}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0: %{name}-manifest.patch
BuildRequires: fdupes
BuildRequires: java-devel >= 1.8
BuildRequires: maven-local
BuildRequires: mvn(biz.aQute.bnd:bnd-maven-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires: mvn(org.moditect:moditect-maven-plugin)
%description
JavaCPP provides efficient access to native C++ inside Java, not unlike the way
some C/C++ compilers interact with assembly language. No need to invent new
languages such as with SWIG, SIP, C++/CLI, Cython, or RPython. Instead, similar
to what cppyy strives to do for Python, it exploits the syntactic and semantic
similarities between Java and C++. Under the hood, it uses JNI, so it works
with all implementations of Java SE, in addition to Android, Avian, and RoboVM
(instructions).
%package javadoc
Summary: API documentation for %{name}
Group: Documentation/HTML
%description javadoc
API documentation for %{name}.
%prep
%setup -q
%patch -P 0 -p1
sed -i 's/\r//' *.md
%pom_remove_plugin org.sonatype.plugins:nexus-staging-maven-plugin
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin biz.aQute.bnd:bnd-baseline-maven-plugin
%pom_remove_plugin -r :maven-assembly-plugin
%pom_remove_plugin :maven-javadoc-plugin
Accepting request 1159153 from home:urbic:branches:Java:packages - Update to v1.5.10 * Changes of 1.5.10: + Move native Loader methods to Helper class to avoid deadlocks (issue #737) + Fix Parser failing to pick up Info for constructors with template arguments (pull #739) + Fix MoveAdapter and UniquePtrAdapter causing double free on function calls (pull #738) + Fix Parser handling of template specialization and their friend declarations (pull #733) + Improve Parser capabilities for operator and function templates (pull #732) + Fix Parser failing on nested initializer lists and on attributes found inside enum declarations + Fix Parser for basic containers like std::optional<std::pair<int,int> > (issue #718) + Add support for std::basic_string basic container (issue bytedeco/javacpp-presets#1311) + Enhance Parser by adding downcast constructors for polymorphic classes (pull #700) + Let Generator pick up @Name annotations on allocate() as well (pull #700) + Fix Parser failing to place annotations on default constructors (pull #699) + Let Parser output reset() methods for basic containers like std::optional (pull #696) + Let Parser define front() and back() for one-dimensional basic containers (pull #695) + Let Parser map iterators of basic containers systematically (pull #694) + Fix Parser for function parameters contained in template arguments (pull #693) + Fix Parser on function pointer declarations starting with typedef struct (pull bytedeco/javacpp-presets#1361) OBS-URL: https://build.opensuse.org/request/show/1159153 OBS-URL: https://build.opensuse.org/package/show/Java:packages/javacpp?expand=0&rev=7
2024-03-19 06:55:35 +00:00
%pom_xpath_set 'pom:plugin[pom:artifactId="maven-compiler-plugin"]/pom:configuration/pom:source' 8
%pom_xpath_set 'pom:plugin[pom:artifactId="maven-compiler-plugin"]/pom:configuration/pom:target' 8
%pom_xpath_inject "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-plugin-plugin']/pom:configuration" "
<goalPrefix>javacpp</goalPrefix>"
%{mvn_file} : %{name}
%build
%{mvn_build} -f -- \
-Dsource=8
%install
%mvn_install
%fdupes %{buildroot}%{_javadocdir}/%{name}
%files -f .mfiles
%license LICENSE.txt
%doc {CHANGELOG,README}.md
%files javadoc -f .mfiles-javadoc
%license LICENSE.txt
%changelog