isomd5sum/isomd5sum.spec

90 lines
2.2 KiB
RPMSpec
Raw Normal View History

2019-11-06 19:34:25 +08:00
Name: isomd5sum
Version: 1.2.3
Release: 9
2019-11-06 19:34:25 +08:00
Epoch: 1
Summary: Utilities for working with md5sum implanted in ISO images
License: GPLv2+
URL: https://github.com/rhinstaller/isomd5sum
Source0: https://github.com/rhinstaller/%{name}/archive/%{version}.tar.gz
2023-03-07 09:46:10 +08:00
Patch0001: 0001-isomd5sum-1.2.3-add-loongarch64-support.patch
2023-03-16 16:52:32 +08:00
Patch0002: 0002-fix-build-error-for-riscv64.patch
Patch0003: 0003-fix-sw_64-build-error.patch
2023-03-07 09:46:10 +08:00
2019-11-06 19:34:25 +08:00
%global common_description %{expand:
isomd5sum provides a way of making use of the ISO9660 application data
area to store md5sum data about the iso. This allows you to check the
iso given nothing more than the iso itself.}
2023-03-16 16:52:32 +08:00
BuildRequires: gcc popt-devel python3-devel genisoimage
2019-11-06 19:34:25 +08:00
%description
%{common_description}
%package devel
Summary: Development headers and library for using isomd5sum
Requires: %{name} = %{epoch}:%{version}-%{release}
Provides: %{name}-static = %{epoch}:%{version}-%{release}
%description devel
Development headers and libraries for %{name}
%package -n python3-isomd5sum
Summary: Python3 bindings for isomd5sum
%{?python_provide:%python_provide python3-isomd5sum}
%description -n python3-isomd5sum
%{common_description}
%package_help
%prep
%autosetup -n %{name}-%{version} -p1
%build
CFLAGS="$RPM_OPT_FLAGS -Wno-strict-aliasing"; export CFLAGS
LDFLAGS="$RPM_LD_FLAGS"; export LDFLAGS
PYTHON=%{__python3} make checkisomd5 implantisomd5 pyisomd5sum.so
%install
PYTHON=%{__python3} make DESTDIR=%{buildroot} install-bin install-devel install-python
2023-03-16 16:52:32 +08:00
%check
make test
2019-11-06 19:34:25 +08:00
%files
%license COPYING
%{_bindir}/*
%files devel
%{_includedir}/*.h
%{_libdir}/*.a
%{_datadir}/pkgconfig/isomd5sum.pc
%files -n python3-isomd5sum
%{python3_sitearch}/*.so
%files help
%{_mandir}/man1/*
%changelog
* Mon Mar 03 2025 maqi <maqi@uniontech.com> - 1:1.2.3-9
- Add sw_64 support
2023-03-16 16:52:32 +08:00
* Thu Mar 16 2023 laokz <zhangkai@iscas.ac.cn> - 1:1.2.3-8
- fix build error for riscv64
- add %check
2023-03-07 09:46:10 +08:00
* Tue Mar 7 2023 HuangYang <huangyang@loongson.cn> - 1:1.2.3-7
- add loongarch64 support
2022-10-19 15:16:21 +08:00
* Wed Oct 19 2022 zhangruifang <zhangruifang1@h-partners.com> - 1:1.2.3-6
- remove redundant macros
2020-10-29 10:14:19 +08:00
* Thu Oct 29 2020 wangchen <wangchen137@huawei.com> - 1:1.2.3-5
- Remove python2
2019-11-06 19:34:25 +08:00
* Mon Oct 14 2019 openEuler Buildteam <buildteam@openeuler.org> - 1:1.2.3-4
- Package init