%global project clojure %global artifactId spec.alpha %global archivename %{artifactId}-%{artifactId} %global full_version %{version} Name: clojure-spec-alpha Epoch: 1 Version: 0.5.238 Release: 1%{?dist} Summary: Spec is a Clojure library to describe the structure of data and functions Group: Development/Languages License: EPL-1.0 URL: https://github.com/%{project}/%{artifactId}/ Source0: https://github.com/%{project}/%{artifactId}/archive/refs/tags/v%{full_version}.zip BuildArch: noarch ExclusiveArch: %{java_arches} noarch BuildRequires: maven-local BuildRequires: mvn(org.codehaus.mojo:exec-maven-plugin) BuildRequires: mvn(com.theoryinpractise:clojure-maven-plugin) BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin) BuildRequires: mvn(org.clojure:clojure) %description Spec is a Clojure library to describe the structure of data and functions. Specs can be used to validate data, conform (destructure) data, explain invalid data, generate examples that conform to the specs, and automatically use generative testing to test functions. %prep %setup -q -n %{artifactId}-%{version} # Remove unpackaged parent pom and add the required groupId %pom_remove_parent pom.xml %pom_xpath_inject pom:project "org.clojure" %pom_xpath_inject pom:project/pom:properties "UTF-8" %pom_xpath_inject pom:project/pom:properties "src/main/clojure" %pom_xpath_inject pom:project/pom:properties "src/test/clojure" # Hook clojure-maven-plugin to maven phases %pom_xpath_inject "pom:execution[pom:id='clojure-compile']" "compile" %pom_xpath_inject "pom:execution[pom:id='clojure-test']" "test" # Add builder helper to copy clojure source files so that # compiler finds them. %pom_add_plugin org.codehaus.mojo:build-helper-maven-plugin:1.12 . " add-clojure-source-dirs generate-sources add-source add-resource src/main/clojure src/main/clojure add-clojure-test-source-dirs generate-sources add-test-source add-test-resource src/test/clojure src/test/clojure " %build %mvn_build -f %install %mvn_install %files -f .mfiles %license LICENSE %doc CHANGES.md README.md CONTRIBUTING.md %changelog * Thu Oct 10 2024 Markku Korkeala - 1:0.5.238-1 - Update upstream to 0.5.238, closes rhbz#2265058 * Wed Jul 17 2024 Fedora Release Engineering - 1:0.3.218-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Tue Feb 27 2024 Jiri Vanek - 1:0.3.218-8 - Rebuilt for java-21-openjdk as system jdk * Wed Jan 24 2024 Fedora Release Engineering - 1:0.3.218-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 1:0.3.218-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Jul 19 2023 Fedora Release Engineering - 1:0.3.218-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jan 19 2023 Fedora Release Engineering - 1:0.3.218-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Jul 20 2022 Fedora Release Engineering - 1:0.3.218-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jul 08 2022 Jiri Vanek - 1:0.3.218-2 - Rebuilt for Drop i686 JDKs * Sat Apr 09 2022 Markku Korkeala - 1:0.3.218-1 - Update upstream to 0.3.218, update Source0 and setup macro * Sat Feb 05 2022 Jiri Vanek - 1:0.2.194-5 - Rebuilt for java-17-openjdk as system jdk * Wed Jan 19 2022 Fedora Release Engineering - 1:0.2.194-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Jul 21 2021 Fedora Release Engineering - 1:0.2.194-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 1:0.2.194-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sun Jan 24 2021 Markku Korkeala - 1:0.2.194-1 - Update upstream to 0.2.194, use plain text LICENSE as the license file. * Sat Aug 01 2020 Markku Korkeala - 1:0.2.187-1 - Update upstream to 0.2.187. * Mon Jul 27 2020 Fedora Release Engineering - 1:0.2.176-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Jul 10 2020 Jiri Vanek - 1:0.2.176-3 - Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11 * Sat May 02 2020 Markku Korkeala - 1:0.2.176-2 - Use xmvn-builddep to generate BuildRequires and drop redundant Requires. * Wed Apr 15 2020 Markku Korkeala - 1:0.2.176-1 - Update upstream to 0.2.176, clojure dependency to 1.9.0 * Mon Apr 13 2020 Markku Korkeala - 1:0.1.143-1 - Update upstream to 0.1.143, clojure dependency to 1.9.0-beta3 - Add builder helper to copy clojure source files * Sun Apr 12 2020 Markku Korkeala - 1:0.1.134-2 - Hook clojure-maven-plugin goals to maven goals * Sun Apr 05 2020 Markku Korkeala - 1:0.1.134-1 - Initial package