libmspack/libmspack.spec

106 lines
2.7 KiB
RPMSpec
Raw Permalink Normal View History

2019-09-30 10:57:07 -04:00
Name: libmspack
2022-03-04 11:23:34 +08:00
Version: 0.10.1
2021-01-21 16:54:32 +08:00
Release: 0.1.1
2019-09-30 10:57:07 -04:00
Summary: Library for CAB and related files compression and decompression
License: LGPLv2.1
URL: http://www.cabextract.org.uk/libmspack/
2022-03-04 11:23:34 +08:00
Source0: https://github.com/kyz/libmspack/archive/v%{version}alpha/%{name}-%{version}alpha.tar.gz
2019-09-30 10:57:07 -04:00
BuildRequires: doxygen gcc autoconf automake libtool
%description
The purpose of libmspack is to provide both compression and decompression of
some loosely related file formats used by Microsoft.
%package devel
Summary: Development files for %{name}
Requires: %{name} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries, header files and documentation
for developing applications that use %{name}.
%package help
Summary: Help documents for %{name}
Obsoletes: %{name}-doc < 0.2
%description help
The %{name}-help package contains README, TODO, COPYING.LIB, ChangeLog, AUTHORS
and documentation for %{name}.
%prep
2022-03-04 11:23:34 +08:00
%autosetup -n %{name}-%{version}alpha -p1
2019-09-30 10:57:07 -04:00
chmod a-x mspack/mspack.h
autoreconf -i
%build
CFLAGS="%{optflags} -fno-strict-aliasing" \
%configure --disable-silent-rules --disable-static
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
make %{?_smp_mflags}
%install
make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
iconv -f ISO_8859-1 -t utf8 ChangeLog --output Changelog.utf8
touch -r ChangeLog Changelog.utf8
mv Changelog.utf8 ChangeLog
%files
%{_libdir}/%{name}.so.*
%doc COPYING.LIB
%exclude %{_libdir}/libmspack.la
%files devel
%{_includedir}/mspack.h
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%files help
%doc README TODO ChangeLog AUTHORS
2020-01-09 14:43:02 +08:00
%doc doc
2019-09-30 10:57:07 -04:00
%changelog
2022-03-04 11:23:34 +08:00
* Fri Mar 4 2022 panxiaohe <panxh.life@foxmail.com> - 0.10.1-0.1.1
- update version to 0.10.1
2021-01-21 16:54:32 +08:00
* Thu Jan 21 2021 yangzhuangzhuang <yangzhuangzhuang1@huawei.com> - 0.8-0.1.1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:update version to 0.8
2020-01-09 14:43:02 +08:00
* Thu Jan 9 2020 chengquan<chengquan3@huawei.com> - 0.7-0.1.6
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:remove useless patch
2019-12-25 15:53:54 +08:00
* Sat Dec 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.7-0.1.5
- Fix CVE-2018-18585 and CVE-2018-18586
2019-09-30 10:57:07 -04:00
* Mon Aug 12 2019 zhuguodong <zhuguodong7@huawei.com> - 0.7-0.1.4
- Type:bugfix
- ID:NA
- SUG:NA
- DESC: revert openeuler debranding
* Fri Aug 02 2019 liujing<liujing144@huawei.com> - 0.7-0.1.3
- Type:cves
- ID:CVE-2019-1010305
- SUG:restart
- DESC:fix CVE-2019-1010305
* Thu Aug 01 2019 zhuguodong <zhuguodong7@huawei.com> - 0.7-0.1.2
- Type:bugfix
- ID:NA
- SUG:NA
- DESC: openEuler Debranding
* Wed Aug 01 2018 openEuler Buildteam <buildteam@openeuler.org> - 0.7-0.1.1
- Package init