-
Notifications
You must be signed in to change notification settings - Fork 0
/
xmvn-generator.spec
62 lines (51 loc) · 1.74 KB
/
xmvn-generator.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
%global debug_package %{nil}
%bcond_with bootstrap
Name: xmvn-generator
Version: [...]
Release: %autorelease
Summary: RPM dependency generator for Java
License: Apache-2.0
URL: https://github.com/fedora-java/xmvn-generator
ExclusiveArch: %{java_arches}
Source: https://github.com/fedora-java/xmvn-generator/releases/download/%{version}/xmvn-generator-%{version}.tar.zst
BuildRequires: gcc
BuildRequires: rpm-devel
BuildRequires: lujavrite
%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
%autosetup -p1 -C
%mvn_file : %{name}
%build
%mvn_build -- -P\!quality
%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
%autochangelog