libytnef/libytnef.spec
2021-09-22 11:33:55 +08:00

68 lines
1.4 KiB
RPMSpec

Name: libytnef
Version: 1.5
Release: 1
Summary: TNEF Stream Parser Library
Group: System Environment/Libraries
License: GPL+
URL: http://ytnef.sf.net
Source0: http://dl.sf.net/ytnef/libytnef-1.5.tar.bz
# fixes potential bufferoverflow
# rhbz#831322
Patch0: libytnef-bufferoverflow.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
TNEF Stream Parser Library, used by "ytnef" to decode TNEF (winmail.dat)
streams generated by Microsoft Outlook.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%setup -q
%patch0 -p1 -b.bufferoverflow
%build
%configure --disable-static
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT includedir=%{_includedir}/%{name}
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc ChangeLog COPYING
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root,-)
%{_includedir}/%{name}/
%{_libdir}/*.so
%changelog
* Wen Sep 22 2021 douyan <douyan@kylinos.cn> - 1.5.1-1
- Init package for openEuler