ff29199
Name:           os-maven-plugin
a3f0322
Version:        1.6.2
bdf5041
Release:        2%{?dist}
ff29199
Summary:        Maven plugin for generating platform-dependent properties
ff29199
License:        ASL 2.0
ff29199
URL:            https://github.com/trustin/os-maven-plugin/
ff29199
BuildArch:      noarch
ff29199
a3f0322
Source0:        https://github.com/trustin/%{name}/archive/%{name}-%{version}.tar.gz
ff29199
a3f0322
Patch0:         0001-Don-t-fail-on-unknown-arch.patch
2998aa5
ff29199
BuildRequires:  maven-local
681efa2
BuildRequires:  mvn(com.google.code.findbugs:jsr305)
54f7c40
BuildRequires:  mvn(junit:junit)
54f7c40
BuildRequires:  mvn(org.apache.maven:maven-core)
54f7c40
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
54f7c40
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
54f7c40
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
54f7c40
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)
54f7c40
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
ff29199
ff29199
%description
ff29199
os-maven-plugin is a Maven extension/plugin that generates various
ff29199
useful platform-dependent project properties normalized from
ff29199
${os.name} and ${os.arch}.
ff29199
ff29199
${os.name} and ${os.arch} are often subtly different between JVM and
ff29199
operating system versions or they sometimes contain machine-unfriendly
ff29199
characters such as whitespaces. This plugin tries to remove such
ff29199
fragmentation so that you can determine the current operating system
ff29199
and architecture reliably.
ff29199
ff29199
%package javadoc
ff29199
Summary:        API documentation for %{name}
2c06737
ff29199
%description javadoc
ff29199
This package provides %{summary}.
ff29199
ff29199
%prep
a3f0322
%setup -q -n %{name}-%{name}-%{version}
ff29199
2998aa5
%patch0 -p1
2998aa5
1f1e1c1
# remove unnecessary dependency on parent POM
1f1e1c1
%pom_remove_parent
1f1e1c1
ff29199
# Remove Eclipse plugin (not needed in Fedora)
ff29199
%pom_remove_dep org.eclipse:ui
2c06737
%pom_remove_plugin :maven-jar-plugin
ff29199
find -name EclipseStartup.java -delete
ff29199
find -name plugin.xml -delete
ff29199
a3f0322
%pom_remove_plugin org.codehaus.mojo:animal-sniffer-maven-plugin
a3f0322
ff29199
%build
ff29199
%mvn_build
ff29199
ff29199
%install
ff29199
%mvn_install
ff29199
ff29199
%files -f .mfiles
ff29199
%doc LICENSE.txt
ff29199
ff29199
%files javadoc -f .mfiles-javadoc
ff29199
%doc LICENSE.txt
ff29199
ff29199
%changelog
bdf5041
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.6.2-2
bdf5041
- Mass rebuild for javapackages-tools 201902
abb9f61
a3f0322
* Thu Jun 27 2019 Marian Koncek <mkoncek@redhat.com> - 1.6.2-1
a3f0322
- Update to upstream version 1.6.2
71888ad
12ec540
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.2.3-10
12ec540
- Mass rebuild for javapackages-tools 201901
485fe27
55805e8
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.3-9
55805e8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
55805e8
ab7dc0d
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.3-8
ab7dc0d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
ab7dc0d
77ccfee
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.3-7
77ccfee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
77ccfee
54f7c40
* Wed Jun 15 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.2.3-6
54f7c40
- Regenerate build-requires
54f7c40
bb975ad
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.3-5
bb975ad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
bb975ad
f955a8c
* Wed Jul 15 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.2.3-4
f955a8c
- Don't fail on unknown arch
f955a8c
90dc3fe
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.3-3
90dc3fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
90dc3fe
2998aa5
* Mon Mar 30 2015 Michael Simacek <msimacek@redhat.com> - 1.2.3-2
2998aa5
- Port to current plexus-utils
2998aa5
ff29199
* Tue Jul  8 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.2.3-1
ff29199
- Initial pagkaging