Blame SPECS/jnr-enxio.spec

2941bc
%{?scl:%scl_package jnr-enxio}
2941bc
%{!?scl:%global pkg_name %{name}}
2941bc
%{?java_common_find_provides_and_requires}
2941bc
2941bc
Name:           %{?scl_prefix}jnr-enxio
2941bc
Version:        0.9
2941bc
Release:        3.2%{?dist}
2941bc
Summary:        Unix sockets for Java
2941bc
Group:          Development/Libraries
2941bc
# src/main/java/jnr/enxio/channels/PollSelectionKey.java is LGPLv3
2941bc
# rest of the source code is ASL 2.0
2941bc
License:        ASL 2.0 and LGPLv3
2941bc
URL:            http://github.com/jnr/%{pkg_name}/
2941bc
Source0:        https://github.com/jnr/%{pkg_name}/archive/%{version}.tar.gz
2941bc
Source1:	MANIFEST.MF
2941bc
Patch0:		add-manifest.patch
2941bc
BuildArch:      noarch
2941bc
2941bc
2941bc
BuildRequires:  %{?scl_prefix_java_common}jpackage-utils
2941bc
BuildRequires:  %{?scl_prefix}jnr-constants
2941bc
BuildRequires:  %{?scl_prefix}jnr-ffi
2941bc
2941bc
BuildRequires:  %{?scl_prefix_java_common}maven-local
2941bc
BuildRequires:  %{?scl_prefix_maven}maven-compiler-plugin
2941bc
BuildRequires:  %{?scl_prefix_maven}maven-install-plugin
2941bc
BuildRequires:  %{?scl_prefix_maven}maven-jar-plugin
2941bc
BuildRequires:  %{?scl_prefix_maven}maven-javadoc-plugin
2941bc
BuildRequires:  %{?scl_prefix_maven}maven-surefire-plugin
2941bc
BuildRequires:  %{?scl_prefix_maven}maven-surefire-provider-junit
2941bc
2941bc
Requires:       %{?scl_prefix}jnr-constants
2941bc
Requires:       %{?scl_prefix}jnr-ffi
2941bc
2941bc
%description
2941bc
Unix sockets for Java.
2941bc
2941bc
%package javadoc
2941bc
Summary:        Javadocs for %{pkg_name}
2941bc
Group:          Documentation
2941bc
2941bc
%description javadoc
2941bc
This package contains the API documentation for %{pkg_name}.
2941bc
2941bc
%prep
2941bc
%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"}
2941bc
%setup -n %{pkg_name}-%{version} -q
2941bc
cp %{SOURCE1} .
2941bc
%patch0
2941bc
2941bc
find ./ -name '*.jar' -delete
2941bc
find ./ -name '*.class' -delete
2941bc
%{?scl:EOF}
2941bc
2941bc
2941bc
%build
2941bc
%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"}
2941bc
%mvn_build
2941bc
%{?scl:EOF}
2941bc
2941bc
2941bc
%install
2941bc
%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"}
2941bc
%mvn_install
2941bc
%{?scl:EOF}
2941bc
2941bc
2941bc
%files -f .mfiles
2941bc
%doc LICENSE
2941bc
%dir %{_javadir}/%{pkg_name}
2941bc
%dir %{_mavenpomdir}/%{pkg_name}
2941bc
2941bc
%files javadoc -f .mfiles-javadoc
2941bc
%doc LICENSE
2941bc
2941bc
%changelog
2941bc
* Thu Aug 20 2015 Mat Booth <mat.booth@redhat.com> - 0.9-3.2
2941bc
- Fix unowned directories
2941bc
2941bc
* Thu Aug 20 2015 Mat Booth <mat.booth@redhat.com> - 0.9-3.1
2941bc
- Import latest from Fedora
2941bc
2941bc
* Wed Jun 17 2015 Jeff Johnston <jjohnstn@redhat.com> - 0.9-3
2941bc
- Add proper MANIFEST.MF.
2941bc
2941bc
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-2
2941bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2941bc
2941bc
* Tue May 5 2015 Alexander Kurtakov <akurtako@redhat.com> 0.9-1
2941bc
- Update to upstream 0.9.
2941bc
2941bc
* Thu Apr 30 2015 Alexander Kurtakov <akurtako@redhat.com> 0.8-1
2941bc
- Update to upstream 0.8.
2941bc
2941bc
* Fri Jun 27 2014 Yaakov Selkowitz <yselkowi@redhat.com> - 0.3-7
2941bc
- Fix FTBFS due to XMvn changes in F21 (#1106957)
2941bc
2941bc
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-6
2941bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2941bc
2941bc
* Fri Mar 28 2014 Michael Simacek <msimacek@redhat.com> - 0.3-5
2941bc
- Use Requires: java-headless rebuild (#1067528)
2941bc
2941bc
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-4
2941bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2941bc
2941bc
* Fri Feb 08 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 0.3-3
2941bc
- Document the multiple licensing scenario.
2941bc
2941bc
* Fri Feb 08 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 0.3-2
2941bc
- The license is in fact ASL 2.0 and LGPLv3.
2941bc
- Properly use the dist tag.
2941bc
2941bc
* Wed Feb 06 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 0.3-1
2941bc
- Initial package.