libytnef/libytnef.spec

81 lines
1.9 KiB
RPMSpec
Raw Normal View History

2022-07-21 09:49:38 +08:00
Name: ytnef
Version: 2.0
2021-09-22 11:33:55 +08:00
Release: 1
Summary: TNEF Stream Parser Library
2022-07-21 09:49:38 +08:00
License: GPLv2+
URL: https://github.com/Yeraze/ytnef
Source0: https://github.com/Yeraze/ytnef/archive/v%{version}/%{name}-%{version}.tar.gz
Patch0: ytnef-pkgconfig.patch
BuildRequires: make autoconf automake libtool perl-generators
Requires: libytnef = %{version}-%{release}
2021-09-22 11:33:55 +08:00
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
2022-07-21 09:49:38 +08:00
Yerase's TNEF Stream Reader. Can take a TNEF Stream (winmail.dat) sent from
Microsoft Outlook (or similar products) and extract the attachments, including
construction of Contact Cards & Calendar entries.
%package -n libytnef
Summary: TNEF Stream Reader Library
%description -n libytnef
2021-09-22 11:33:55 +08:00
TNEF Stream Parser Library, used by "ytnef" to decode TNEF (winmail.dat)
streams generated by Microsoft Outlook.
2022-07-21 09:49:38 +08:00
%package -n libytnef-devel
Summary: Development files for libytnef
Requires: libytnef = %{version}-%{release}
2021-09-22 11:33:55 +08:00
2022-07-21 09:49:38 +08:00
%description -n libytnef-devel
The libytnef-devel package contains libraries and header files for
developing applications that use libytnef.
2021-09-22 11:33:55 +08:00
%prep
%setup -q
2022-07-21 09:49:38 +08:00
./autogen.sh
%patch0 -p1
2021-09-22 11:33:55 +08:00
%build
%configure --disable-static
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
2022-07-21 09:49:38 +08:00
make install DESTDIR=$RPM_BUILD_ROOT includedir=%{_includedir}/libytnef
2021-09-22 11:33:55 +08:00
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
2022-07-21 09:49:38 +08:00
%license COPYING
%{_bindir}/*
%files -n libytnef
2021-09-22 11:33:55 +08:00
%defattr(-,root,root,-)
%doc ChangeLog COPYING
%{_libdir}/*.so.*
2022-07-21 09:49:38 +08:00
%files -n libytnef-devel
2021-09-22 11:33:55 +08:00
%defattr(-,root,root,-)
2022-07-21 09:49:38 +08:00
%{_includedir}/libytnef/
2021-09-22 11:33:55 +08:00
%{_libdir}/*.so
2022-07-21 09:49:38 +08:00
%{_libdir}/pkgconfig/libytnef.pc
2021-09-22 11:33:55 +08:00
%changelog
2022-07-21 09:49:38 +08:00
* Thu Jul 21 2022 duyiwei <duyiwei@kylinos.cn> - 2.0-1
- upgrade to v2.0
* Wed Sep 22 2021 douyan <douyan@kylinos.cn> - 1.5.1-1
- Init package for openEuler