d0cc43f
%global githash cb6709646eed97c271d73f50ad750cc43c8e052a
d0cc43f
Name:             paranamer
d0cc43f
Version:          2.8
ab31d09
Release:          12%{?dist}
Alexander Scheel 27dcfa1
Summary:          Java library for accessing non-private method's parameter names at run-time
d0cc43f
License:          BSD
d0cc43f
URL:              https://github.com/paul-hammant/paranamer
e3a2a19
Source0:          %{url}/archive/%{githash}/%{name}-%{githash}.tar.gz
d0cc43f
d0cc43f
Patch0:           0001-Port-to-current-qdox.patch
d0cc43f
d0cc43f
BuildRequires:    maven-local
d0cc43f
BuildRequires:    mvn(com.thoughtworks.qdox:qdox)
d0cc43f
BuildRequires:    mvn(javax.inject:javax.inject)
e3a2a19
BuildRequires:    mvn(junit:junit)
e3a2a19
BuildRequires:    mvn(org.apache.ant:ant)
d0cc43f
BuildRequires:    mvn(org.apache.felix:maven-bundle-plugin)
e3a2a19
BuildRequires:    mvn(org.apache.maven:maven-plugin-api)
d0cc43f
BuildRequires:    mvn(org.apache.maven.plugins:maven-plugin-plugin)
e3a2a19
BuildRequires:    mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
d0cc43f
BuildRequires:    mvn(org.mockito:mockito-all)
d0cc43f
BuildRequires:    mvn(org.ow2.asm:asm)
d0cc43f
d0cc43f
BuildArch:        noarch
d0cc43f
d0cc43f
%description
Alexander Scheel 27dcfa1
Paranamer is a Java library that allows the parameter names of non-private
Alexander Scheel 27dcfa1
methods and constructors to be accessed at run-time. Most compilers discard
Alexander Scheel 27dcfa1
this information; traditional Reflection on JDK <= 7 would show something like
Alexander Scheel 27dcfa1
doSomething(mypackage.Person ???) instead of doSomething(mypackage.Person toMe).
Alexander Scheel 27dcfa1
The Paranamer library fills this gap for these JDK versions.
d0cc43f
d0cc43f
%package ant
d0cc43f
Summary:          ParaNamer Ant
d0cc43f
d0cc43f
%description ant
d0cc43f
This package contains the ParaNamer Ant tasks.
d0cc43f
d0cc43f
%package generator
d0cc43f
Summary:          ParaNamer Generator
d0cc43f
d0cc43f
%description generator
d0cc43f
This package contains the ParaNamer Generator.
d0cc43f
d0cc43f
%package integration-tests
d0cc43f
Summary:          ParaNamer Integration Test Parent POM
d0cc43f
d0cc43f
%description integration-tests
d0cc43f
ParaNamer Integration Test Parent POM.
d0cc43f
d0cc43f
%package it-011
d0cc43f
Summary:          ParaNamer Integration Test 011
d0cc43f
d0cc43f
%description it-011
d0cc43f
ParaNamer IT 011: can use maven plugin defaults.
d0cc43f
d0cc43f
%package maven-plugin
d0cc43f
Summary:          ParaNamer Maven plugin
d0cc43f
d0cc43f
%description maven-plugin
d0cc43f
This package contains the ParaNamer Maven plugin.
d0cc43f
d0cc43f
%package parent
d0cc43f
Summary:          ParaNamer Parent POM
d0cc43f
d0cc43f
%description parent
d0cc43f
This package contains the ParaNamer Parent POM.
d0cc43f
d0cc43f
%package javadoc
d0cc43f
Summary:          Javadoc for %{name}
d0cc43f
d0cc43f
%description javadoc
d0cc43f
This package contains the API documentation for %{name}.
d0cc43f
d0cc43f
%prep
d0cc43f
%setup -q -n %{name}-%{githash}
d0cc43f
d0cc43f
%patch0 -p1
d0cc43f
d0cc43f
# Cleanup
d0cc43f
find -name "*.class" -print -delete
d0cc43f
# Do not erase test resources
d0cc43f
find -name "*.jar" -print ! -name "test.jar" -delete
d0cc43f
d0cc43f
chmod -x LICENSE.txt
d0cc43f
608b043
# remove unnecessary dependency on parent POM
608b043
%pom_remove_parent
608b043
d0cc43f
# Remove wagon extension
d0cc43f
%pom_xpath_remove "pom:build/pom:extensions"
d0cc43f
d0cc43f
%pom_remove_plugin -r :maven-dependency-plugin
d0cc43f
%pom_remove_plugin -r :maven-javadoc-plugin
d0cc43f
%pom_remove_plugin -r :maven-source-plugin
d0cc43f
d0cc43f
# Disable distribution module
d0cc43f
%pom_disable_module %{name}-distribution
d0cc43f
d0cc43f
# Unavailable test deps
d0cc43f
%pom_remove_dep -r net.sourceforge.f2j:
d0cc43f
%pom_xpath_remove -r "pom:dependency[pom:classifier = 'javadoc' ]"
d0cc43f
# package org.netlib.blas does not exist
d0cc43f
rm -r %{name}/src/test/com/thoughtworks/paranamer/JavadocParanamerTest.java
d0cc43f
# testRetrievesParameterNamesFromBootstrapClassLoader java.lang.AssertionError:
d0cc43f
#       Should not find names for classes loaded by the bootstrap class loader.
d0cc43f
rm -r %{name}/src/test/com/thoughtworks/paranamer/BytecodeReadingParanamerTestCase.java
d0cc43f
d0cc43f
%build
d0cc43f
d0cc43f
%mvn_build -s
d0cc43f
d0cc43f
%install
d0cc43f
%mvn_install
d0cc43f
d0cc43f
%files -f .mfiles-%{name}
d0cc43f
%doc README.md
d0cc43f
%license LICENSE.txt
d0cc43f
d0cc43f
%files ant -f .mfiles-%{name}-ant
d0cc43f
d0cc43f
%files generator -f .mfiles-%{name}-generator
d0cc43f
%license LICENSE.txt
d0cc43f
d0cc43f
%files integration-tests -f .mfiles-%{name}-integration-tests
d0cc43f
%license LICENSE.txt
d0cc43f
d0cc43f
%files it-011 -f .mfiles-%{name}-it-011
d0cc43f
%license LICENSE.txt
d0cc43f
d0cc43f
%files maven-plugin -f .mfiles-%{name}-maven-plugin
d0cc43f
d0cc43f
%files parent -f .mfiles-%{name}-parent
d0cc43f
%license LICENSE.txt
d0cc43f
d0cc43f
%files javadoc -f .mfiles-javadoc
d0cc43f
%license LICENSE.txt
d0cc43f
d0cc43f
%changelog
ab31d09
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.8-12
ab31d09
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
ab31d09
608b043
* Tue Nov 19 2019 Fabio Valentini <decathorpe@gmail.com> - 2.8-11
608b043
- Remove unnecessary dependency on parent POM.
608b043
e3a2a19
* Tue Oct 08 2019 Fabio Valentini <decathorpe@gmail.com> - 2.8-10
e3a2a19
- Add BuildRequires for ant.
e3a2a19
d0cc43f
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.8-9
d0cc43f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
d0cc43f
d0cc43f
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.8-8
d0cc43f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
d0cc43f
d0cc43f
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.8-7
d0cc43f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
d0cc43f
d0cc43f
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.8-6
d0cc43f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
d0cc43f
d0cc43f
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.8-5
d0cc43f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
d0cc43f
d0cc43f
* Fri Feb 10 2017 Michael Simacek <msimacek@redhat.com> - 2.8-4
d0cc43f
- Port to current qdox
d0cc43f
d0cc43f
* Tue Jun 21 2016 gil cattaneo <puntogil@libero.it> 2.8-3
d0cc43f
- add missing build requires
d0cc43f
d0cc43f
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.8-2
d0cc43f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
d0cc43f
d0cc43f
* Fri Sep 25 2015 gil cattaneo <puntogil@libero.it> - 2.8-1
d0cc43f
- Upstream release 2.8
d0cc43f
- Fix FTBFS RHBZ#1239758
d0cc43f
- Split maven plugin to sub package RHBZ#1119279
d0cc43f
- Use Qdox 2.x RHBZ#1191694
d0cc43f
- Run test suite
d0cc43f
- Use BR mvn()-like
d0cc43f
- Fix URL field
d0cc43f
- Introduce license macro
d0cc43f
- Minor changes for adapt to current guideline
d0cc43f
d0cc43f
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.1-10
d0cc43f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
d0cc43f
d0cc43f
* Tue Jun 17 2014 Marek Goldmann <mgoldman@redhat.com> - 2.4.1-9
d0cc43f
- Switch to xmvn
d0cc43f
d0cc43f
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.1-8
d0cc43f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
d0cc43f
d0cc43f
* Fri Mar 28 2014 Michael Simacek <msimacek@redhat.com> - 2.4.1-7
d0cc43f
- Use Requires: java-headless rebuild (#1067528)
d0cc43f
d0cc43f
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.1-6
d0cc43f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
d0cc43f
d0cc43f
* Wed Feb 20 2013 Marek Goldmann <mgoldman@redhat.com> - 2.4.1-5
d0cc43f
- Using pom macros
d0cc43f
- Fixed build by adding version to the plugin
d0cc43f
d0cc43f
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.1-4
d0cc43f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
d0cc43f
d0cc43f
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 2.4.1-3
d0cc43f
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
d0cc43f
- Replace maven BuildRequires with maven-local
d0cc43f
d0cc43f
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.1-2
d0cc43f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
d0cc43f
d0cc43f
* Mon Mar 12 2012 Marek Goldmann <mgoldman@redhat.com> 2.4.1-1
d0cc43f
- Upstream release 2.4.1
d0cc43f
- Cleanup in spec file
d0cc43f
d0cc43f
* Mon Mar 12 2012 Marek Goldmann <mgoldman@redhat.com> 2.2-2
d0cc43f
- Updated summary and url
d0cc43f
d0cc43f
* Tue Feb 21 2012 Marek Goldmann <mgoldman@redhat.com> 2.2-1
d0cc43f
- Initial packaging
d0cc43f