xmvn-generator/xmvn-generator.spec

62 lines
1.8 KiB
RPMSpec
Raw Normal View History

2023-03-06 08:53:21 +00:00
%bcond_with bootstrap
Name: xmvn-generator
2023-03-06 23:02:04 +00:00
Version: 1.1.0
2023-03-06 08:53:21 +00:00
Release: 1%{?dist}
Summary: RPM dependency generator for Java
License: Apache-2.0
URL: https://github.com/fedora-java/xmvn-generator
BuildArch: noarch
ExclusiveArch: %{java_arches} noarch
Source0: https://github.com/fedora-java/xmvn-generator/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: rpm-devel
%if %{with bootstrap}
BuildRequires: javapackages-bootstrap
%else
BuildRequires: maven-local
BuildRequires: mvn(org.apache.commons:commons-compress)
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.
%prep
%setup -q
%mvn_file : %{name}
%build
%mvn_build -j
%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-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