Blame SPECS/apache-rat.spec

63512c
%global snapdate 20100827
63512c
#svn 990212.
63512c
63512c
Name:           apache-rat
63512c
Version:        0.8
63512c
Release:        13%{?dist}
63512c
Summary:        Apache Release Audit Tool (RAT)
63512c
63512c
Group:          Development/Libraries
63512c
License:        ASL 2.0
63512c
URL:            http://creadur.apache.org/rat/
63512c
#svn had a number of needed bugfixes
63512c
#svn export -r 990212 http://svn.apache.org/repos/asf/incubator/rat/main/trunk apache-rat-0.8-20100707
63512c
#Source0:        %{name}-%{version}-%{snapdate}.tar.bz2
63512c
Source0:        http://www.apache.org/dist/incubator/rat/sources/apache-rat-incubating-%{version}-src.tar.bz2
63512c
Patch0:         apache-rat-0.8-doxia-1.1.patch
63512c
Patch1:         apache-rat-compat.patch
63512c
Patch2:         apache-rat-0.8-test.patch
63512c
BuildArch:      noarch
63512c
63512c
BuildRequires:  jpackage-utils
63512c
BuildRequires:  java-devel
63512c
BuildRequires:  maven-local
63512c
BuildRequires:  maven-antrun-plugin
63512c
BuildRequires:  maven-dependency-plugin
63512c
BuildRequires:  maven-install-plugin
63512c
BuildRequires:  maven-invoker-plugin
63512c
BuildRequires:  maven-plugin-plugin
63512c
BuildRequires:  maven-site-plugin
63512c
BuildRequires:  maven-source-plugin
63512c
BuildRequires:  maven-surefire-maven-plugin
63512c
BuildRequires:  maven-wagon
63512c
63512c
BuildRequires:  ant-antunit
63512c
BuildRequires:  ant-testutil
63512c
BuildRequires:  apache-commons-compress
63512c
63512c
63512c
%description
63512c
Release Audit Tool (RAT) is a tool to improve accuracy and efficiency when
63512c
checking releases. It is heuristic in nature: making guesses about possible
63512c
problems. It will produce false positives and cannot find every possible
63512c
issue with a release. It's reports require interpretation.
63512c
63512c
RAT was developed in response to a need felt in the Apache Incubator to be
63512c
able to review releases for the most common faults less labor intensively.
63512c
It is therefore highly tuned to the Apache style of releases.
63512c
63512c
This package just contains meta-data, you will want either apache-rat-tasks,
63512c
or apache-rat-plugin.
63512c
63512c
63512c
%package core
63512c
Summary:        Core functionality for %{name}
63512c
Group:          Development/Libraries
63512c
Requires:       %{name} = %{version}-%{release}
63512c
63512c
%description core
63512c
The core functionality of RAT, shared by the Ant tasks, and the Maven plugin.
63512c
It also includes a wrapper script "apache-rat" that should be the equivalent
63512c
to running upstream's "java -jar apache-rat.jar".
63512c
63512c
63512c
%package plugin
63512c
Summary:        Maven plugin for %{name}
63512c
Group:          Development/Libraries
63512c
Requires:       %{name}-core = %{version}-%{release}
63512c
63512c
%description plugin
63512c
Maven plugin for running RAT, the Release Audit Tool.
63512c
63512c
63512c
%package tasks
63512c
Summary:        Ant tasks for %{name}
63512c
Group:          Development/Libraries
63512c
Requires:       %{name}-core = %{version}-%{release}
63512c
63512c
%description tasks
63512c
Ant tasks for running RAT.
63512c
63512c
63512c
%package javadoc
63512c
Summary:        Javadocs for %{name}
63512c
Group:          Documentation
63512c
63512c
%description javadoc
63512c
This package contains the API documentation for %{name}.
63512c
63512c
63512c
%prep
63512c
%setup -q -n %{name}-%{version}
63512c
%patch0 -p1 -b .doxia-1.1
63512c
%patch1 -p1 -b .compat
63512c
%patch2 -p1 -b .test
63512c
63512c
%pom_remove_plugin :maven-antrun-plugin apache-rat-tasks
63512c
63512c
%mvn_package :apache-rat-project apache-rat
63512c
63512c
%build
63512c
%mvn_build -f -s
63512c
63512c
%install
63512c
%mvn_install
63512c
63512c
#Wrapper script
63512c
%jpackage_script org.apache.rat.Report "" "" %{name}/%{name}-core:commons-cli:commons-io:commons-collections:commons-compress:commons-lang:junit apache-rat true 
63512c
63512c
#Ant taksks
63512c
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ant.d
63512c
echo "apache-rat/rat-core apache-rat/rat-tasks" > $RPM_BUILD_ROOT%{_sysconfdir}/ant.d/%{name}
63512c
63512c
63512c
%files -f .mfiles-apache-rat
63512c
%doc DISCLAIMER.txt LICENSE NOTICE README.txt RELEASE_NOTES.txt
63512c
%dir %{_javadir}/%{name}
63512c
63512c
%files core -f .mfiles-apache-rat-core
63512c
%doc LICENSE NOTICE
63512c
%{_bindir}/%{name}
63512c
63512c
%files plugin -f .mfiles-apache-rat-plugin
63512c
%doc LICENSE NOTICE
63512c
63512c
%files tasks -f .mfiles-apache-rat-tasks
63512c
%doc LICENSE NOTICE
63512c
%{_sysconfdir}/ant.d/%{name}
63512c
63512c
%files javadoc -f .mfiles-javadoc
63512c
%doc LICENSE NOTICE
63512c
63512c
63512c
%changelog
63512c
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.8-13
63512c
- Mass rebuild 2013-12-27
63512c
63512c
* Tue Aug 27 2013 Michal Srb <msrb@redhat.com> - 0.8-12
63512c
- Migrate away from mvn-rpmbuild (Resolves: #997517)
63512c
63512c
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.8-11
63512c
- Rebuild to regenerate API documentation
63512c
- Resolves: CVE-2013-1571
63512c
63512c
* Tue Jun 11 2013 Orion Poplawski <orion@cora.nwra.com> 0.8-10
63512c
- Split up depmap fragments (bug 973242)
63512c
63512c
* Tue Feb 26 2013 Orion Poplawski <orion@cora.nwra.com> 0.8-9
63512c
- Drop BR on maven-doxia and maven-doxia-sitetools (bug #915606)
63512c
63512c
* Tue Feb 12 2013 Orion Poplawski <orion@cora.nwra.com> 0.8-8
63512c
- Add apache-rat wrapper script to apache-rat-core (bug #907782)
63512c
- Disable tests for now due to Fedora maven bug
63512c
63512c
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 0.8-7
63512c
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
63512c
- Replace maven BuildRequires with maven-local
63512c
63512c
* Thu Aug 16 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.8-6
63512c
- Run mvn-rpmbuild package instead of install
63512c
63512c
* Thu Aug 16 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.8-5
63512c
- Install NOTICE files
63512c
- Remove defattr
63512c
63512c
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8-4
63512c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
63512c
63512c
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8-3
63512c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
63512c
63512c
* Wed Dec 7 2011 Orion Poplawski <orion@cora.nwra.com> 0.8-2
63512c
- Update to maven 3
63512c
63512c
* Tue Dec 6 2011 Orion Poplawski <orion@cora.nwra.com> 0.8-1
63512c
- Update to 0.8 release
63512c
- Add BR maven-invoker-plugin
63512c
63512c
* Thu Apr 28 2011 Orion Poplawski <orion@cora.nwra.com> 0.8-0.7.20100827
63512c
- Add needed requires to core
63512c
63512c
* Thu Mar 3 2011 Orion Poplawski <orion@cora.nwra.com> 0.8-0.6.20100827
63512c
- Drop unneeded rm from %%install
63512c
- Don't ship BUILD.txt
63512c
- Cleanup Requires
63512c
63512c
* Mon Dec 27 2010 Orion Poplawski <orion@cora.nwra.com> 0.8-0.5.20100827
63512c
- Drop maven settings patch
63512c
- Add svn revision to export command
63512c
- Set maven.test.failure.ignore=true instead of maven.test.skip
63512c
- Use %%{_mavenpomdir}
63512c
63512c
* Thu Dec 9 2010 Orion Poplawski <orion@cora.nwra.com> 0.8-0.4.20100827
63512c
- Change BR to ant-antunit
63512c
- Drop versioned jar and javadoc
63512c
- Drop BuildRoot and %%clean
63512c
63512c
* Mon Nov 1 2010 Orion Poplawski <orion@cora.nwra.com> 0.8-0.3.20100827
63512c
- Add /etc/ant.d/apache-rat
63512c
63512c
* Fri Oct 29 2010 Orion Poplawski <orion@cora.nwra.com> 0.8-0.2.20100827
63512c
- First real working package
63512c
63512c
* Wed Aug 11 2010 Orion Poplawski <orion@cora.nwra.com> 0.8-0.1
63512c
- Initial Fedora package