diff --git a/.devtoolset-4-jnr-enxio.metadata b/.devtoolset-4-jnr-enxio.metadata new file mode 100644 index 0000000..11058d6 --- /dev/null +++ b/.devtoolset-4-jnr-enxio.metadata @@ -0,0 +1 @@ +39cce1b4fe2ceca9b27dd45a79047f09a72c1081 SOURCES/0.9.tar.gz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d57c315 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/0.9.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..8b4b4af --- /dev/null +++ b/SOURCES/MANIFEST.MF @@ -0,0 +1,15 @@ +Manifest-Version: 1.0 +Bundle-SymbolicName: jnr.enxio +Export-Package: jnr.enxio.channels;version="0.9.0" +Bundle-Name: Java Native Runtime Enhanced X-platform I/O +Bundle-Version: 0.9.0 +Bundle-ManifestVersion: 2 +Bundle-ActivationPolicy: lazy +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 +Bundle-Vendor: Eclipse Orbit +Import-Package: com.kenai.jffi;version="1.2.7",jnr.constants.platform; + version="0.8.6",jnr.ffi;version="2.0.1",jnr.ffi.annotations;version=" + 2.0.1",jnr.ffi.mapper;version="2.0.1",jnr.ffi.provider.converters;ver + sion="2.0.1",jnr.ffi.provider.jffi;version="2.0.1",jnr.ffi.types;vers + ion="2.0.1" + diff --git a/SOURCES/add-manifest.patch b/SOURCES/add-manifest.patch new file mode 100644 index 0000000..59d84a8 --- /dev/null +++ b/SOURCES/add-manifest.patch @@ -0,0 +1,21 @@ +diff -up ./pom.xml.fix ./pom.xml +--- ./pom.xml.fix 2015-06-17 17:26:21.760222144 -0400 ++++ ./pom.xml 2015-06-17 17:26:25.952292078 -0400 +@@ -81,4 +81,17 @@ + + + ++ ++ ++ ++ org.apache.maven.plugins ++ maven-jar-plugin ++ ++ ++ MANIFEST.MF ++ ++ ++ ++ ++ + diff --git a/SPECS/jnr-enxio.spec b/SPECS/jnr-enxio.spec new file mode 100644 index 0000000..bc09be1 --- /dev/null +++ b/SPECS/jnr-enxio.spec @@ -0,0 +1,115 @@ +%{?scl:%scl_package jnr-enxio} +%{!?scl:%global pkg_name %{name}} +%{?java_common_find_provides_and_requires} + +Name: %{?scl_prefix}jnr-enxio +Version: 0.9 +Release: 3.2%{?dist} +Summary: Unix sockets for Java +Group: Development/Libraries +# src/main/java/jnr/enxio/channels/PollSelectionKey.java is LGPLv3 +# rest of the source code is ASL 2.0 +License: ASL 2.0 and LGPLv3 +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_java_common}jpackage-utils +BuildRequires: %{?scl_prefix}jnr-constants +BuildRequires: %{?scl_prefix}jnr-ffi + +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 + +Requires: %{?scl_prefix}jnr-constants +Requires: %{?scl_prefix}jnr-ffi + +%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 -n %{pkg_name}-%{version} -q +cp %{SOURCE1} . +%patch0 + +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 20 2015 Mat Booth - 0.9-3.2 +- Fix unowned directories + +* Thu Aug 20 2015 Mat Booth - 0.9-3.1 +- Import latest from Fedora + +* Wed Jun 17 2015 Jeff Johnston - 0.9-3 +- Add proper MANIFEST.MF. + +* Wed Jun 17 2015 Fedora Release Engineering - 0.9-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Tue May 5 2015 Alexander Kurtakov 0.9-1 +- Update to upstream 0.9. + +* Thu Apr 30 2015 Alexander Kurtakov 0.8-1 +- Update to upstream 0.8. + +* Fri Jun 27 2014 Yaakov Selkowitz - 0.3-7 +- Fix FTBFS due to XMvn changes in F21 (#1106957) + +* Sun Jun 08 2014 Fedora Release Engineering - 0.3-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Fri Mar 28 2014 Michael Simacek - 0.3-5 +- Use Requires: java-headless rebuild (#1067528) + +* Sat Aug 03 2013 Fedora Release Engineering - 0.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Fri Feb 08 2013 Bohuslav Kabrda - 0.3-3 +- Document the multiple licensing scenario. + +* Fri Feb 08 2013 Bohuslav Kabrda - 0.3-2 +- The license is in fact ASL 2.0 and LGPLv3. +- Properly use the dist tag. + +* Wed Feb 06 2013 Bohuslav Kabrda - 0.3-1 +- Initial package.