加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
minizip1.2.spec 2.56 KB
一键复制 编辑 原始数据 按行查看 历史
yangxianzhao 提交于 2024-01-12 15:21 . rebuild for qt5-qtbase
%define anolis_release .0.2
Name: minizip1.2
Summary: Library for manipulation with .zip archives
Version: 1.2.11
Release: 24%{anolis_release}%{?dist}.1
License: zlib
URL: http://www.zlib.net/
Source: http://www.zlib.net/zlib-%{version}.tar.xz
# https://github.com/madler/zlib/pull/210
Patch0: zlib-1.2.5-minizip-fixuncrypt.patch
BuildRequires: autoconf, automake, libtool
BuildRequires: zlib-devel >= %{version}
BuildRequires: gcc
Provides: minizip-compat = %{version}-%{release}
%description
Minizip is a library for manipulation with files from .zip archives.
This package contains the old minizip API, as bundled with zlib.
%package devel
Summary: Development files for the minizip library
Requires: minizip1.2%{?_isa} = %{version}-%{release}
Requires: zlib-devel%{?_isa} >= %{version}
Conflicts: minizip-devel
Provides: minizip-compat-devel = %{version}-%{release}
%description devel
This package contains the libraries and header files needed for
developing applications which use the old minizip API.
%prep
%setup -q -n zlib-%{version}
%patch0 -p1 -b .fixuncrypt
%build
export CFLAGS="$RPM_OPT_FLAGS"
%ifarch ppc64
CFLAGS+=" -O3"
%endif
%ifarch aarch64
CFLAGS+=" -DARM_NEON -O3"
%endif
%ifarch s390 s390x
CFLAGS+=" -DDFLTCC"
%endif
export MKFLAGS=""
%ifarch s390 s390x
MKFLAGS+="OBJA=dfltcc.o PIC_OBJA=dfltcc.lo"
%endif
export LDFLAGS="$LDFLAGS -Wl,-z,relro -Wl,-z,now"
cd contrib/minizip
autoreconf --install
%configure --enable-static=no
%make_build
%install
%make_install -C contrib/minizip
# https://github.com/madler/zlib/pull/229
rm $RPM_BUILD_ROOT%_includedir/minizip/crypt.h
find $RPM_BUILD_ROOT -name '*.la' -delete
%files
%license README
%doc contrib/minizip/MiniZip64_info.txt contrib/minizip/MiniZip64_Changes.txt
%{_libdir}/libminizip.so.*
%files devel
%dir %{_includedir}/minizip
%{_includedir}/minizip/*.h
%{_libdir}/libminizip.so
%{_libdir}/pkgconfig/minizip.pc
%changelog
* Fri Jan 12 2024 yangxianzhao <yangxianzhao@uniontech.com> - 1.2.11-24.1.0.2
- rebuild for qt5-qtbase
* Wed Sep 20 2023 yangxianzhao <yangxianzhao@uniontech.com> - 1.2.11-24.1.0.1
- rebuild for qt5-qtbase-5.15.3
* Tue Feb 09 2021 Xue haolin <xuehaolin@uniontech.com> - 1.2.11-24.1
- Rebuild
* Wed Nov 6 2019 Tom Callaway <spot@fedoraproject.org> - 1.2.11-24
- add dist tag
* Wed Nov 6 2019 Tom Callaway <spot@fedoraproject.org> - 1.2.11-23
- add BR: gcc
* Tue Nov 5 2019 Tom Callaway <spot@fedoraproject.org> - 1.2.11-22
- rename to minizip1.2, add provides for minizip-compat naming
* Fri Nov 1 2019 Tom Callaway <spot@fedoraproject.org> - 1.2.11-21
- standalone minizip-compat package for epel8
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化