Name: nar-maven-plugin Version: 3.0.0 Release: %mkrel 15 Group: Development/Java Summary: Native ARchive plugin for Maven License: ASL 2.0 and LGPLv2 URL: https://github.com/maven-nar/nar-maven-plugin/ Source0: https://github.com/maven-nar/nar-maven-plugin/archive/nar-maven-plugin-%{version}.tar.gz Source1: http://www.apache.org/licenses/LICENSE-2.0.txt Patch0: 0001-Add-support-for-handling-the-RPM_OPT_FLAGS-variable-.patch Patch1: 0002-Added-ARM-support.patch Patch2: 0003-Added-PPC64LE-support.patch # Patch adds support for rest sec archs not included in previous patches, # also fixes bad C defines on ppc64le Patch3: secarch.patch # NarProperties unreported exception java.io.IOException; must be caught or declared to be thrown Patch4: nar-maven-plugin-3.0.0-unreported-IOException.patch BuildRequires: maven-local BuildRequires: mvn(commons-io:commons-io) BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.apache.ant:ant) BuildRequires: mvn(org.apache.bcel:bcel) BuildRequires: mvn(org.apache.maven:maven-core) BuildRequires: mvn(org.apache.maven:maven-model) BuildRequires: mvn(org.apache.maven:maven-plugin-api) BuildRequires: mvn(org.apache.maven:maven-project) BuildRequires: mvn(org.apache.maven:maven-toolchain) BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-plugins:pom:) BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin) BuildRequires: mvn(org.apache.maven.shared:maven-artifact-resolver) BuildRequires: mvn(org.apache.maven.surefire:surefire-booter) BuildRequires: mvn(org.codehaus.plexus:plexus-archiver) BuildRequires: mvn(org.codehaus.plexus:plexus-compiler-api) BuildRequires: mvn(org.codehaus.plexus:plexus-container-default) BuildRequires: mvn(org.codehaus.plexus:plexus-utils) BuildRequires: mvn(xerces:xercesImpl) BuildArch: noarch %description The NAR plugin for Maven allows you to compile native code (C++, C and Fortran) on a number of different architectures (Linux, Windows, MacOSX, Solaris, ...) and with a number of different compilers/linkers (g++, Microsoft Visual C++, CC, ...) The output produced is wrapped up in Native ARchive files (.nar) some of which are machine independent (-noarch), while others are machine specific and thus depend on a combination of machine architecture(A), operating-system(O) and linker(L) identified as AOL. These nar files can be installed in the local Maven repository and deployed to a standard Maven (web) server, using the standard maven-install-plugin and maven-deploy-plugin. %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains the API documentation for %{name}. %prep %setup -q -n nar-maven-plugin-nar-maven-plugin-%{version} %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 -b .secarch %patch4 -p1 # Remove bundled stuff rm -rf src/it/it0006-jni-3rdparty/src/nar/resources/aol %pom_xpath_remove "pom:build/pom:extensions" # Duplicate pom entry #%% pom_add_dep "org.apache.maven.surefire:surefire-booter" %pom_add_dep "org.apache.maven.shared:maven-artifact-resolver" %pom_remove_plugin :maven-gpg-plugin %pom_remove_plugin :maven-javadoc-plugin %pom_remove_plugin :maven-source-plugin cp %{SOURCE1} . rm src/main/java/com/github/maven_nar/NarIntegrationTestMojo.java %build %mvn_build %install %mvn_install %files -f .mfiles %doc README.md %license LICENSE-2.0.txt %files javadoc -f .mfiles-javadoc %doc README.md %license LICENSE-2.0.txt %changelog * Wed Sep 19 2018 umeabot <umeabot> 3.0.0-15.mga7 (not released yet) + Revision: 1264657 - Mageia 7 Mass Rebuild * Sat May 20 2017 neoclust <neoclust> 3.0.0-14.mga6 + Revision: 1103748 - Fix BuildRequires - Second rebuild of the java stack * Wed Feb 24 2016 neoclust <neoclust> 3.0.0-12.mga6 + Revision: 977744 - First rebuild of the java stack - sync package nar-maven-plugin with fedora + umeabot <umeabot> - Mageia 6 Mass Rebuild * Tue Dec 30 2014 pterjan <pterjan> 3.0.0-2.mga5 + Revision: 807462 - Add missing BuildRequires - Mageify - imported package nar-maven-plugin * Fri Jul 11 2014 Jakub Äajka <jcajka@redhat.com> - 3.0.0-8 - Added/fixed support for secondary architectures(s390(x),ppc(64(le)), aarch64) * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Fri Mar 28 2014 Michael Simacek <msimacek@redhat.com> - 3.0.0-6 - Use Requires: java-headless rebuild (#1067528) * Tue Mar 18 2014 Brent Baude <baude@us.ibm.com> - 3.0.0-5 - Add ppc64le support - Fixes rhbz#1077862 * Fri Jan 24 2014 Marek Goldmann <mgoldman@redhat.com> - 3.0.0-4 - Fixed (hopefully) ARM support * Tue Jan 21 2014 Marek Goldmann <mgoldman@redhat.com> - 3.0.0-3 - Add support for handling the $RPM_OPT_FLAGS variable, RHBZ#1056049 * Fri Jan 10 2014 Marek Goldmann <mgoldman@redhat.com> - 3.0.0-2 - Added support for ARM - Fixed license field - Removed bundled libraries * Mon Dec 23 2013 Marek Goldmann <mgoldman@redhat.com> - 3.0.0-1 - Initial packaging