diff --git a/.gitignore b/.gitignore index e69de29..1aac857 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,5 @@ +/results_* +/*.src.rpm + +/jaf-1.2.1.tar.gz +/jaf-1.2.2.tar.gz diff --git a/jakarta-activation.spec b/jakarta-activation.spec new file mode 100644 index 0000000..892af87 --- /dev/null +++ b/jakarta-activation.spec @@ -0,0 +1,89 @@ +%global srcname jaf + +Name: jakarta-activation +Version: 1.2.2 +Release: 1%{?dist} +Summary: Jakarta Activation Specification and Implementation +License: BSD + +URL: https://eclipse-ee4j.github.io/jaf/ +Source0: https://github.com/eclipse-ee4j/jaf/archive/%{version}/%{srcname}-%{version}.tar.gz + +BuildArch: noarch + +BuildRequires: maven-local +BuildRequires: mvn(junit:junit) +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) + +Provides: jaf = %{version}-%{release} +Obsoletes: jaf < 1.2.1-5 + +%description +Jakarta Activation 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 +This package contains javadoc for %{name}. + + +%prep +%setup -q -n %{srcname}-%{version} + +# remove unnecessary dependency on "org.eclipse.ee4j:project" (not packaged) +%pom_remove_parent + +# remove unnecessary maven plugins +%pom_remove_plugin :build-helper-maven-plugin +%pom_remove_plugin :directory-maven-plugin +%pom_remove_plugin :osgiversion-maven-plugin + +# remove custom doclet configuration +%pom_remove_plugin :maven-javadoc-plugin activation + +# disable demo submodule +%pom_disable_module demo + +# set bundle version manually instead of with osgiversion-maven-plugin +# (the plugin is only used to strip off -SNAPSHOT or -Mx qualifiers) +sed -i "s/\${activation.osgiversion}/%{version}/g" activation/pom.xml + + +%build +%mvn_build + + +%install +%mvn_install + + +%files -f .mfiles +%license LICENSE.md NOTICE.md +%doc README.md + +%files javadoc -f .mfiles-javadoc +%license LICENSE.md NOTICE.md + + +%changelog +* Wed Jul 29 2020 Fabio Valentini - 1.2.2-1 +- Update to version 1.2.2. +- Drop custom maven-compiler-plugin overrides in favor of upstream settings. + +* Wed Jul 29 2020 Fabio Valentini - 1.2.1-7 +- Override javac source / target versions with 1.8 to fix build with Java 11. + +* Tue Jul 28 2020 Fedora Release Engineering - 1.2.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed May 20 2020 Fabio Valentini - 1.2.1-5 +- Package unretired and renamed from jaf. + diff --git a/sources b/sources new file mode 100644 index 0000000..8144002 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (jaf-1.2.2.tar.gz) = a9062eadf260621e0a10695e63082d010567665bc749f76be43381c0f313d61fdb8ab04b9b2765e7da740277cd0335e9f555dd7a1cd89b7eedf88f6e557427c4