xmvn-generator/xmvn-generator.spec

104 lines
3.1 KiB
RPMSpec
Raw Normal View History

2023-03-13 08:58:21 +00:00
%global debug_package %{nil}
%bcond_without bootstrap
2023-03-06 08:53:21 +00:00
Name: xmvn-generator
2023-12-11 14:16:54 +00:00
Version: 1.2.2
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
Patch0: 0001-Use-OpenJDK-21.patch
Patch1: 0002-Enable-JPMS-provides-and-JAR-transformer.patch
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
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
%patch0 -p1
%if !0%{?fedora}
%patch1 -p1
%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
* Mon Aug 05 2024 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.2.2-4
- Switch to Java 21 for runtime
- Resolves: RHEL-52714
* Thu Aug 01 2024 Troy Dawson <tdawson@redhat.com> - 1.2.2-4
- Bump release for Aug 2024 java mass rebuild
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.2.2-3
- Bump release for June 2024 mass rebuild
* 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
* Wed Aug 30 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.2.1-4
- Enable JPMS provides and JAR transformation in ELN
* 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