Blame SPECS/jigawatts.spec

355f43
%global uname         jigawatts
355f43
355f43
# For snapshots. Currently unused.
355f43
%global uversion      a5f8e31a4a967059498f820c5728f1deb0736c69
355f43
%global dversion      %(echo %{uversion} | sed s/-/_/)
355f43
%global shortcommit %(c=%{uversion}; echo ${c:0:7})
355f43
%global commitdate 20210827
355f43
355f43
%global aarch64       aarch64 arm64 armv8
355f43
355f43
Name:    %{uname}
355f43
Version: 1.21.0.0.0
18bb55
Release: 4%{?dist}
355f43
Summary: Java CRIU helper
355f43
License: GPLv2 with exceptions
355f43
URL:     https://github.com/chflood/%{uname}
355f43
Source0: https://github.com/chflood/%{uname}/archive/refs/tags/%{version}.tar.gz
355f43
355f43
BuildRequires: java-devel
355f43
BuildRequires: criu-devel
355f43
BuildRequires: gcc
355f43
BuildRequires: gcc-c++
355f43
BuildRequires: autoconf
355f43
BuildRequires: automake
355f43
355f43
Requires:   java-headless
355f43
355f43
# criu is only available on these architectures
355f43
# https://bugzilla.redhat.com/show_bug.cgi?id=902875
355f43
ExclusiveArch: x86_64 %{arm} ppc64le aarch64 s390x
355f43
355f43
%description
355f43
CRIU is a Linux utility that allows the checkpointing and restoring
355f43
of processes.You can read more about CRIU at criu.org. CRIU for
355f43
Java is a package which makes it more convenient to use CRIU from
355f43
Java.
355f43
355f43
%package javadoc
355f43
Summary: Javadoc for %{name}
355f43
%description javadoc
355f43
Javadoc for %{name}
355f43
355f43
%prep
355f43
%setup -q
355f43
355f43
./autogen.sh
355f43
355f43
%build
355f43
355f43
%configure
355f43
355f43
make
355f43
355f43
%install
355f43
355f43
rm -rf $RPM_BUILD_ROOT
355f43
%make_install
355f43
355f43
%files
355f43
%dir %{_pkgdocdir}
355f43
%doc %{_pkgdocdir}/README.md
355f43
%dir %{_defaultlicensedir}/%{name}
355f43
%license %{_defaultlicensedir}/%{name}/LICENSE.md
355f43
%dir %{_javadir}/%{name}
355f43
%{_javadir}/%{name}/%{uname}.jar
355f43
%{_libdir}/libJigawatts.so
355f43
355f43
%files javadoc
355f43
%{_javadocdir}/%{name}
355f43
355f43
%changelog
18bb55
* Wed Apr 06 2022 Andrew Hughes <gnu.andrew@redhat.com> - 1.21.0.0.0-4
18bb55
- Bump release number to make RHEL 9.1 build later than RHEL 9 Beta & RHEL 9 GA builds
18bb55
- Resolves: rhbz#2071920
355f43
355f43
* Thu Sep 02 2021 Jiri Vanek <jvanek@redhat.com> - 1.21.0.0.0-2
355f43
- Added gating yaml
355f43
- Resolves: rhbz#1989529
355f43
355f43
* Tue Aug 31 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1.21.0.0.0-1
355f43
- Rebase to upstream release, 1.21.0.0.0.
355f43
- Resolves: rhbz#1972029
355f43
355f43
* Sun Aug 29 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1.0~SNAPSHOT^20210827.a5f8e31-1
355f43
- Store the upstream version (currently "1.0-SNAPSHOT") and snapshot info completely in the Version field rather than using Release.
355f43
- Resolves: rhbz#1972029
355f43
355f43
* Sat Aug 28 2021 Andrew Hughes <gnu.andrew@redhat.com> - 0.2-0.4.20210807b2d3751
355f43
- Update to latest upstream version with renamed package and consistent use of "jigawatts"
355f43
- Drop library patch which is no longer needed.
355f43
- Resolves: rhbz#1972029
355f43
355f43
* Mon Aug 02 2021 Andrew Hughes <gnu.andrew@redhat.com> - 0.2-0.3.20210802a3007aa
355f43
- Rewrite to use autotools build system, avoiding need for Maven dependencies missing in RHEL 9.
355f43
- This also ensures use of the standard build flags and installs the jar in the expected location.
355f43
- Resolves: rhbz#1972029
355f43
355f43
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2-0.2.20210701c15dd4c
355f43
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
355f43
355f43
* Thu Jul 01 2021 Jiri Vanek <jvanek@redhat.com> - 0.2-0.1.20210701c15dd4c
355f43
- criu-devel moved to BR
355f43
- now requires criu-libs
355f43
- enabled debuginfo generation
355f43
- excluded i686 build as criu is 64b only
355f43
- .so file moved out of jar. Required teo patches:
355f43
- added and applied patch0 output_loc.patch
355f43
- added and applied patch1 load_library.patch
355f43
- on aarch64 workarounded missing lib64 on /usr/LD_LIBRARY_PATH
355f43
355f43
* Wed Apr 14 2021 Jiri Vanek <jvanek@redhat.com> - 0.2-0.1.20210701c15dd4c
355f43
- initial build
355f43
- added requires of criu-devel