Initial import.
This commit is contained in:
parent
98d107159f
commit
f4050615f0
1
.gitignore
vendored
1
.gitignore
vendored
@ -0,0 +1 @@
|
||||
/jansi-native-1.2.tar.xz
|
||||
109
jansi-native.spec
Normal file
109
jansi-native.spec
Normal file
@ -0,0 +1,109 @@
|
||||
%global bits 32
|
||||
%global debug_package %{nil}
|
||||
|
||||
%ifarch x86_64
|
||||
%global bits 64
|
||||
%endif
|
||||
|
||||
Name: jansi-native
|
||||
Version: 1.2
|
||||
Release: 1%{?dist}
|
||||
Summary: Jansi Native implements the JNI Libraries used by the Jansi project
|
||||
Group: Development/Libraries
|
||||
License: ASL 2.0
|
||||
URL: http://jansi.fusesource.org/
|
||||
|
||||
# git clone git://github.com/fusesource/jansi-native.git
|
||||
# cd jansi-native && git archive --format=tar --prefix=jansi-native-1.2/ jansi-native-1.2 | xz > jansi-native-1.2.tar.xz
|
||||
Source0: %{name}-%{version}.tar.xz
|
||||
|
||||
BuildRequires: jpackage-utils
|
||||
BuildRequires: java-devel
|
||||
BuildRequires: maven
|
||||
BuildRequires: maven-compiler-plugin
|
||||
BuildRequires: maven-javadoc-plugin
|
||||
BuildRequires: maven-surefire-plugin
|
||||
BuildRequires: maven-surefire-report-plugin
|
||||
BuildRequires: maven-project-info-reports-plugin
|
||||
BuildRequires: maven-clean-plugin
|
||||
BuildRequires: maven-plugin-bundle
|
||||
BuildRequires: maven-plugin-jxr
|
||||
BuildRequires: junit4
|
||||
BuildRequires: hawtjni
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: libtool
|
||||
BuildRequires: make
|
||||
BuildRequires: fusesource-pom
|
||||
BuildRequires: maven-surefire-provider-junit4
|
||||
BuildRequires: maven-hawtjni-plugin
|
||||
|
||||
Requires: hawtjni
|
||||
Requires: java
|
||||
Requires: jpackage-utils
|
||||
|
||||
%description
|
||||
Jansi is a small java library that allows you to use ANSI escape sequences
|
||||
in your Java console applications. It implements ANSI support on platforms
|
||||
which don't support it like Windows and provides graceful degradation for
|
||||
when output is being sent to output devices which cannot support ANSI sequences.
|
||||
|
||||
%package javadoc
|
||||
Summary: Javadocs for %{name}
|
||||
Group: Documentation
|
||||
Requires: jpackage-utils
|
||||
|
||||
%description javadoc
|
||||
This package contains the API documentation for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
mvn-rpmbuild install javadoc:aggregate
|
||||
|
||||
%install
|
||||
# JAR
|
||||
mkdir -p $RPM_BUILD_ROOT%{_jnidir}
|
||||
mkdir -p $RPM_BUILD_ROOT%{_javajnidir}
|
||||
|
||||
cp -p target/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javajnidir}/%{name}.jar
|
||||
cp -p target/%{name}-%{version}-linux%{bits}.jar $RPM_BUILD_ROOT%{_jnidir}/%{name}-linux.jar
|
||||
|
||||
# JAVADOC
|
||||
mkdir -p $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_to_maven_depmap org.fusesource.jansi jansi-native %{version} JPP %{name}
|
||||
%add_to_maven_depmap org.fusesource.jansi jansi-native-linux%{bits} %{version} JPP %{name}-linux
|
||||
|
||||
%files
|
||||
%{_mavenpomdir}/*
|
||||
%{_mavendepmapfragdir}/*
|
||||
%{_jnidir}/*
|
||||
%{_javajnidir}/*
|
||||
%doc readme.md license.txt changelog.md
|
||||
|
||||
%files javadoc
|
||||
%{_javadocdir}/%{name}
|
||||
%doc license.txt
|
||||
|
||||
%changelog
|
||||
* Thu Jul 28 2011 Marek Goldmann <mgoldman@redhat.com> 1.2-1
|
||||
- Upstream release 1.2
|
||||
- Using new jnidir
|
||||
|
||||
* Tue May 31 2011 Marek Goldmann <mgoldman@redhat.com> 1.1-2
|
||||
- Updated summary
|
||||
- Removed debuginfo package
|
||||
- Added license to javadoc package
|
||||
- Fixed dependency on maven-hawtjni-plugin
|
||||
|
||||
* Fri May 27 2011 Marek Goldmann <mgoldman@redhat.com> 1.1-1
|
||||
- Initial packaging
|
||||
|
||||
Loading…
Reference in New Issue
Block a user