From 186eb63997f9549dbc9148fc77875292eec8a596 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Nov 16 2015 14:52:02 +0000 Subject: import devtoolset-4-jnr-posix-3.0.14-2.2.el7 --- diff --git a/.devtoolset-4-jnr-posix.metadata b/.devtoolset-4-jnr-posix.metadata new file mode 100644 index 0000000..eb5ab21 --- /dev/null +++ b/.devtoolset-4-jnr-posix.metadata @@ -0,0 +1 @@ +49a7c8cf32bb757b0645fb7f227694d51dccc9d6 SOURCES/3.0.14.tar.gz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..42e3dbd --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/3.0.14.tar.gz 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/fix-manifest.patch b/SOURCES/fix-manifest.patch new file mode 100644 index 0000000..d8fb1f8 --- /dev/null +++ b/SOURCES/fix-manifest.patch @@ -0,0 +1,23 @@ +diff -up ./MANIFEST.MF.fix ./MANIFEST.MF +--- ./MANIFEST.MF.fix 2015-06-17 12:54:35.553446165 -0400 ++++ ./MANIFEST.MF 2015-06-17 12:58:57.054808857 -0400 +@@ -1,2 +1,19 @@ + Implementation-Title: JNA-POSIX + Implementation-Version: 0.5 ++Manifest-Version: 1.0 ++Bundle-SymbolicName: jnr.posix ++Export-Package: jnr.posix;version="3.0.14",jnr.posix.util;version="3.0. ++ 14" ++Bundle-Name: Java POSIX Layer ++Bundle-Version: 3.0.14 ++Bundle-Localization: plugin ++Bundle-ManifestVersion: 2 ++Bundle-ActivationPolicy: lazy ++Bundle-RequiredExecutionEnvironment: JavaSE-1.7 ++Bundle-Vendor: Eclipse Orbit ++Import-Package: jnr.constants;version="0.8.6",jnr.constants.platform;v ++ ersion="0.8.6",jnr.constants.platform.windows;version="0.8.6",jnr.ffi ++ ;version="2.0.1",jnr.ffi.annotations;version="2.0.1",jnr.ffi.byref;ve ++ rsion="2.0.1",jnr.ffi.mapper;version="2.0.1",jnr.ffi.provider;version ++ ="2.0.1",jnr.ffi.types;version="2.0.1" ++ diff --git a/SPECS/jnr-posix.spec b/SPECS/jnr-posix.spec new file mode 100644 index 0000000..cff0b9d --- /dev/null +++ b/SPECS/jnr-posix.spec @@ -0,0 +1,75 @@ +%{?scl:%scl_package jnr-posix} +%{!?scl:%global pkg_name %{name}} +%{?java_common_find_provides_and_requires} + +Name: %{?scl_prefix}jnr-posix +Version: 3.0.14 +Release: 2.2%{?dist} +Summary: Java Posix layer +License: CPL or GPLv2+ or LGPLv2+ +URL: http://github.com/jnr/jnr-posix +Source0: https://github.com/jnr/%{name}/archive/%{version}.tar.gz +Patch0: fix-manifest.patch + +BuildRequires: %{?scl_prefix_java_common}maven-local +BuildRequires: %{?scl_prefix}mvn(com.github.jnr:jnr-constants) >= 0.8.8 +BuildRequires: %{?scl_prefix}mvn(com.github.jnr:jnr-ffi) +BuildRequires: %{?scl_prefix_java_common}mvn(junit:junit) +BuildRequires: %{?scl_prefix_maven}mvn(org.sonatype.oss:oss-parent:pom:) + +BuildArch: noarch + +%description +jnr-posix is a lightweight cross-platform POSIX emulation layer for Java, +written in Java and is part of the JNR project + +%package javadoc +Summary: Javadoc for %{pkg_name} + +%description javadoc +Javadoc for %{pkg_name}. + +%prep +%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"} +%setup -q -n %{pkg_name}-%{version} +%patch0 + +# fix test which assumes that there is a group named "nogroup" +sed -i 's|"nogroup"|"root"|' src/test/java/jnr/posix/GroupTest.java + +# Remove useless wagon extension. +%pom_xpath_remove "pom:build/pom:extensions" + +%mvn_file : %{pkg_name}/%{pkg_name} %{pkg_name} + +%{?scl:EOF} + +%build +%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"} +%mvn_build -f +%{?scl:EOF} + +%install +%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"} +%mvn_install +%{?scl:EOF} + +%files -f .mfiles +%doc LICENSE.txt README.txt +%dir %{_javadir}/%{pkg_name} +%dir %{_mavenpomdir}/%{pkg_name} + +%files javadoc -f .mfiles-javadoc + +%changelog +* Sat Aug 22 2015 Mat Booth - 3.0.14-2.2 +- Fix unowned directories + +* Wed Jul 1 2015 akurtakov 3.0.14-2.1 +- Fix maven scl prefix. + +* Tue Jun 30 2015 Jeff Johnston 3.0.14-2 +- SCL-ize package. + +* Tue Jun 30 2015 Jeff Johnston 3.0.14-1 +- Initial import from rawhide.