f34087c
Name:             mimepull
f34087c
Version:          1.9.6
65504ea
Release:          10%{?dist}
f34087c
Summary:          Streaming API to access attachments from a MIME message
f34087c
License:          CDDL and GPLv2 with exceptions
f34087c
URL:              http://mimepull.java.net
f34087c
f34087c
# svn export https://svn.java.net/svn/mimepull~svn/tags/mimepull-1.9.6/ mimepull-1.9.6
f34087c
# tar cafJ mimepull-1.9.6.tar.xz mimepull-1.9.6
f34087c
Source0:          mimepull-%{version}.tar.xz
f34087c
f34087c
BuildArch:        noarch
65504ea
f34087c
BuildRequires:    maven-local
f34087c
BuildRequires:    mvn(junit:junit)
f34087c
BuildRequires:    mvn(net.java:jvnet-parent:pom:)
f34087c
BuildRequires:    mvn(org.apache.felix:maven-bundle-plugin)
f34087c
BuildRequires:    mvn(org.apache.maven.plugins:maven-enforcer-plugin)
f34087c
f34087c
%description
f34087c
Provides a streaming API to access attachments parts in a MIME message
f34087c
f34087c
%package javadoc
f34087c
Summary:          Javadoc for %{name}
f34087c
f34087c
%description javadoc
f34087c
This package contains the API documentation for %{name}.
f34087c
f34087c
%prep
f34087c
%setup -q
f34087c
f34087c
# Unavailable plugins
f34087c
%pom_remove_plugin :cobertura-maven-plugin
f34087c
%pom_remove_plugin :findbugs-maven-plugin
f34087c
%pom_remove_plugin :glassfish-copyright-maven-plugin
65504ea
f34087c
# Unneeded plugins
65504ea
%pom_remove_plugin :buildnumber-maven-plugin
f34087c
%pom_remove_plugin :maven-assembly-plugin
f34087c
%pom_remove_plugin :maven-deploy-plugin
f34087c
%pom_remove_plugin :maven-gpg-plugin
65504ea
%pom_remove_plugin :maven-release-plugin
f34087c
%pom_remove_plugin :maven-source-plugin
f34087c
f34087c
%pom_remove_plugin :maven-enforcer-plugin
f34087c
%pom_add_plugin org.apache.maven.plugins:maven-enforcer-plugin:1.0.1 . '
f34087c
<executions>
f34087c
    <execution>
f34087c
        <id>enforce-versions</id>
f34087c
        <goals>
f34087c
            <goal>enforce</goal>
f34087c
        </goals>
f34087c
    </execution>
f34087c
</executions>
f34087c
<configuration>
f34087c
    <rules>
f34087c
        <requireJavaVersion>
f34087c
            <version>[1.7,)</version>
f34087c
        </requireJavaVersion>
f34087c
            <requireMavenVersion>
f34087c
                <version>[3.0.3,)</version>
f34087c
            </requireMavenVersion>
f34087c
        <DependencyConvergence/>
f34087c
    </rules>
f34087c
</configuration>'
f34087c
f34087c
f34087c
iconv -f iso8859-1 -t utf-8 LICENSE > LICENSE.conv && mv -f LICENSE.conv LICENSE
f34087c
sed -i 's/\r//' LICENSE
f34087c
f34087c
%build
f34087c
%mvn_build
f34087c
f34087c
%install
f34087c
%mvn_install
f34087c
f34087c
%files -f .mfiles
f34087c
%license LICENSE
f34087c
f34087c
%files javadoc -f .mfiles-javadoc
f34087c
%license LICENSE
f34087c
f34087c
%changelog
65504ea
* Mon Oct 14 2019 Fabio Valentini <decathorpe@gmail.com> - 1.9.6-10
65504ea
- Remove useless maven release and buildnumber plugins to fix builds.
65504ea
f34087c
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.6-9
f34087c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
f34087c
f34087c
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.6-8
f34087c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
f34087c
f34087c
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.6-7
f34087c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
f34087c
f34087c
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.6-6
f34087c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f34087c
f34087c
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.6-5
f34087c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f34087c
f34087c
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.6-4
f34087c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
f34087c
f34087c
* Tue Aug 09 2016 gil cattaneo <puntogil@libero.it> 1.9.6-3
f34087c
- add missing build requires: xmvn
f34087c
- prevent duplicate pom BR entries
f34087c
f34087c
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.6-2
f34087c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
f34087c
f34087c
* Fri Sep 25 2015 gil cattaneo <puntogil@libero.it> 1.9.6-1
f34087c
- update to 1.9.6
f34087c
f34087c
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.5-2
f34087c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
f34087c
f34087c
* Tue Jun 09 2015 gil cattaneo <puntogil@libero.it> 1.9.5-1
f34087c
- update to 1.9.5
f34087c
- use mvn()-like BRs
f34087c
- minor changes for adapt to current guideline
f34087c
f34087c
* Wed Jul 02 2014 Marek Goldmann <mgoldman@redhat.com> - 1.8-9
f34087c
- Switch to xmvn
f34087c
f34087c
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8-8
f34087c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
f34087c
f34087c
* Fri Mar 28 2014 Michael Simacek <msimacek@redhat.com> - 1.8-7
f34087c
- Use Requires: java-headless rebuild (#1067528)
f34087c
f34087c
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8-6
f34087c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
f34087c
f34087c
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8-5
f34087c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
f34087c
f34087c
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1.8-4
f34087c
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
f34087c
- Replace maven BuildRequires with maven-local
f34087c
f34087c
* Wed Oct 24 2012 Marek Goldmann <mgoldman@redhat.com> - 1.8-3
f34087c
- Added maven-enforcer-plugin BR
f34087c
f34087c
* Wed Oct 24 2012 Marek Goldmann <mgoldman@redhat.com> - 1.8-2
f34087c
- Fixed encoding in LICENSE file
f34087c
- Added missing BR
f34087c
f34087c
* Tue Oct 23 2012 Marek Goldmann <mgoldman@redhat.com> - 1.8-1
f34087c
- Initial packaging
f34087c
f34087c