Name: apache-rat Summary: Apache Release Audit Tool (RAT) Version: 0.13 Release: %mkrel 3 Group: Development/Java License: ASL 2.0 URL: http://creadur.apache.org/rat/ Source0: http://www.apache.org/dist/creadur/%{name}-%{version}/%{name}-%{version}-src.tar.bz2 Patch1: 0001-Port-to-current-doxia-sitetools.patch BuildArch: noarch BuildRequires: maven-local BuildRequires: mvn(commons-cli:commons-cli) BuildRequires: mvn(commons-collections:commons-collections) BuildRequires: mvn(commons-io:commons-io) BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.apache.ant:ant) BuildRequires: mvn(org.apache.ant:ant-antunit) BuildRequires: mvn(org.apache.ant:ant-testutil) BuildRequires: mvn(org.apache:apache:pom:) BuildRequires: mvn(org.apache.commons:commons-compress) BuildRequires: mvn(org.apache.commons:commons-lang3) BuildRequires: mvn(org.apache.maven.doxia:doxia-core) BuildRequires: mvn(org.apache.maven.doxia:doxia-decoration-model) BuildRequires: mvn(org.apache.maven.doxia:doxia-sink-api) BuildRequires: mvn(org.apache.maven.doxia:doxia-site-renderer) BuildRequires: mvn(org.apache.maven:maven-artifact:2.2.1) BuildRequires: mvn(org.apache.maven:maven-artifact-manager) BuildRequires: mvn(org.apache.maven:maven-model:2.2.1) BuildRequires: mvn(org.apache.maven:maven-plugin-api) BuildRequires: mvn(org.apache.maven:maven-project) BuildRequires: mvn(org.apache.maven:maven-settings:2.2.1) BuildRequires: mvn(org.apache.maven.plugins:maven-dependency-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin) BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations) BuildRequires: mvn(org.apache.maven.reporting:maven-reporting-api) BuildRequires: mvn(org.apache.maven.shared:maven-plugin-testing-harness) BuildRequires: mvn(org.codehaus.plexus:plexus-utils) BuildRequires: mvn(org.hamcrest:hamcrest-library) BuildRequires: mvn(org.mockito:mockito-all) BuildRequires: mvn(org.mockito:mockito-core) %description Release Audit Tool (RAT) is a tool to improve accuracy and efficiency when checking releases. It is heuristic in nature: making guesses about possible problems. It will produce false positives and cannot find every possible issue with a release. It's reports require interpretation. RAT was developed in response to a need felt in the Apache Incubator to be able to review releases for the most common faults less labor intensively. It is therefore highly tuned to the Apache style of releases. This package just contains meta-data, you will want either apache-rat-tasks, or apache-rat-plugin. %package api Summary: API module for %{name} %description api Shared beans and services. %package core Summary: Core functionality for %{name} # explicit requires for javapackages-tools since apache-rat-script # uses /usr/share/java-utils/java-functions Requires: javapackages-tools %description core The core functionality of RAT, shared by the Ant tasks, and the Maven plugin. It also includes a wrapper script "apache-rat" that should be the equivalent to running upstream's "java -jar apache-rat.jar". %package plugin Summary: Maven plugin for %{name} %description plugin Maven plugin for running RAT, the Release Audit Tool. %package tasks Summary: Ant tasks for %{name} %description tasks Ant tasks for running RAT. %package javadoc Summary: Javadocs for %{name} %description javadoc This package contains the API documentation for %{name}. %prep %setup -q %patch1 -p1 # apache-rat is a module bundling other RAT modules together and as # such it is not needed. %pom_disable_module apache-rat # maven-antrun-plugin is used for running tests only and tests are # skipped anyways. See rhbz#988561 %pom_remove_plugin -r :maven-antrun-plugin # don't run apache-rat's checks on apache-rat: # these tests fail and would introduce a circular self-dependency %pom_remove_plugin -r :apache-rat-plugin %pom_remove_plugin :animal-sniffer-maven-plugin %pom_remove_plugin :maven-enforcer-plugin # runs non-xmvn maven and downloads stuff %pom_remove_plugin -r :maven-invoker-plugin # wagon-ssh is not needed in Fedora. %pom_xpath_remove pom:extensions # trivial port to commons-lang3 %pom_change_dep -r :commons-lang org.apache.commons:commons-lang3:3.8.1 sed -i "s/org.apache.commons.lang./org.apache.commons.lang3./g" \ apache-rat-core/src/main/java/org/apache/rat/document/impl/guesser/GuessUtils.java sed -i "s/org.apache.commons.lang./org.apache.commons.lang3./g" \ apache-rat-core/src/main/java/org/apache/rat/report/claim/impl/xml/SimpleXmlClaimReporter.java sed -i "s/org.apache.commons.lang./org.apache.commons.lang3./g" \ apache-rat-core/src/main/java/org/apache/rat/Report.java # incompatible with our plexus-container rm apache-rat-plugin/src/test/java/org/apache/rat/mp/RatCheckMojoTest.java %build %mvn_build -s -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8 %install %mvn_install # create wrapper script %jpackage_script org.apache.rat.Report "" "" %{name}/%{name}-core:commons-cli:commons-io:commons-collections:commons-compress:commons-lang:junit apache-rat true # install ant taksks mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ant.d echo "apache-rat/rat-core apache-rat/rat-tasks" > $RPM_BUILD_ROOT%{_sysconfdir}/ant.d/%{name} %files -f .mfiles-%{name}-project %doc LICENSE NOTICE %files api -f .mfiles-%{name}-api %doc README.txt RELEASE-NOTES.txt %doc LICENSE NOTICE %files core -f .mfiles-%{name}-core %{_bindir}/%{name} %files plugin -f .mfiles-%{name}-plugin %files tasks -f .mfiles-%{name}-tasks %{_sysconfdir}/ant.d/%{name} %doc ant-task-examples.xml %files javadoc -f .mfiles-javadoc %doc LICENSE NOTICE %changelog * Fri Sep 11 2020 daviddavid <daviddavid> 0.13-3.mga8 + Revision: 1624511 - Port to commons-lang3 - Set javac source and target to 1.8 to fix Java 11 builds - Rebuilt for JDK-11 * Sat Feb 15 2020 umeabot <umeabot> 0.13-2.mga8 + Revision: 1528630 - Mageia 8 Mass Rebuild * Sat Aug 24 2019 daviddavid <daviddavid> 0.13-1.mga8 + Revision: 1431631 - Update to version 0.13 * Wed Oct 10 2018 daviddavid <daviddavid> 0.12-1.mga7 + Revision: 1319228 - new version: 0.12 (sync with fc29) * Tue Sep 18 2018 umeabot <umeabot> 0.11-8.mga7 + Revision: 1261225 - Mageia 7 Mass Rebuild * Tue Sep 18 2018 umeabot <umeabot> 0.11-7.mga7 + Revision: 1260323 - Mageia 7 Mass Rebuild * Tue Sep 18 2018 umeabot <umeabot> 0.11-6.mga7 + Revision: 1259951 - Mageia 7 Mass Rebuild * Tue Sep 18 2018 umeabot <umeabot> 0.11-5.mga7 + Revision: 1259815 - Mageia 7 Mass Rebuild * Wed Mar 02 2016 neoclust <neoclust> 0.11-4.mga6 + Revision: 982310 - Second rebuild of the java stack * Sun Feb 21 2016 neoclust <neoclust> 0.11-3.mga6 + Revision: 975440 - First rebuild of the java stack - sync package apache-rat with fedora + umeabot <umeabot> - Mageia 6 Mass Rebuild * Thu Dec 25 2014 pterjan <pterjan> 0.10-8.mga5 + Revision: 805574 - Clean rebuild - Sync with Fedora 21 - Restore + sander85 <sander85> - Depends on broken java stack + umeabot <umeabot> - Second Mageia 5 Mass Rebuild - Mageia 5 Mass Rebuild * Wed Jan 08 2014 dmorgan <dmorgan> 0.10-3.mga4 + Revision: 565545 - Fix BuildRequires + umeabot <umeabot> - Mageia 4 Mass Rebuild * Sun Sep 29 2013 dmorgan <dmorgan> 0.10-1.mga4 + Revision: 489009 - New version * Fri Jan 11 2013 umeabot <umeabot> 0.8-3.mga3 + Revision: 345896 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Tue Dec 04 2012 dmorgan <dmorgan> 0.8-2.mga3 + Revision: 326697 - Build with maven 3 * Wed Jul 27 2011 dmorgan <dmorgan> 0.8-1.mga2 + Revision: 129952 - Clean spec file * Fri Jun 10 2011 gil <gil> 0.8-0.mga2 + Revision: 102794 - imported package apache-rat