Name: snip
Version: 0.11
Release: 6%{?dist}
Summary: An Ant task designed to help with the single-sourcing of program documentation
License: BSD
URL: http://www.martiansoftware.com/lab/snip/
Source0: http://martiansoftware.com/lab/snip/snip-0.11-src.zip
Patch0: snip-build.patch
BuildArch: noarch
BuildRequires: javapackages-local
BuildRequires: ant
#/usr/share/java must be owned:
Requires: javapackages-tools
%description
An Ant task designed to help with the single-sourcing of program documentation.
%package javadoc
Summary: Javadocs for %{name}
%description javadoc
This package contains the API documentation for %{name}.
%prep
%setup -qc -n %{name}-%{version}
rm %{name}-%{version}.jar
rm -rf javadoc/
%patch0 -p0
%build
ant jar javadoc
%install
mkdir -p %{buildroot}%{_javadir}
install -pm 0755 dist/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
mkdir -p %{buildroot}%{_javadocdir}/
mv javadoc/ %{buildroot}%{_javadocdir}/%{name}
%files
%{_javadir}/%{name}.jar
%doc LICENSE.txt
%files javadoc
%doc LICENSE.txt
%{_javadocdir}/%{name}
%changelog
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Wed Aug 20 2014 Ismael Olea <ismael@olea.org> - 0.11-4
- final suggestion: https://bugzilla.redhat.com/show_bug.cgi?id=1130756#c9
* Mon Aug 18 2014 Ismael Olea <ismael@olea.org> - 0.11-3
- all suggestions from https://bugzilla.redhat.com/show_bug.cgi?id=1130756#c1
* Mon Aug 18 2014 Ismael Olea <ismael@olea.org> - 0.11-2
- sonme suggestions from https://bugzilla.redhat.com/show_bug.cgi?id=1130756#c1
* Sat Aug 16 2014 Ismael Olea <ismael@olea.org> - 0.11-1
- first release