Hello community, here is the log from the commit of package paranamer for openSUSE:Leap:15.2 checked in at 2020-02-05 07:28:28 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Leap:15.2/paranamer (Old) and /work/SRC/openSUSE:Leap:15.2/.paranamer.new.26092 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "paranamer" Wed Feb 5 07:28:28 2020 rev:1 rq:763311 version:2.8 Changes: -------- New Changes file: --- /dev/null 2019-12-19 10:12:34.003146842 +0100 +++ /work/SRC/openSUSE:Leap:15.2/.paranamer.new.26092/paranamer.changes 2020-02-05 07:28:29.402723229 +0100 @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Mon Dec 9 15:52:45 UTC 2019 - Fridrich Strba <fst...@suse.com> + +- Initial packaging of paranamer 2.8 New: ---- 0001-Port-to-current-qdox.patch paranamer-cb6709646eed97c271d73f50ad750cc43c8e052a.tar.gz paranamer.changes paranamer.spec ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ paranamer.spec ++++++ # # spec file for package paranamer # # Copyright (c) 2019 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/ # %global githash cb6709646eed97c271d73f50ad750cc43c8e052a Name: paranamer Version: 2.8 Release: 0 Summary: Java library for accessing non-private method's parameter names at run-time License: BSD-3-Clause URL: https://github.com/paul-hammant/paranamer Source0: %{url}/archive/%{githash}/%{name}-%{githash}.tar.gz Patch0: 0001-Port-to-current-qdox.patch BuildRequires: fdupes BuildRequires: maven-local BuildRequires: mvn(com.thoughtworks.qdox:qdox) BuildRequires: mvn(javax.inject:javax.inject) BuildRequires: mvn(org.apache.ant:ant) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations) BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin) BuildRequires: mvn(org.apache.maven:maven-plugin-api) BuildRequires: mvn(org.ow2.asm:asm) BuildArch: noarch %description Paranamer is a Java library that allows the parameter names of non-private methods and constructors to be accessed at run-time. Most compilers discard this information; traditional Reflection on JDK <= 7 would show something like doSomething(mypackage.Person ???) instead of doSomething(mypackage.Person toMe). The Paranamer library fills this gap for these JDK versions. %package ant Summary: ParaNamer Ant %description ant This package contains the ParaNamer Ant tasks. %package generator Summary: ParaNamer Generator %description generator This package contains the ParaNamer Generator. %package maven-plugin Summary: ParaNamer Maven plugin %description maven-plugin This package contains the ParaNamer Maven plugin. %package parent Summary: ParaNamer Parent POM %description parent This package contains the ParaNamer Parent POM. %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains the API documentation for %{name}. %prep %setup -q -n %{name}-%{githash} %patch0 -p1 # Cleanup find -name "*.class" -print -delete # Do not erase test resources find -name "*.jar" -print ! -name "test.jar" -delete chmod -x LICENSE.txt # remove unnecessary dependency on parent POM %pom_remove_parent # Remove wagon extension %pom_xpath_remove "pom:build/pom:extensions" %pom_remove_plugin -r :maven-dependency-plugin %pom_remove_plugin -r :maven-javadoc-plugin %pom_remove_plugin -r :maven-source-plugin # Disable distribution module %pom_disable_module %{name}-distribution # And integration-tests module %pom_disable_module %{name}-integration-tests # Unavailable test deps %pom_remove_dep -r net.sourceforge.f2j: %pom_xpath_remove -r "pom:dependency[pom:classifier = 'javadoc' ]" # package org.netlib.blas does not exist rm -r %{name}/src/test/com/thoughtworks/paranamer/JavadocParanamerTest.java # testRetrievesParameterNamesFromBootstrapClassLoader java.lang.AssertionError: # Should not find names for classes loaded by the bootstrap class loader. rm -r %{name}/src/test/com/thoughtworks/paranamer/BytecodeReadingParanamerTestCase.java %build %{mvn_build} -sf \ %if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0} -- -Dmaven.compiler.release=6 %endif %install %mvn_install %fdupes -s %{buildroot}%{_javadocdir} %files -f .mfiles-%{name} %doc README.md %license LICENSE.txt %files ant -f .mfiles-%{name}-ant %files generator -f .mfiles-%{name}-generator %license LICENSE.txt %files maven-plugin -f .mfiles-%{name}-maven-plugin %files parent -f .mfiles-%{name}-parent %license LICENSE.txt %files javadoc -f .mfiles-javadoc %license LICENSE.txt %changelog ++++++ 0001-Port-to-current-qdox.patch ++++++ >From 82c59ffdd9d0636236d9974dfbeb0d620364f640 Mon Sep 17 00:00:00 2001 From: Michael Simacek <msima...@redhat.com> Date: Fri, 10 Feb 2017 12:45:06 +0100 Subject: [PATCH] Port to current qdox --- .../com/thoughtworks/paranamer/generator/QdoxParanamerGenerator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paranamer-generator/src/java/com/thoughtworks/paranamer/generator/QdoxParanamerGenerator.java b/paranamer-generator/src/java/com/thoughtworks/paranamer/generator/QdoxParanamerGenerator.java index 62266fe..644aa9c 100644 --- a/paranamer-generator/src/java/com/thoughtworks/paranamer/generator/QdoxParanamerGenerator.java +++ b/paranamer-generator/src/java/com/thoughtworks/paranamer/generator/QdoxParanamerGenerator.java @@ -85,7 +85,7 @@ public class QdoxParanamerGenerator implements ParanamerGenerator { content.append(addConstructors(javaClass.getConstructors())); content.append(addMethods(javaClass.getMethods())); // TODO problem with inner classes - makeEnhancer().enhance(new File(outputPath, javaClass.getFullyQualifiedName().replace('.', File.separatorChar) + ".class"), content); + makeEnhancer().enhance(new File(outputPath, javaClass.getBinaryName().replace('.', File.separatorChar) + ".class"), content); } } @@ -171,7 +171,7 @@ public class QdoxParanamerGenerator implements ParanamerGenerator { Iterator<JavaParameter> paramIter = parameters.iterator(); while(paramIter.hasNext()) { JavaParameter param = paramIter.next(); - sb.append(param.getType().getCanonicalName()); + sb.append(param.getType().getCanonicalName().replaceAll("\\[\\]", "")); if(paramIter.hasNext()) { sb.append(COMMA); -- 2.9.3