From 21cf42ba13684a784713c94dcd5a173917529fd6 Mon Sep 17 00:00:00 2001 From: James Antill Date: Mon, 8 Aug 2022 12:39:17 -0400 Subject: [PATCH] Import rpm: 68056f4ad17b511018cd69a09edd564960b2f15d --- .gitignore | 1 + jaf.spec | 88 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 90 insertions(+) create mode 100644 .gitignore create mode 100644 jaf.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..197b461 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/1.2.1.tar.gz diff --git a/jaf.spec b/jaf.spec new file mode 100644 index 0000000..c70f2a0 --- /dev/null +++ b/jaf.spec @@ -0,0 +1,88 @@ +Name: jaf +Version: 1.2.1 +Release: 5%{?dist} +Summary: JavaBeans Activation Framework + +License: BSD +URL: https://github.com/eclipse-ee4j/jaf + +Source0: https://github.com/eclipse-ee4j/jaf/archive/%{version}.tar.gz + +BuildArch: noarch +ExclusiveArch: x86_64 + +BuildRequires: junit +BuildRequires: maven-local +BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) +BuildRequires: mvn(org.apache.maven.plugins:maven-dependency-plugin) +BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin) +BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin) +BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin) +BuildRequires: mvn(org.commonjava.maven.plugins:directory-maven-plugin) +BuildRequires: mvn(org.eclipse.ee4j:project:pom:) + +%description +The JavaBeans Activation Framework (JAF) is a standard extension to the +Java platform that lets you take advantage of standard services to: +determine the type of an arbitrary piece of data; encapsulate access to it; +discover the operations available on it; and instantiate the appropriate +bean to perform the operation(s). + +%package javadoc +Summary: Javadoc for %{name} + +%description javadoc +%{summary}. + +%prep +%setup -q + +%pom_disable_module demo + +%pom_remove_plugin :maven-javadoc-plugin activation +%pom_remove_plugin :osgiversion-maven-plugin + +# maven-dependency-plugin doesn't work correctly without access to remote repos +%pom_remove_plugin :maven-dependency-plugin activationapi +mkdir -p %{_builddir}/%{name}-%{version}/activationapi/target/sources/ +cp -r %{_builddir}/%{name}-%{version}/activation/src/main/java/javax/ %{_builddir}/%{name}-%{version}/activationapi/target/sources/ +%pom_xpath_inject "/pom:project" " + + com.sun.activation + jakarta.activation + 1.2.1 + +" "activationapi/pom.xml" + +%build +%mvn_build -- -Dactivation.osgiversion=1.2.1 + +%install +%mvn_install + +%files -f .mfiles +%license LICENSE.md +%license NOTICE.md +%doc README.md + +%files javadoc -f .mfiles-javadoc +%license LICENSE.md +%license NOTICE.md +%doc README.md + +%changelog +* Thu Mar 04 2021 Alex Macdonald - 1.2.1-5 +- Add ExclusiveArch: x86_64 + +* Tue May 19 2020 Alex Macdonald - 1.2.1-4 +- Add BuildRequires on junit + +* Tue May 28 2019 Jie Kang - 1.2.1-3 +- Remove osgiversion-maven-plugin build requirement +- Remove javadoc plugin not needed in Fedora builds + +* Thu Nov 22 2018 Salman Siddiqui - 1.2.1-2 +- Use official version 1.2.1 release + +* Fri Sep 21 2018 Salman Siddiqui - 1.2.1-1 +- Initial packaging diff --git a/sources b/sources new file mode 100644 index 0000000..85fc3b2 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA1 (1.2.1.tar.gz) = 5e47e6a48553033ca43ea1b7e09ff532ddc701be