%global namedreltag .GA %global namedversion %{version}%{?namedreltag} Name: jboss-logging Version: 3.1.0 Release: 2%{?dist} Summary: The JBoss Logging Framework Group: Development/Libraries License: LGPLv2+ URL: https://github.com/jboss-logging/jboss-logging # git clone git://github.com/jboss-logging/jboss-logging.git # cd jboss-logging/ && git archive --format=tar --prefix=jboss-logging-3.1.0.GA/ 3.1.0.GA | xz > jboss-logging-3.1.0.GA.tar.xz Source0: %{name}-%{namedversion}.tar.xz 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 BuildRequires: jboss-logmanager BuildRequires: slf4j BuildRequires: log4j BuildRequires: apiviz BuildRequires: jboss-parent BuildRequires: maven-surefire-provider-junit Requires: log4j Requires: slf4j Requires: jboss-logmanager Requires: jpackage-utils Requires: java %description This package contains the JBoss Logging Framework. %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} %build mvn-rpmbuild install javadoc:aggregate %install # JAR install -d -m 755 $RPM_BUILD_ROOT%{_javadir} cp -p target/%{name}-%{namedversion}.jar $RPM_BUILD_ROOT%{_javadir}/%{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-%{name}.pom # DEPMAP %add_maven_depmap JPP-%{name}.pom %{name}.jar %files %{_mavenpomdir}/* %{_mavendepmapfragdir}/* %{_javadir}/* %files javadoc %{_javadocdir}/%{name} %changelog * Sun Feb 26 2012 Marek Goldmann 3.1.0-2 - Release bump * Sun Feb 26 2012 Marek Goldmann 3.1.0-1 - Upstream release 3.1.0.GA - Relocated jars to _javadir * Fri Jan 13 2012 Fedora Release Engineering - 3.1.0-0.2.CR1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Fri Nov 18 2011 Marek Goldmann 3.1.0-0.1.CR1 - Upstream release 3.1.0.CR1 * Mon Sep 19 2011 Marek Goldmann 3.0.1-1 - Upstream release 3.0.1.GA * Thu Jul 28 2011 Marek Goldmann 3.0.0-1 - Initial packaging