%global project clojure
%global artifactId core.specs.alpha
%global archivename %{artifactId}-%{artifactId}
%global full_version %{version}
Name: clojure-core-specs-alpha
Epoch: 1
Version: 0.2.56
Release: 4%{?dist}
Summary: Clojure library containing specs to describe Clojure core macros and functions
Group: Development/Languages
License: EPL-1.0
URL: https://github.com/%{project}/%{artifactId}
Source0: %{URL}/archive/%{artifactId}-%{full_version}.zip
BuildArch: noarch
BuildRequires: maven-local
BuildRequires: mvn(com.theoryinpractise:clojure-maven-plugin)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires: mvn(org.clojure:clojure)
BuildRequires: mvn(org.clojure:spec.alpha)
%description
Core.specs.alpha is a Clojure library containing specs to describe Clojure
core macros and functions.
%prep
%setup -q -n %{archivename}-%{full_version}
# Remove unpackaged parent pom and add the required groupId
%pom_remove_parent pom.xml
%pom_xpath_inject pom:project "org.clojure"
# Hook clojure-maven-plugin to maven phases
%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"
%pom_xpath_inject "pom:execution[pom:id='clojure-compile']" "compile"
%pom_xpath_inject "pom:execution[pom:id='clojure-test']" "test"
# Copy clojure source files so they are included in the jar
%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
add-clojure-test-source-dirs
generate-sources
add-test-source
add-test-resource
src/test/clojure
"
%build
%mvn_build -f
%install
%mvn_install
%files -f .mfiles
%license LICENSE
%doc epl-v10.html CHANGES.md README.md CONTRIBUTING.md
%changelog
* Sat Feb 05 2022 Jiri Vanek - 1:0.2.56-4
- Rebuilt for java-17-openjdk as system jdk
* Wed Jan 19 2022 Fedora Release Engineering - 1:0.2.56-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Wed Jul 21 2021 Fedora Release Engineering - 1:0.2.56-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Sat Jan 30 2021 Markku Korkeala - 1:0.2.56-1
- Update upstream to 0.2.56, use plain text LICENSE as the license file.
* Tue Jan 26 2021 Fedora Release Engineering - 1:0.2.44-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Mon Jul 27 2020 Fedora Release Engineering - 1:0.2.44-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Fri Jul 10 2020 Jiri Vanek - 1:0.2.44-3
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
* Sat May 02 2020 Markku Korkeala - 1:0.2.44-2
- Use xmvn-builddep to generate BuildRequires and drop redundant Requires.
* Wed Apr 15 2020 Markku Korkeala - 1:0.2.44-1
- Update upstream to 0.2.44 and clojure dependency to 1.9.0.
* Sun Apr 12 2020 Markku Korkeala - 1:0.1.24-2
- Add builder helper to copy clojure files
* Sun Apr 05 2020 Markku Korkeala - 1:0.1.24-1
- Initial package