Blame SPECS/jaf.spec

b3ed3b
Name:		jaf
b3ed3b
Version:	1.2.1
68056f
Release:	5%{?dist}
b3ed3b
Summary:	JavaBeans Activation Framework
b3ed3b
b3ed3b
License:	BSD
b3ed3b
URL:		https://github.com/eclipse-ee4j/jaf
b3ed3b
b3ed3b
Source0:	https://github.com/eclipse-ee4j/jaf/archive/%{version}.tar.gz
b3ed3b
b3ed3b
BuildArch:	noarch
68056f
ExclusiveArch: x86_64
b3ed3b
b3ed3b
BuildRequires:	junit
b3ed3b
BuildRequires:	maven-local
b3ed3b
BuildRequires:	mvn(org.apache.felix:maven-bundle-plugin)
b3ed3b
BuildRequires:	mvn(org.apache.maven.plugins:maven-dependency-plugin)
b3ed3b
BuildRequires:	mvn(org.apache.maven.plugins:maven-enforcer-plugin)
b3ed3b
BuildRequires:	mvn(org.apache.maven.plugins:maven-source-plugin)
b3ed3b
BuildRequires:	mvn(org.codehaus.mojo:build-helper-maven-plugin)
b3ed3b
BuildRequires:	mvn(org.commonjava.maven.plugins:directory-maven-plugin)
b3ed3b
BuildRequires:	mvn(org.eclipse.ee4j:project:pom:)
b3ed3b
b3ed3b
%description
b3ed3b
The JavaBeans Activation Framework (JAF) is a standard extension to the
b3ed3b
Java platform that lets you take advantage of standard services to:
b3ed3b
determine the type of an arbitrary piece of data; encapsulate access to it;
b3ed3b
discover the operations available on it; and instantiate the appropriate
b3ed3b
bean to perform the operation(s).
b3ed3b
b3ed3b
%package javadoc
b3ed3b
Summary:	Javadoc for %{name}
b3ed3b
b3ed3b
%description javadoc
b3ed3b
%{summary}.
b3ed3b
b3ed3b
%prep
b3ed3b
%setup -q
b3ed3b
b3ed3b
%pom_disable_module demo
b3ed3b
b3ed3b
%pom_remove_plugin :maven-javadoc-plugin activation
b3ed3b
%pom_remove_plugin :osgiversion-maven-plugin
b3ed3b
b3ed3b
# maven-dependency-plugin doesn't work correctly without access to remote repos
b3ed3b
%pom_remove_plugin :maven-dependency-plugin activationapi
b3ed3b
mkdir -p %{_builddir}/%{name}-%{version}/activationapi/target/sources/
b3ed3b
cp -r %{_builddir}/%{name}-%{version}/activation/src/main/java/javax/ %{_builddir}/%{name}-%{version}/activationapi/target/sources/
b3ed3b
%pom_xpath_inject "/pom:project"  "<dependencies>
b3ed3b
<dependency>
b3ed3b
  <groupId>com.sun.activation</groupId>
b3ed3b
  <artifactId>jakarta.activation</artifactId>
b3ed3b
  <version>1.2.1</version>
b3ed3b
</dependency>
b3ed3b
</dependencies>" "activationapi/pom.xml"
b3ed3b
b3ed3b
%build
b3ed3b
%mvn_build -- -Dactivation.osgiversion=1.2.1
b3ed3b
b3ed3b
%install
b3ed3b
%mvn_install
b3ed3b
b3ed3b
%files -f .mfiles
b3ed3b
%license LICENSE.md
b3ed3b
%license NOTICE.md
b3ed3b
%doc README.md
b3ed3b
b3ed3b
%files javadoc -f .mfiles-javadoc
b3ed3b
%license LICENSE.md
b3ed3b
%license NOTICE.md
b3ed3b
%doc README.md
b3ed3b
b3ed3b
%changelog
68056f
* Thu Mar 04 2021 Alex Macdonald <almacdon@redhat.com> - 1.2.1-5
68056f
- Add ExclusiveArch: x86_64
68056f
b3ed3b
* Tue May 19 2020 Alex Macdonald <almacdon@redhat.com> - 1.2.1-4
b3ed3b
- Add BuildRequires on junit
b3ed3b
b3ed3b
* Tue May 28 2019 Jie Kang <jkang@redhat.com> - 1.2.1-3
b3ed3b
- Remove osgiversion-maven-plugin build requirement
b3ed3b
- Remove javadoc plugin not needed in Fedora builds
b3ed3b
b3ed3b
* Thu Nov 22 2018 Salman Siddiqui <sasiddiq@redhat.com> - 1.2.1-2
b3ed3b
- Use official version 1.2.1 release
b3ed3b
b3ed3b
* Fri Sep 21 2018 Salman Siddiqui <sasiddiq@redhat.com> - 1.2.1-1
b3ed3b
- Initial packaging