diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e124e94 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/jansi-native-1.4.tar.xz diff --git a/.rh-java-common-jansi-native.metadata b/.rh-java-common-jansi-native.metadata new file mode 100644 index 0000000..da78390 --- /dev/null +++ b/.rh-java-common-jansi-native.metadata @@ -0,0 +1 @@ +1f107fb61a02702021c55069bc6738356089f31d SOURCES/jansi-native-1.4.tar.xz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/0001-Fixing-archiver-requires-AM_PROG_AR-in-configure.ac-.patch b/SOURCES/0001-Fixing-archiver-requires-AM_PROG_AR-in-configure.ac-.patch new file mode 100644 index 0000000..633bc25 --- /dev/null +++ b/SOURCES/0001-Fixing-archiver-requires-AM_PROG_AR-in-configure.ac-.patch @@ -0,0 +1,35 @@ +From 7e606ee3d10a98e65e42acb5b37cc70e00ac6472 Mon Sep 17 00:00:00 2001 +From: Marek Goldmann +Date: Tue, 24 Jul 2012 11:39:56 +0200 +Subject: [PATCH] Fixing "archiver requires 'AM_PROG_AR' in 'configure.ac'" + error + +--- + src/main/native-package/m4/custom.m4 | 10 +++++++++- + 1 file changed, 9 insertions(+), 1 deletion(-) + +diff --git a/src/main/native-package/m4/custom.m4 b/src/main/native-package/m4/custom.m4 +index 3b5e92e..55fdbec 100644 +--- a/src/main/native-package/m4/custom.m4 ++++ b/src/main/native-package/m4/custom.m4 +@@ -15,7 +15,15 @@ dnl See the License for the specific language governing permissions and + dnl limitations under the License. + dnl --------------------------------------------------------------------------- + ++AC_DEFUN([AM_PROG_AR], ++[AC_BEFORE([$0], [LT_INIT])dnl ++AC_BEFORE([$0], [AC_PROG_LIBTOOL])dnl ++: ${AR=ar} ++AC_SUBST([AR])dnl ++]) ++ + AC_DEFUN([CUSTOM_M4_SETUP], + [ + AC_CHECK_LIB([c], [isatty],[AC_DEFINE([HAVE_ISATTY], [1], [Define to 1 if you have the isatty function.])]) +-]) +\ No newline at end of file ++ AM_PROG_AR ++]) +-- +1.8.4.2 + diff --git a/SPECS/jansi-native.spec b/SPECS/jansi-native.spec new file mode 100644 index 0000000..2956a82 --- /dev/null +++ b/SPECS/jansi-native.spec @@ -0,0 +1,186 @@ +%global pkg_name jansi-native +%{?scl:%scl_package %{pkg_name}} +%{?java_common_find_provides_and_requires} + +%global bits 32 +%global debug_package %{nil} + +%ifarch x86_64 ppc64 s390x sparc64 aarch64 + %global bits 64 +%endif + +Name: %{?scl_prefix}%{pkg_name} +Version: 1.4 +Release: 10.12%{?dist} +Summary: Jansi Native implements the JNI Libraries used by the Jansi project +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.4/ jansi-native-1.4 | xz > jansi-native-1.4.tar.xz +Source0: jansi-native-%{version}.tar.xz + +Patch0: 0001-Fixing-archiver-requires-AM_PROG_AR-in-configure.ac-.patch + +BuildRequires: %{?scl_prefix}javapackages-tools +BuildRequires: %{?scl_prefix}maven-local +BuildRequires: %{?scl_prefix_maven}maven-compiler-plugin +BuildRequires: %{?scl_prefix_maven}maven-javadoc-plugin +BuildRequires: %{?scl_prefix_maven}maven-surefire-plugin +BuildRequires: %{?scl_prefix_maven}maven-surefire-report-plugin +BuildRequires: %{?scl_prefix_maven}maven-project-info-reports-plugin +BuildRequires: %{?scl_prefix_maven}maven-clean-plugin +BuildRequires: %{?scl_prefix_maven}maven-plugin-bundle +BuildRequires: %{?scl_prefix_maven}maven-plugin-jxr +BuildRequires: %{?scl_prefix}junit +BuildRequires: %{?scl_prefix}hawtjni +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: libtool +BuildRequires: make +BuildRequires: %{?scl_prefix_maven}fusesource-pom +BuildRequires: %{?scl_prefix_maven}maven-surefire-provider-junit +BuildRequires: %{?scl_prefix}maven-hawtjni-plugin +BuildRequires: %{?scl_prefix_maven}maven-resources-plugin +BuildRequires: %{?scl_prefix_maven}felix-parent + +%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 %{pkg_name} + +%description javadoc +This package contains the API documentation for %{pkg_name}. + +%prep +%setup -q -n %{pkg_name}-%{version} +%{?scl:scl enable %{scl_maven} %{scl} - <<"EOF"} +set -e -x +%patch0 -p1 + +%mvn_file :jansi-native %{pkg_name} +%mvn_package :::linux%{bits}: __default +%{?scl:EOF} + +%build +%{?scl:scl enable %{scl_maven} %{scl} - <<"EOF"} +set -e -x +%mvn_build +%{?scl:EOF} + +%install +%{?scl:scl enable %{scl_maven} %{scl} - <<"EOF"} +set -e -x +%mvn_install + +# JAR +mkdir -p $RPM_BUILD_ROOT%{_jnidir} +cp -p target/%{pkg_name}-%{version}-linux%{bits}.jar $RPM_BUILD_ROOT%{_jnidir}/%{pkg_name}-linux.jar +%{?scl:EOF} + +%files -f .mfiles +%{_jnidir}/%{pkg_name}-linux.jar +%doc readme.md license.txt changelog.md + +%files javadoc -f .mfiles-javadoc +%doc license.txt + +%changelog +* Tue Jan 13 2015 Michael Simacek - 1.4-10.12 +- Mass rebuild 2015-01-13 + +* Mon Jan 12 2015 Michael Simacek - 1.4-10.11 +- Rebuild to regenerate requires + +* Fri Jan 09 2015 Michal Srb - 1.4-10.10 +- Mass rebuild 2015-01-09 + +* Tue Dec 16 2014 Mikolaj Izdebski - 1.4-10.9 +- Migrate requires and build-requires to rh-java-common + +* Mon Dec 15 2014 Mikolaj Izdebski - 1.4-10.8 +- Mass rebuild 2014-12-15 + +* Mon Dec 15 2014 Mikolaj Izdebski - 1.4-10.7 +- Rebuild for rh-java-common collection + +* Mon May 26 2014 Mikolaj Izdebski - 1.4-10.6 +- Mass rebuild 2014-05-26 + +* Wed Feb 19 2014 Mikolaj Izdebski - 1.4-10.5 +- Mass rebuild 2014-02-19 + +* Tue Feb 18 2014 Mikolaj Izdebski - 1.4-10.4 +- Mass rebuild 2014-02-18 + +* Tue Feb 18 2014 Mikolaj Izdebski - 1.4-10.3 +- Remove requires on java + +* Thu Feb 13 2014 Mikolaj Izdebski - 1.4-10.2 +- Rebuild to regenerate auto-requires + +* Tue Feb 11 2014 Mikolaj Izdebski - 1.4-10.1 +- First maven30 software collection build + +* Fri Jan 24 2014 Daniel Mach - 1.4-10 +- Mass rebuild 2014-01-24 + +* Fri Dec 27 2013 Daniel Mach - 1.4-9 +- Mass rebuild 2013-12-27 + +* Mon Nov 11 2013 Stanislav Ochotnicky - 1.4-8 +- Install attached artifacts for proper classifier provides +- Enable aarch64 support +- Resolves: rhbz#1028551 + +* Tue Aug 27 2013 Michal Srb - 1.4-7 +- Migrate away from mvn-rpmbuild (Resolves: #997522) + +* Fri Jun 28 2013 Mikolaj Izdebski - 1.4-6 +- Rebuild to regenerate API documentation +- Resolves: CVE-2013-1571 + +* Thu Feb 14 2013 Fedora Release Engineering - 1.4-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Wed Feb 06 2013 Java SIG - 1.4-4 +- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild +- Replace maven BuildRequires with maven-local + +* Wed Dec 19 2012 Stanislav Ochotnicky - 1.4-3 +- revbump after jnidir change + +* Wed Dec 12 2012 Stanislav Ochotnicky - 1.4-2 +- Move normal jar from javajnidir to javadir + +* Wed Sep 19 2012 Marek Goldmann - 1.4-1 +- Upstream release 1.4 +- Fixing "archiver requires 'AM_PROG_AR' in 'configure.ac'" error +- FTBFS: config.status: error: cannot find input file: `Makefile.in' RHBZ#858377 + +* Thu Jul 19 2012 Fedora Release Engineering - 1.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri Jan 13 2012 Fedora Release Engineering - 1.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Wed Oct 26 2011 Dan HorĂ¡k 1.2-2 +- fix build on non-x86 64-bit arches + +* Thu Jul 28 2011 Marek Goldmann 1.2-1 +- Upstream release 1.2 +- Using new jnidir + +* Tue May 31 2011 Marek Goldmann 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 1.1-1 +- Initial packaging +