rpms/ezmorph/F-13 ezmorph-1.0.6-maven.patch, NONE, 1.1 ezmorph.spec, NONE, 1.1 import.log, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Lubomir Rintel lkundrak at fedoraproject.org
Wed Jul 14 17:09:41 UTC 2010


Author: lkundrak

Update of /cvs/pkgs/rpms/ezmorph/F-13
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv10509/F-13

Modified Files:
	.cvsignore sources 
Added Files:
	ezmorph-1.0.6-maven.patch ezmorph.spec import.log 
Log Message:
Initial import

ezmorph-1.0.6-maven.patch:
 pom.xml |    9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

--- NEW FILE ezmorph-1.0.6-maven.patch ---
>From e158f1e77aad80067522f21f42d940e9d02025c3 Mon Sep 17 00:00:00 2001
From: Lubomir Rintel <lkundrak at v3.sk>
Date: Thu, 17 Jun 2010 10:53:59 +0200
Subject: [PATCH] Skip useless plugins

---
 pom.xml |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/pom.xml b/pom.xml
index 2d4a37b..dbd6f15 100644
--- a/pom.xml
+++ b/pom.xml
@@ -110,7 +110,7 @@
 
    <build>
       <defaultGoal>install</defaultGoal>
-      <plugins>
+      <!--plugins>
          <plugin>
             <artifactId>maven-compiler-plugin</artifactId>
             <configuration>
@@ -142,10 +142,10 @@
                </includes>
             </configuration>
          </plugin>
-      </plugins>
+      </plugins-->
    </build>
 
-   <reporting>
+   <!--reporting>
       <plugins>
          <plugin>
             <groupId>org.apache.maven.plugins</groupId>
@@ -206,6 +206,6 @@
             <version>1.0.0</version>
          </plugin>
       </plugins>
-   </reporting>
+   </reporting-->
 
 </project>
-- 
1.7.0.1



--- NEW FILE ezmorph.spec ---
Name:           ezmorph
Version:        1.0.6
Release:        2%{?dist}
Summary:        Object transformation library for Java

Group:          Development/Libraries
License:        ASL 2.0
URL:            http://ezmorph.sourceforge.net/
# A plain jarball with the source is provided by upstream.  We could use
# it, but we choose to build with maven for the sake of consistency.
# Therefore we pull the tree with maven metadata from VCS.
# cvs -d:pserver:anonymous at ezmorph.cvs.sourceforge.net:/cvsroot/ezmorph login
# cvs -z3 -d:pserver:anonymous at ezmorph.cvs.sourceforge.net:/cvsroot/ezmorph co -r REL_1_0_6 -d ezmorph-1.0.6 -P ezmorph
# tar czf ezmorph-1.0.6.tar.gz --exclude CVS ezmorph-1.0.6
Source0:        %{name}-%{version}.tar.gz
Patch0:         ezmorph-1.0.6-maven.patch
BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)

BuildRequires:  java-devel
BuildRequires:  jpackage-utils
BuildRequires:  jakarta-oro
BuildRequires:  junit4
BuildRequires:  maven2-plugin-compiler
BuildRequires:  maven2-plugin-install
BuildRequires:  maven2-plugin-jar
BuildRequires:  maven2-plugin-javadoc
BuildRequires:  maven2-plugin-resources
BuildRequires:  maven-doxia-sitetools
BuildRequires:  maven-surefire-maven-plugin
BuildRequires:  maven-surefire-provider-junit
Requires:       java
Requires:       jpackage-utils

Requires(post): jpackage-utils
Requires(postun): jpackage-utils

BuildArch:      noarch

%description
EZMorph is simple java library for transforming an Object to another
Object. It supports transformations for primitives and Objects and
multidimensional arrays.


%package javadoc
Group:          Documentation
Summary:        Javadoc for %{name}
Requires:       %{name} = %{version}

%description javadoc
API documentation for %{name}.


%prep
%setup -q
%patch0 -p1 -b .maven


%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

# Code
install -d $RPM_BUILD_ROOT%{_javadir}
# Bad version number, likely a typo
install -m644 target/%{name}-1.0.5.jar \
        $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
ln -sf %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar

# Documentation
install -d $RPM_BUILD_ROOT%{_javadocdir}
cp -ap target/site/apidocs $RPM_BUILD_ROOT%{_javadocdir}/%{name}

# Maven
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
install -pm 644 pom.xml $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP-%{name}.pom
%add_to_maven_depmap net.sf.ezmorph %{name} %{version} JPP %{name}


%clean
rm -rf $RPM_BUILD_ROOT


%post
%update_maven_depmap


%postun
%update_maven_depmap


%files
%defattr(-,root,root,-)
%{_javadir}/*
%{_mavendepmapfragdir}/*
%{_mavenpomdir}/*



%files javadoc
%defattr(-,root,root,-)
%{_javadocdir}/*


%changelog
* Thu Jun 17 2010 Lubomir Rintel <lkundrak at v3.sk> - 1.0.6-2
- Carry the build over to Maven
- Package Maven poms & add depmap
- Add javadoc subpackage

* Thu May 20 2010 Lubomir Rintel <lkundrak at v3.sk> - 1.0.6-1
- Initial packaging


--- NEW FILE import.log ---
ezmorph-1_0_6-2_fc14:F-13:ezmorph-1.0.6-2.fc14.src.rpm:1279127366


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/ezmorph/F-13/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	14 Jul 2010 16:50:44 -0000	1.1
+++ .cvsignore	14 Jul 2010 17:09:40 -0000	1.2
@@ -0,0 +1 @@
+ezmorph-1.0.6.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/ezmorph/F-13/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	14 Jul 2010 16:50:44 -0000	1.1
+++ sources	14 Jul 2010 17:09:41 -0000	1.2
@@ -0,0 +1 @@
+9531ec11eff0f436e5bb36c32c37c2ac  ezmorph-1.0.6.tar.gz



More information about the scm-commits mailing list