Blame SPECS/apache-rat.spec

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