Name: maven-timestamp-plugin Version: 1.1 Release: %mkrel 3 Summary: Provides formatted timestamps for maven builds Group: Development/Java License: ASL 2.0 URL: http://code.google.com/p/maven-timestamp-plugin ### upstream only provides binaries or source without build scripts # tar creation instructions # svn export http://maven-timestamp-plugin.googlecode.com/svn/tags/maven-timestamp-plugin-1.1 maven-timestamp-plugin # tar caf maven-timestamp-plugin-1.1.tar.xz maven-timestamp-plugin Source0: maven-timestamp-plugin-1.1.tar.xz BuildArch: noarch BuildRequires: java-devel BuildRequires: jpackage-utils BuildRequires: maven BuildRequires: maven-jar-plugin BuildRequires: maven-javadoc-plugin BuildRequires: maven-source-plugin BuildRequires: maven-compiler-plugin BuildRequires: maven-install-plugin BuildRequires: maven-plugin-plugin BuildRequires: maven-release-plugin BuildRequires: maven-resources-plugin BuildRequires: maven-site-plugin BuildRequires: maven-surefire-plugin BuildRequires: maven-surefire-provider-junit4 Requires: java Requires: jpackage-utils %description There are a few ways to get a timestamp in your maven build. Unfortunately most of them make you jump through giant hoops. This maven plugin makes it as simple as 1-2-3 to create a timestamp at your disposal. Also, it enables you to use the syntax of SimpleDateFormat to form custom formatted dates. %package javadoc Summary: Javadocs for %{name} Group: Documentation Requires: %{name} = %{version}-%{release} Requires: jpackage-utils %description javadoc This package contains the API documentation for %{name}. %prep %setup -q -n %{name} cat > README << EOT %{name}-%{version} %{description} EOT %build mvn-rpmbuild install javadoc:javadoc %install mkdir -p $RPM_BUILD_ROOT%{_javadir} # jar install -Dp -m 644 target/%{name}-%{version}-SNAPSHOT.jar \ $RPM_BUILD_ROOT%{_javadir}/%{name}.jar # javadoc mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name} cp -rp target/site/apidocs/ $RPM_BUILD_ROOT%{_javadocdir}/%{name} # pom install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir} install -pm 644 pom.xml \ $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom %add_maven_depmap JPP-%{name}.pom %{name}.jar %files %doc README %doc license.txt %{_mavenpomdir}/* %{_mavendepmapfragdir}/* %{_javadir}/* %files javadoc %doc license.txt %{_javadocdir}/%{name} %changelog * Sat Jan 12 2013 umeabot <umeabot> 1.1-3.mga3 + Revision: 359801 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Mon Dec 03 2012 dmorgan <dmorgan> 1.1-2.mga3 + Revision: 325866 - Java Stack Mass Rebuild * Sat Jul 23 2011 dmorgan <dmorgan> 1.1-1.mga2 + Revision: 128116 - Update to new upstream release (1.1). - Fix FTBFS. - Adapt to current guidelines. * Thu Apr 28 2011 dmorgan <dmorgan> 1.0-7.mga1 + Revision: 92936 - Rebuild after bootstrapping - imported package maven-timestamp-plugin