2023-03-13 08:58:21 +00:00
|
|
|
%global debug_package %{nil}
|
2024-08-05 18:45:59 +00:00
|
|
|
%bcond_with bootstrap
|
2023-03-06 08:53:21 +00:00
|
|
|
|
|
|
|
Name: xmvn-generator
|
2023-12-11 14:16:54 +00:00
|
|
|
Version: 1.2.2
|
2024-08-01 17:34:20 +00:00
|
|
|
Release: 4%{?dist}
|
2023-03-06 08:53:21 +00:00
|
|
|
Summary: RPM dependency generator for Java
|
|
|
|
License: Apache-2.0
|
|
|
|
URL: https://github.com/fedora-java/xmvn-generator
|
2023-03-13 08:58:21 +00:00
|
|
|
ExclusiveArch: %{java_arches}
|
2023-03-06 08:53:21 +00:00
|
|
|
|
|
|
|
Source0: https://github.com/fedora-java/xmvn-generator/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
|
|
2024-02-22 04:34:02 +00:00
|
|
|
Patch0: 0001-Use-OpenJDK-21.patch
|
|
|
|
Patch1: 0002-Enable-JPMS-provides-and-JAR-transformer.patch
|
2023-08-30 13:55:14 +00:00
|
|
|
|
2023-03-13 08:58:21 +00:00
|
|
|
BuildRequires: gcc
|
2023-03-06 08:53:21 +00:00
|
|
|
BuildRequires: rpm-devel
|
|
|
|
%if %{with bootstrap}
|
|
|
|
BuildRequires: javapackages-bootstrap
|
|
|
|
%else
|
|
|
|
BuildRequires: maven-local
|
|
|
|
BuildRequires: mvn(org.apache.commons:commons-compress)
|
2023-03-13 08:58:21 +00:00
|
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
|
2023-03-06 08:53:21 +00:00
|
|
|
BuildRequires: mvn(org.easymock:easymock)
|
|
|
|
BuildRequires: mvn(org.junit.jupiter:junit-jupiter)
|
|
|
|
BuildRequires: mvn(org.ow2.asm:asm)
|
|
|
|
%endif
|
|
|
|
|
|
|
|
Requires: rpm-build
|
|
|
|
Requires: lujavrite
|
2024-02-22 04:34:02 +00:00
|
|
|
Requires: java-21-openjdk-headless
|
2023-03-06 08:53:21 +00:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2023-03-17 10:37:23 +00:00
|
|
|
%{?javadoc_package}
|
|
|
|
|
2023-03-06 08:53:21 +00:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2023-08-30 13:55:14 +00:00
|
|
|
%patch0 -p1
|
2024-02-22 04:34:02 +00:00
|
|
|
%if !0%{?fedora}
|
|
|
|
%patch1 -p1
|
2023-08-30 13:55:14 +00:00
|
|
|
%endif
|
2023-03-06 08:53:21 +00:00
|
|
|
%mvn_file : %{name}
|
|
|
|
|
|
|
|
%build
|
2023-03-17 10:37:23 +00:00
|
|
|
%mvn_build
|
2023-03-06 08:53:21 +00:00
|
|
|
|
|
|
|
%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
|
2023-03-06 23:02:04 +00:00
|
|
|
install -D -p -m 644 src/main/rpm/macros.xmvngenhook %{buildroot}%{_sysconfdir}/rpm/macros.xmvngenhook
|
2023-03-06 08:53:21 +00:00
|
|
|
install -D -p -m 644 src/main/rpm/xmvngen.attr %{buildroot}%{_fileattrsdir}/xmvngen.attr
|
|
|
|
|
|
|
|
%files -f .mfiles
|
|
|
|
%{_rpmluadir}/*
|
|
|
|
%{_rpmmacrodir}/*
|
|
|
|
%{_fileattrsdir}/*
|
2023-03-06 23:02:04 +00:00
|
|
|
%{_sysconfdir}/rpm/*
|
2023-03-06 08:53:21 +00:00
|
|
|
%license LICENSE NOTICE
|
|
|
|
%doc README.md
|
|
|
|
|
|
|
|
%changelog
|
2024-02-22 04:34:02 +00:00
|
|
|
* Mon Aug 05 2024 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.2.2-4
|
|
|
|
- Switch to Java 21 for runtime
|
|
|
|
- Resolves: RHEL-52714
|
|
|
|
|
2024-08-01 17:34:20 +00:00
|
|
|
* Thu Aug 01 2024 Troy Dawson <tdawson@redhat.com> - 1.2.2-4
|
|
|
|
- Bump release for Aug 2024 java mass rebuild
|
|
|
|
|
2024-06-24 16:30:51 +00:00
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.2.2-3
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
2024-01-27 09:56:21 +00:00
|
|
|
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
2023-12-11 14:16:54 +00:00
|
|
|
* Mon Dec 11 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.2.2-1
|
|
|
|
- Update to upstream version 1.2.2
|
|
|
|
|
2023-08-30 13:55:14 +00:00
|
|
|
* Wed Aug 30 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.2.1-4
|
|
|
|
- Enable JPMS provides and JAR transformation in ELN
|
|
|
|
|
2023-07-22 19:05:42 +00:00
|
|
|
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
2023-03-17 10:37:23 +00:00
|
|
|
* Fri Mar 17 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.2.1-2
|
|
|
|
- Enable javadoc package
|
|
|
|
|
2023-03-13 08:58:21 +00:00
|
|
|
* Mon Mar 13 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.2.1-1
|
|
|
|
- Update to upstream version 1.2.1
|
|
|
|
|
2023-03-10 10:00:15 +00:00
|
|
|
* Fri Mar 10 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.2.0-1
|
|
|
|
- Update to upstream version 1.2.0
|
|
|
|
|
2023-03-06 23:02:04 +00:00
|
|
|
* Mon Mar 06 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.1.0-1
|
|
|
|
- Update to upstream version 1.1.0
|
|
|
|
|
2023-03-06 08:53:21 +00:00
|
|
|
* Mon Mar 06 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.0.0-1
|
|
|
|
- Initial packaging
|