rpms/maven-timestamp-plugin/devel 001_build_without_timestamps.patch, NONE, 1.1 import.log, NONE, 1.1 maven-timestamp-plugin.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Guido Grazioli
guidograzioli at fedoraproject.org
Thu Apr 29 08:51:48 UTC 2010
Author: guidograzioli
Update of /cvs/pkgs/rpms/maven-timestamp-plugin/devel
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv12585/devel
Modified Files:
.cvsignore sources
Added Files:
001_build_without_timestamps.patch import.log
maven-timestamp-plugin.spec
Log Message:
* Sat Apr 24 2010 Guido Grazioli <guido.grazioli at gmail.com> - 1.0-2
- Sanitize %%files section
* Sat Apr 10 2010 Guido Grazioli <guido.grazioli at gmail.com> - 1.0-1
- Initial packaging
001_build_without_timestamps.patch:
pom.xml | 25 +------------------------
1 file changed, 1 insertion(+), 24 deletions(-)
--- NEW FILE 001_build_without_timestamps.patch ---
--- maven-timestamp-plugin/pom.xml.orig 2010-04-10 16:58:18.967050096 +0200
+++ maven-timestamp-plugin/pom.xml 2010-04-10 17:06:16.259281566 +0200
@@ -32,22 +32,6 @@
<build>
<plugins>
<plugin>
- <groupId>com.keyboardsamurais.maven</groupId>
- <artifactId>maven-timestamp-plugin</artifactId>
- <version>0.1</version>
- <configuration>
- <propertyName>timestamp</propertyName>
- <timestampPattern>dd.MM.yyyy HH:mm</timestampPattern>
- </configuration>
- <executions>
- <execution>
- <goals>
- <goal>create</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.2</version>
@@ -75,13 +59,6 @@
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-release-plugin</artifactId>
- <configuration>
- <tagBase>https://maven-timestamp-plugin.googlecode.com/svn/tags</tagBase>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
@@ -117,4 +94,4 @@
<version>2.0.2</version>
</dependency>
</dependencies>
-</project>
\ No newline at end of file
+</project>
--- NEW FILE import.log ---
maven-timestamp-plugin-1_0-2_fc12:HEAD:maven-timestamp-plugin-1.0-2.fc12.src.rpm:1272531054
--- NEW FILE maven-timestamp-plugin.spec ---
Name: maven-timestamp-plugin
Version: 1.0
Release: 2%{?dist}
Summary: Provides formatted timestamps for maven builds
Group: Development/Libraries
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.0 maven-timestamp-plugin
# tar cf maven-timestamp-plugin-1.0.tar maven-timestamp-plugin
# xz maven-timestamp-plugin-1.0.tar
Source0: maven-timestamp-plugin-1.0.tar.xz
# this one removes previous timestamp plugin version from build
Patch0: 001_build_without_timestamps.patch
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: java-devel
BuildRequires: jpackage-utils
BuildRequires: maven2
BuildRequires: maven2-plugin-jar
BuildRequires: maven2-plugin-javadoc
BuildRequires: maven2-plugin-source
BuildRequires: maven2-plugin-compiler
BuildRequires: maven2-plugin-install
BuildRequires: maven2-plugin-plugin
BuildRequires: maven2-plugin-resources
BuildRequires: maven2-plugin-site
BuildRequires: maven2-plugin-surefire
Requires: java
Requires: jpackage-utils
Requires(post): jpackage-utils
Requires(postun): 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
BuildArch: noarch
%description javadoc
This package contains the API documentation for %{name}.
%prep
%setup -q -n %{name}
%patch0 -p 1
cat > README << EOT
%{name}-%{version}
%{description}
EOT
%build
export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
mkdir -p $MAVEN_REPO_LOCAL
mvn-jpp \
-Dmaven.repo.local=$MAVEN_REPO_LOCAL \
install javadoc:javadoc
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_javadir}
# jar
install -Dp -m 644 target/%{name}-%{version}.jar \
$RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
(cd $RPM_BUILD_ROOT%{_javadir} && ln -sf %{name}-%{version}.jar %{name}.jar)
# javadoc
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -rp target/site/apidocs/ \
$RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
(cd $RPM_BUILD_ROOT%{_javadocdir} && ln -sf %{name}-%{version} %{name})
# pom
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms
install -pm 644 pom.xml \
$RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{name}.pom
%add_to_maven_depmap com.keyboardsamurais.maven %{name} %{version} JPP %{name}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc README
%{_datadir}/maven2/poms/*
%{_mavendepmapfragdir}/*
%{_javadir}/*
%files javadoc
%defattr(-,root,root,-)
%{_javadocdir}/%{name}
%{_javadocdir}/%{name}-%{version}
%post
%update_maven_depmap
%postun
%update_maven_depmap
%changelog
* Sat Apr 24 2010 Guido Grazioli <guido.grazioli at gmail.com> - 1.0-2
- Sanitize %%files section
* Sat Apr 10 2010 Guido Grazioli <guido.grazioli at gmail.com> - 1.0-1
- Initial packaging
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/maven-timestamp-plugin/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore 29 Apr 2010 02:15:50 -0000 1.1
+++ .cvsignore 29 Apr 2010 08:51:47 -0000 1.2
@@ -0,0 +1 @@
+maven-timestamp-plugin-1.0.tar.xz
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/maven-timestamp-plugin/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources 29 Apr 2010 02:15:52 -0000 1.1
+++ sources 29 Apr 2010 08:51:48 -0000 1.2
@@ -0,0 +1 @@
+5c7316be3a7a04d5d08c54246673749b maven-timestamp-plugin-1.0.tar.xz
More information about the scm-commits
mailing list