Name: nar-maven-plugin Version: 3.0.0 Release: 1%{dist} Summary: Native ARchive plugin for Maven License: ASL 2.0 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 BuildRequires: maven-plugins-pom BuildRequires: maven-local BuildRequires: maven-artifact-resolver BuildRequires: maven-artifact BuildRequires: maven-surefire 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: Javadocs for %{name} %description javadoc This package contains the API documentation for %{name}. %prep %setup -q -n nar-maven-plugin-nar-maven-plugin-%{version} %pom_xpath_remove "pom:build/pom:extensions" %pom_add_dep "org.apache.maven.surefire:surefire-booter" %pom_add_dep "org.apache.maven.shared:maven-artifact-resolver" cp %{SOURCE1} . rm src/main/java/com/github/maven_nar/NarIntegrationTestMojo.java %build %mvn_build %install %mvn_install %files -f .mfiles %dir %{_javadir}/%{name} %doc README.md LICENSE-2.0.txt %files javadoc -f .mfiles-javadoc %doc README.md LICENSE-2.0.txt %changelog * Mon Dec 23 2013 Marek Goldmann - 3.0.0-1 - Initial packaging