afflib/afflib.spec

113 lines
3.2 KiB
RPMSpec
Raw Normal View History

2020-03-02 09:58:05 +08:00
Name: afflib
2023-10-23 17:43:49 +08:00
Version: 3.7.20
2022-06-21 13:53:12 +08:00
Release: 1
2020-06-03 17:18:19 +08:00
Summary: Library to support the Advanced Forensic Format
2020-12-03 19:56:31 +08:00
License: LGPL-2.0 and LGPL-2.1 and GPL-2.0+ and Public Domain
2020-03-02 09:58:05 +08:00
URL: https://github.com/sshock/AFFLIBv3
2022-06-21 13:53:12 +08:00
Source0: %{url}/archive/refs/tags/v%{version}.tar.gz
2020-06-03 17:18:19 +08:00
BuildRequires: gcc-c++ libtool curl-devel expat-devel ncurses-devel
2020-11-02 09:33:17 +08:00
BuildRequires: libtermcap-devel openssl-devel zlib-devel
BuildRequires: python3 python3-devel python3-setuptools python3-Cython
2020-06-03 17:18:19 +08:00
Provides: bundled(lzma) = 443
2020-03-02 09:58:05 +08:00
2020-06-03 17:18:19 +08:00
%description
Afflib is a library for support of the Advanced Forensic Format.
2020-03-02 09:58:05 +08:00
2020-06-03 17:18:19 +08:00
%package -n afftools
Summary: The Utility for %{name}
Requires: %{name} = %{version}-%{release}
2020-03-02 09:58:05 +08:00
2020-06-03 17:18:19 +08:00
%description -n afftools
The %{name}-utils package contains utilities to use %{name}.
2020-03-02 09:58:05 +08:00
%package devel
Summary: Development files for %{name}
Requires: %{name} = %{version}-%{release}
Requires: openssl-devel pkgconfig
%description devel
2020-06-03 17:18:19 +08:00
The %{name}-devel package contains libraries for developing
applications that use %{name}.
%package -n python3-pyaff
Summary: The python3 binding for the AFFLIB
2022-06-21 13:53:12 +08:00
Provides: python-pyaff(aarch-64) = 3.7.19-1
Provides: python-pyaff = 3.7.19-1
Obsoletes: python-pyaff < 3.7.19-1
2020-06-03 17:18:19 +08:00
%description -n python3-pyaff
Python3 bindings currently support a read-only file-like interface to AFFLIB and
basic metadata accessor functions. These bindings are not currently complete.
2020-03-02 09:58:05 +08:00
%prep
%autosetup -p1 -n AFFLIBv3-%{version}
find lzma443 -type f -exec chmod 0644 {} ';'
chmod 0644 lib/base64.{h,cpp}
./bootstrap.sh
%build
2020-06-03 17:18:19 +08:00
%configure --enable-shared --disable-static --enable-python=no --enable-s3=yes
2020-03-02 09:58:05 +08:00
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
%make_build
2020-06-03 17:18:19 +08:00
cd pyaff
%global py_setup_args build_ext --include-dirs %{_builddir}/AFFLIBv3-%{version}/include --library-dirs %{_builddir}/AFFLIBv3-%{version}/lib/.libs
%py3_build
2020-03-02 09:58:05 +08:00
%install
%make_install
%delete_la
2020-06-03 17:18:19 +08:00
cd pyaff
%py3_install
2020-03-02 09:58:05 +08:00
2020-06-03 17:18:19 +08:00
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
2020-03-02 09:58:05 +08:00
%files
2020-06-03 17:18:19 +08:00
%doc AUTHORS BUGLIST.txt ChangeLog NEWS README COPYING
%doc doc/announce_2.2.txt
2020-03-02 09:58:05 +08:00
%{_libdir}/*.so.*
2020-06-03 17:18:19 +08:00
%files -n afftools
2020-03-02 09:58:05 +08:00
%{_bindir}/aff*
2020-06-03 17:18:19 +08:00
%{_mandir}/man1/aff*.1.*
2020-03-02 09:58:05 +08:00
%files devel
%doc doc/crypto_design.txt doc/crypto_doc.txt
%{_includedir}/afflib/
%{_libdir}/*.so
%{_libdir}/pkgconfig/afflib.pc
2020-06-03 17:18:19 +08:00
%files -n python3-pyaff
%doc pyaff/README COPYING
%{python3_sitearch}/PyAFF*
%{python3_sitearch}/pyaff*
2020-03-02 09:58:05 +08:00
%changelog
2023-10-23 17:43:49 +08:00
* Tue Oct 17 2023 chenyaqiang <chengyaqiang@huawei.com> - 3.7.20-1
- update to 3.7.20
2022-06-21 13:53:12 +08:00
* Tue Jun 21 2022 yangzhao <yangzhao1@kylinos.cn> - 3.7.19-1
- Upgrade to version 3.7.19
* Tue Jan 11 2022 houyingchao <houyingchao@huawei.com> - 3.7.18-6
- Resolve compilation failure of afflib
2020-12-03 19:56:31 +08:00
* Thu Dec 03 2020 Ge Wang <wangge20@huawei.com> - 3.7.18-5
- modify license
2020-11-02 09:33:17 +08:00
* Wed Oct 21 2020 wutao <wutao61@huawei.com> - 3.7.18-4
- delete python2 modules
2020-06-03 17:18:19 +08:00
* Mon Jun 1 2020 wangyue <wangyue92@huawei.com> - 3.7.18-3
- Upgrade package
2022-05-12 08:22:06 +00:00
* Mon Mar 04 2019 yangjian<yangjian79@huawei.com> - 3.7.16-9
2020-03-04 10:34:42 +08:00
- Change buildrequires
2022-05-12 08:22:06 +00:00
* Fri Feb 22 2019 yangjian<yangjian79@huawei.com> - 3.7.16-8
2020-03-02 09:58:05 +08:00
- Package init