%global debug_package %{nil} %bcond_with bootstrap Name: xmvn-generator Version: 1.2.2 Release: 5%{?dist} Summary: RPM dependency generator for Java License: Apache-2.0 URL: https://github.com/fedora-java/xmvn-generator ExclusiveArch: %{java_arches} Source0: https://github.com/fedora-java/xmvn-generator/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz Patch0: 0001-Use-OpenJDK-21.patch Patch1: 0002-Enable-JPMS-provides-and-JAR-transformer.patch BuildRequires: gcc BuildRequires: rpm-devel %if %{with bootstrap} BuildRequires: javapackages-bootstrap %else BuildRequires: maven-local BuildRequires: mvn(org.apache.commons:commons-compress) BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin) BuildRequires: mvn(org.easymock:easymock) BuildRequires: mvn(org.junit.jupiter:junit-jupiter) BuildRequires: mvn(org.ow2.asm:asm) %endif Requires: rpm-build Requires: lujavrite Requires: java-21-openjdk-headless %description XMvn Generator is a dependency generator for RPM Package Manager written in Java and Lua, that uses LuJavRite library to call Java code from Lua. %{?javadoc_package} %prep %setup -q %patch 0 -p1 %if !0%{?fedora} %patch 1 -p1 %endif %mvn_file : %{name} %build %mvn_build %install %mvn_install install -D -p -m 644 src/main/lua/xmvn-generator.lua %{buildroot}%{_rpmluadir}/xmvn-generator.lua install -D -p -m 644 src/main/rpm/macros.xmvngen %{buildroot}%{_rpmmacrodir}/macros.xmvngen install -D -p -m 644 src/main/rpm/macros.xmvngenhook %{buildroot}%{_sysconfdir}/rpm/macros.xmvngenhook install -D -p -m 644 src/main/rpm/xmvngen.attr %{buildroot}%{_fileattrsdir}/xmvngen.attr %files -f .mfiles %{_rpmluadir}/* %{_rpmmacrodir}/* %{_fileattrsdir}/* %{_sysconfdir}/rpm/* %license LICENSE NOTICE %doc README.md %changelog * Sat Jul 20 2024 Fedora Release Engineering - 1.2.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri May 31 2024 Mikolaj Izdebski - 1.2.2-4 - Switch to a newer patch macro syntax * Thu Feb 22 2024 Mikolaj Izdebski - 1.2.2-3 - Switch to Java 21 for runtime * Sat Jan 27 2024 Fedora Release Engineering - 1.2.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Dec 11 2023 Mikolaj Izdebski - 1.2.2-1 - Update to upstream version 1.2.2 * Wed Aug 30 2023 Mikolaj Izdebski - 1.2.1-4 - Enable JPMS provides and JAR transformation in ELN * Sat Jul 22 2023 Fedora Release Engineering - 1.2.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Mar 17 2023 Mikolaj Izdebski - 1.2.1-2 - Enable javadoc package * Mon Mar 13 2023 Mikolaj Izdebski - 1.2.1-1 - Update to upstream version 1.2.1 * Fri Mar 10 2023 Mikolaj Izdebski - 1.2.0-1 - Update to upstream version 1.2.0 * Mon Mar 06 2023 Mikolaj Izdebski - 1.1.0-1 - Update to upstream version 1.1.0 * Mon Mar 06 2023 Mikolaj Izdebski - 1.0.0-1 - Initial packaging