From 1dd9bf4c692ed422d2f6d78821f887bb4cb29961 Mon Sep 17 00:00:00 2001 From: Marian Koncek Date: Wed, 2 Aug 2023 10:25:31 +0200 Subject: [PATCH] Initial build --- .gitignore | 1 + moditect.spec | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 72 insertions(+) create mode 100644 .gitignore create mode 100644 moditect.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6812bce --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/moditect-1.0.0.Final.tar.gz diff --git a/moditect.spec b/moditect.spec new file mode 100644 index 0000000..73592f3 --- /dev/null +++ b/moditect.spec @@ -0,0 +1,70 @@ +Name: moditect +Version: 1.0.0 +Release: 1%{?dist} +Summary: Tooling for the Java Module System +License: Apache-2.0 +URL: https://github.com/moditect/moditect +BuildArch: noarch +ExclusiveArch: %{java_arches} noarch + +Source0: %{url}/archive/%{version}.Final/%{name}-%{version}.Final.tar.gz + +BuildRequires: maven-local +BuildRequires: mvn(com.github.javaparser:javaparser-core) +BuildRequires: mvn(junit:junit) +BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin) +BuildRequires: mvn(org.assertj:assertj-core) + +%description +The ModiTect project aims at providing productivity tools for working with the +Java module system ("Jigsaw"). Currently the following tasks are supported: +* Generating module-info.java descriptors for given artifacts (Maven + dependencies or local JAR files) +* Adding module descriptors to your project's JAR as well as existing JAR files + (dependencies) +* Creating module runtime images + +Compared to authoring module descriptors by hand, using ModiTect saves you work +by defining dependence clauses based on your project's dependencies, describing +exported and opened packages with patterns (instead of listing all packages +separately), auto-detecting service usages and more. You also can use ModiTect +to add a module descriptor to your project JAR while staying on Java 8 with your +own build. + +%package javadoc +Summary: Javadoc for %{name} + +%description javadoc +Javadoc for %{name}. + +%prep +%setup -q -n %{name}-%{version}.Final + +%pom_remove_parent parent +%pom_xpath_inject 'pom:project' 'org.moditect' parent + +# Missing dependencies in each submodule of integration tests +%pom_disable_module integrationtest + +%pom_remove_plugin com.mycila:license-maven-plugin parent +%pom_remove_plugin -r :maven-shade-plugin + +%pom_remove_dep -r com.google.testing.compile:compile-testing +rm core/src/test/java/org/moditect/test/AddModuleInfoTest.java + +%build +%mvn_build + +%install +%mvn_install + +%files -f .mfiles +%license LICENSE.txt +%doc README.md + +%files javadoc -f .mfiles-javadoc +%license LICENSE.txt + +%changelog +* Mon Jul 17 2023 Marián Konček - 1.0.0-1 +- Initial build diff --git a/sources b/sources new file mode 100644 index 0000000..cdd785c --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (moditect-1.0.0.Final.tar.gz) = 0d4c1abac8bb021bd742514a7d18ba01cca0ab8f7644457be0a2908c6fc1eca8816d30f3b40ab51eabc208b3d7f58be1582ce49cf3d04892c341bbf2e872002a