[jboss-logmanager] Initial import.

Marek Goldmann goldmann at fedoraproject.org
Sat Jul 30 17:57:04 UTC 2011


commit 478229c1827b309a0b8de59f44e00679158d4a1f
Author: Marek Goldmann <goldmann at fedoraproject.org>
Date:   Sat Jul 30 13:56:40 2011 -0400

    Initial import.

 .gitignore                             |    1 +
 jboss-logmanager-1.2.0.GA-testng.patch |   21 ++++++++
 jboss-logmanager.spec                  |   88 ++++++++++++++++++++++++++++++++
 sources                                |    1 +
 4 files changed, 111 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..5f4633f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/jboss-logmanager-1.2.0.GA.tar.xz
diff --git a/jboss-logmanager-1.2.0.GA-testng.patch b/jboss-logmanager-1.2.0.GA-testng.patch
new file mode 100644
index 0000000..4d55d6c
--- /dev/null
+++ b/jboss-logmanager-1.2.0.GA-testng.patch
@@ -0,0 +1,21 @@
+diff -Naur jboss-logmanager-1.2.0.GA/pom.xml jboss-logmanager-1.2.0.GA-work/pom.xml
+--- jboss-logmanager-1.2.0.GA/pom.xml	2011-07-05 15:04:11.000000000 -0400
++++ jboss-logmanager-1.2.0.GA-work/pom.xml	2011-07-27 05:13:27.777869438 -0400
+@@ -38,7 +38,7 @@
+         <artifactId>jboss-parent</artifactId>
+         <version>6-beta-1</version>
+     </parent>
+-
++<!--
+     <dependencies>
+         <dependency>
+             <groupId>org.testng</groupId>
+@@ -48,7 +48,7 @@
+             <scope>test</scope>
+         </dependency>
+     </dependencies>
+-
++-->
+     <build>
+         <plugins>
+             <plugin>
diff --git a/jboss-logmanager.spec b/jboss-logmanager.spec
new file mode 100644
index 0000000..094c951
--- /dev/null
+++ b/jboss-logmanager.spec
@@ -0,0 +1,88 @@
+%global namedreltag .GA
+%global namedversion %{version}%{?namedreltag}
+
+Name:             jboss-logmanager
+Version:          1.2.0
+Release:          1%{?dist}
+Summary:          JBoss Log Manager
+Group:            Development/Libraries
+License:          LGPLv2+
+URL:              https://github.com/jboss-logging/jboss-logmanager
+
+# git clone git://github.com/jboss-logging/jboss-logmanager.git
+# cd jboss-logmanager/ && git archive --format=tar --prefix=jboss-logmanager-1.2.0.GA/ 1.2.0.GA | xz > jboss-logmanager-1.2.0.GA.tar.xz
+Source0:          %{name}-%{namedversion}.tar.xz
+Patch0:           %{name}-%{namedversion}-testng.patch
+
+BuildArch:        noarch
+
+BuildRequires:    jpackage-utils
+BuildRequires:    java-devel
+BuildRequires:    maven
+
+BuildRequires:    maven-compiler-plugin
+BuildRequires:    maven-install-plugin
+BuildRequires:    maven-jar-plugin
+BuildRequires:    maven-javadoc-plugin
+BuildRequires:    maven-release-plugin
+BuildRequires:    maven-resources-plugin
+BuildRequires:    maven-surefire-plugin
+# https://bugzilla.redhat.com/show_bug.cgi?id=725991
+# BuildRequires:    testng
+# BuildRequires:    maven-surefire-provider-testng
+BuildRequires:    qdox
+BuildRequires:    jboss-parent
+
+Requires:         jpackage-utils
+Requires:         java
+
+%description
+This package contains the JBoss Log Manager
+
+%package javadoc
+Summary:          Javadocs for %{name}
+Group:            Documentation
+Requires:         jpackage-utils
+
+%description javadoc
+This package contains the API documentation for %{name}.
+
+%prep
+%setup -q -n %{name}-%{namedversion}
+# https://bugzilla.redhat.com/show_bug.cgi?id=725991
+%patch0 -p1
+
+%build
+# Skipped tests because of java.lang.NoClassDefFoundError: com/thoughtworks/qdox/model/AbstractInheritableJavaEntity
+mvn-rpmbuild -Dmaven.test.skip=true install javadoc:aggregate
+
+%install
+# JAR
+install -d -m 755 $RPM_BUILD_ROOT%{_javadir}/jboss
+cp -p target/%{name}-%{namedversion}.jar $RPM_BUILD_ROOT%{_javadir}/jboss/%{name}.jar
+
+# APIDOCS
+install -d -m 755 $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.jboss-%{name}.pom
+
+# DEPMAP
+%add_maven_depmap JPP.jboss-%{name}.pom jboss/%{name}.jar
+
+%files
+%{_mavenpomdir}/*
+%{_mavendepmapfragdir}/*
+%{_javadir}/*
+%doc COPYING.txt
+
+%files javadoc
+%{_javadocdir}/%{name}
+%doc COPYING.txt
+
+%changelog
+* Fri Jun 03 2011 Marek Goldmann <mgoldman at redhat.com> 1.2.0-1
+- Initial packaging
+
diff --git a/sources b/sources
index e69de29..3e2edb2 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+1f3839eb30770c501dc85e2a29086b35  jboss-logmanager-1.2.0.GA.tar.xz


More information about the scm-commits mailing list