Blame SPECS/apache-rat.spec

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