2023-03-13 08:58:21 +00:00
|
|
|
%global debug_package %{nil}
|
2023-03-06 08:53:21 +00:00
|
|
|
%bcond_with bootstrap
|
|
|
|
|
|
|
|
Name: xmvn-generator
|
2023-03-13 08:58:21 +00:00
|
|
|
Version: 1.2.1
|
2023-08-30 13:55:14 +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
|
|
|
|
|
2023-08-30 13:55:14 +00:00
|
|
|
Patch0: 0001-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-17-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.
|
|
|
|
|
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
|
|
|
%if !0%{?fedora}
|
|
|
|
%patch0 -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
|
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
|