Initial import.
This commit is contained in:
parent
6af8ff05d0
commit
b03d71a575
1
.gitignore
vendored
1
.gitignore
vendored
@ -0,0 +1 @@
|
||||
/jboss-logging-3.0.1.GA.tar.xz
|
90
jboss-logging.spec
Normal file
90
jboss-logging.spec
Normal file
@ -0,0 +1,90 @@
|
||||
%global namedreltag .GA
|
||||
%global namedversion %{version}%{?namedreltag}
|
||||
|
||||
Name: jboss-logging
|
||||
Version: 3.0.1
|
||||
Release: 1%{?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.0.1.GA/ 3.0.1.GA | xz > jboss-logging-3.0.1.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}/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
|
||||
|
||||
%files javadoc
|
||||
%{_javadocdir}/%{name}
|
||||
|
||||
%changelog
|
||||
* Mon Sep 19 2011 Marek Goldmann <mgoldman@redhat.com> 3.0.1-1
|
||||
- Upstream release 3.0.1.GA
|
||||
|
||||
* Thu Jul 28 2011 Marek Goldmann <mgoldman@redhat.com> 3.0.0-1
|
||||
- Initial packaging
|
||||
|
Loading…
Reference in New Issue
Block a user