diff --git a/.devtoolset-4-jnr-unixsocket.metadata b/.devtoolset-4-jnr-unixsocket.metadata new file mode 100644 index 0000000..eea7568 --- /dev/null +++ b/.devtoolset-4-jnr-unixsocket.metadata @@ -0,0 +1 @@ +25f22669e4fdda26f1b357ad949936ce457b1dbc SOURCES/0.8.tar.gz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5e1cf90 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/0.8.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/MANIFEST.MF b/SOURCES/MANIFEST.MF new file mode 100644 index 0000000..ce481f3 --- /dev/null +++ b/SOURCES/MANIFEST.MF @@ -0,0 +1,17 @@ +Manifest-Version: 1.0 +Bundle-SymbolicName: jnr.unixsocket +Export-Package: jnr.unixsocket;version="0.8.0" +Bundle-Name: Java Native Runtime Unix Socket +Bundle-Version: 0.8.0 +Bundle-Localization: plugin +Bundle-ManifestVersion: 2 +Bundle-ActivationPolicy: lazy +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 +Bundle-Vendor: Eclipse Orbit +Import-Package: com.kenai.constantine.platform;version="0.8.6",com.ken + ai.jffi;version="1.2.7",jnr.constants.platform;version="0.8.6",jnr.en + xio.channels;version="0.6.0",jnr.ffi;version="2.0.1",jnr.ffi.annotati + ons;version="2.0.1",jnr.ffi.byref;version="2.0.1",jnr.ffi.mapper;vers + ion="2.0.1",jnr.ffi.provider.converters;version="2.0.1",jnr.ffi.provi + der.jffi;version="2.0.1",jnr.posix;version="3.0.9" + diff --git a/SOURCES/add-manifest.patch b/SOURCES/add-manifest.patch new file mode 100644 index 0000000..46c939c --- /dev/null +++ b/SOURCES/add-manifest.patch @@ -0,0 +1,19 @@ +diff -up ./pom.xml.fix ./pom.xml +--- ./pom.xml.fix 2015-06-17 16:16:37.525419665 -0400 ++++ ./pom.xml 2015-06-17 16:17:05.060879018 -0400 +@@ -80,6 +80,15 @@ + 1.5 + + ++ ++ org.apache.maven.plugins ++ maven-jar-plugin ++ ++ ++ MANIFEST.MF ++ ++ ++ + + + diff --git a/SPECS/jnr-unixsocket.spec b/SPECS/jnr-unixsocket.spec new file mode 100644 index 0000000..a89d76a --- /dev/null +++ b/SPECS/jnr-unixsocket.spec @@ -0,0 +1,80 @@ +%{?scl:%scl_package jnr-unixsocket} +%{!?scl:%global pkg_name %{name}} +%{?java_common_find_provides_and_requires} + +Name: %{?scl_prefix}jnr-unixsocket +Version: 0.8 +Release: 2.1%{?dist} +Summary: Unix sockets for Java +Group: Development/Libraries +License: ASL 2.0 +URL: http://github.com/jnr/%{pkg_name}/ +Source0: https://github.com/jnr/%{pkg_name}/archive/%{version}.tar.gz +Source1: MANIFEST.MF +Patch0: add-manifest.patch +BuildArch: noarch + +BuildRequires: %{?scl_prefix}jnr-constants +BuildRequires: %{?scl_prefix}jnr-enxio +BuildRequires: %{?scl_prefix}jnr-ffi +BuildRequires: %{?scl_prefix}jnr-posix + +BuildRequires: %{?scl_prefix_java_common}maven-local +BuildRequires: %{?scl_prefix_maven}maven-compiler-plugin +BuildRequires: %{?scl_prefix_maven}maven-install-plugin +BuildRequires: %{?scl_prefix_maven}maven-jar-plugin +BuildRequires: %{?scl_prefix_maven}maven-javadoc-plugin +BuildRequires: %{?scl_prefix_maven}maven-surefire-plugin +BuildRequires: %{?scl_prefix_maven}maven-surefire-provider-junit + +%description +Unix sockets for Java. + +%package javadoc +Summary: Javadocs for %{pkg_name} +Group: Documentation + +%description javadoc +This package contains the API documentation for %{pkg_name}. + +%prep +%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"} +%setup -q -n %{pkg_name}-%{version} +%patch0 +cp %{SOURCE1} . + +# remove unnecessary wagon extension +%pom_xpath_remove pom:build/pom:extensions + +find ./ -name '*.jar' -delete +find ./ -name '*.class' -delete + +%{?scl:EOF} + +%build +%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"} +%mvn_build +%{?scl:EOF} + +%install +%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"} +%mvn_install +%{?scl:EOF} + +%files -f .mfiles +%doc LICENSE +%dir %{_javadir}/%{pkg_name} +%dir %{_mavenpomdir}/%{pkg_name} + +%files javadoc -f .mfiles-javadoc +%doc LICENSE + +%changelog +* Thu Aug 27 2015 Mat Booth - 0.8-2.1 +- Fix unowned directories + +* Tue Jun 30 2015 Jeff Johnston 0.8-2 +- SCL-ize package. + +* Tue Jun 30 2015 Jeff Johnston 0.8-1 +- Initial import from rawhide.