xmvn-generator/xmvn-generator.spec

92 lines
2.8 KiB
RPMSpec
Raw Normal View History

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-12-11 14:16:54 +00:00
Version: 1.2.2
Release: 2%{?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-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
%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
* 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