[mybatis-parent] Initial import (#954134).
gil
gil at fedoraproject.org
Tue Apr 23 12:29:25 UTC 2013
commit b7d538b99654e3318edd8f10f7282b9ec5d274f9
Author: gil <puntogil at libero.it>
Date: Tue Apr 23 14:29:10 2013 +0200
Initial import (#954134).
.gitignore | 1 +
mybatis-parent.spec | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 85 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..9567561 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/mybatis-parent-18.tar.gz
diff --git a/mybatis-parent.spec b/mybatis-parent.spec
new file mode 100644
index 0000000..9c75c47
--- /dev/null
+++ b/mybatis-parent.spec
@@ -0,0 +1,83 @@
+Name: mybatis-parent
+Version: 18
+Release: 2%{?dist}
+Summary: The MyBatis parent POM
+Group: Development/Libraries
+License: ASL 2.0
+URL: http://www.mybatis.org/
+# git clone git://github.com/mybatis/parent.git mybatis-parent-18
+# (cd mybatis-parent-18/ && git archive --format=tar --prefix=mybatis-parent-18/ mybatis-parent-18 | xz > ../mybatis-parent-18-src-git.tar.xz)
+Source0: https://github.com/mybatis/parent/archive/%{name}-%{version}.tar.gz
+
+BuildRequires: java-devel
+BuildRequires: jpackage-utils
+
+BuildRequires: animal-sniffer
+BuildRequires: maven-local
+BuildRequires: maven-enforcer-plugin
+BuildRequires: maven-plugin-bundle
+BuildRequires: mojo-signatures
+
+Requires: maven-enforcer-plugin
+Requires: maven-plugin-bundle
+Requires: mvn(org.codehaus.mojo:animal-sniffer-maven-plugin)
+Requires: mojo-signatures
+
+Requires: java
+Requires: jpackage-utils
+BuildArch: noarch
+
+%description
+The MyBatis parent POM which has to be inherited by all MyBatis modules.
+
+%prep
+%setup -q -n parent-%{name}-%{version}
+# require com.github.stephenc.wagon:wagon-gitsite:0.4.1
+%pom_remove_plugin org.apache.maven.plugins:maven-site-plugin
+# unavailable plugins
+%pom_remove_plugin org.apache.maven.plugins:maven-pdf-plugin
+%pom_remove_plugin org.sonatype.plugins:jarjar-maven-plugin
+%pom_remove_plugin org.sonatype.plugins:nexus-maven-plugin
+%pom_remove_plugin org.codehaus.mojo:clirr-maven-plugin
+%pom_remove_plugin org.codehaus.mojo:jdepend-maven-plugin
+%pom_remove_plugin org.codehaus.mojo:findbugs-maven-plugin
+%pom_remove_plugin org.codehaus.mojo:taglist-maven-plugin
+
+# remove com.google.doclava:doclava:1.0.3
+# javac.target.version is set 1.5
+%pom_xpath_remove "pom:reporting/pom:plugins/pom:plugin[pom:artifactId ='maven-javadoc-plugin']/pom:configuration"
+%pom_xpath_inject "pom:reporting/pom:plugins/pom:plugin[pom:artifactId ='maven-javadoc-plugin']" '
+ <configuration>
+ <minmemory>128m</minmemory>
+ <maxmemory>1024m</maxmemory>
+ <breakiterator>true</breakiterator>
+ <quiet>true</quiet>
+ <verbose>false</verbose>
+ <source>${javac.target.version}</source>
+ <linksource>true</linksource>
+</configuration>'
+
+%pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId ='maven-enforcer-plugin']/pom:executions/pom:execution/pom:configuration/pom:rules/pom:requirePluginVersions"
+
+%build
+# Nothing to do
+%install
+
+mkdir -p %{buildroot}%{_mavenpomdir}
+install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
+%add_maven_depmap JPP-%{name}.pom
+
+%check
+mvn-rpmbuild verify
+
+%files
+%{_mavenpomdir}/JPP-%{name}.pom
+%{_mavendepmapfragdir}/%{name}
+%doc LICENSE NOTICE README
+
+%changelog
+* Mon Apr 22 2013 gil cattaneo <puntogil at libero.it> 18-2
+- fix requires (all active plugin listed in the pom)
+
+* Sun Apr 21 2013 gil cattaneo <puntogil at libero.it> 18-1
+- initial rpm
\ No newline at end of file
diff --git a/sources b/sources
index e69de29..8c8e821 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+ec4a5c60aba6e8e6af8706f8d913ea04 mybatis-parent-18.tar.gz
More information about the scm-commits
mailing list