1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
# note: development continued on https://github.com/Yeraze/ytnef
Summary: C library for decoding application/ms-tnef e-mail attachments
Summary(pl.UTF-8): Biblioteka C do dekodowania załączników e-maili typu application/ms-tnef
Name: libytnef
Version: 1.5
Release: 2
License: GPL v2
Group: Libraries
Source0: http://downloads.sourceforge.net/ytnef/%{name}-%{version}.tar.gz
# Source0-md5: 6c44b955f33cf714c75a7bbe895cc352
URL: http://ytnef.sourceforge.net/
BuildRequires: autoconf >= 2.50
BuildRequires: automake
BuildRequires: libtool
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
C library for decoding TNEF streams (application/ms-tnef or
winmail.dat e-mail attachments) generated by Microsoft Outlook.
%description -l pl.UTF-8
Biblioteka C do dekodowania strumieni TNEF (załączników e-maili typu
application/ms-tnef lub o nazwie winmail.dat), generowanych przez
program Microsoft Outlook.
%package devel
Summary: Header files for libytnef library
Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libytnef
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
Header files for libytnef library.
%description devel -l pl.UTF-8
Pliki nagłówkowe biblioteki libytnef.
%package static
Summary: Static libytnef library
Summary(pl.UTF-8): Statyczna biblioteka libytnef
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
%description static
Static libytnef library.
%description static -l pl.UTF-8
Statyczna biblioteka libytnef.
%prep
%setup -q
%build
%{__libtoolize}
%{__aclocal}
%{__autoconf}
%{__autoheader}
%{__automake}
%configure
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(644,root,root,755)
%doc ChangeLog
%attr(755,root,root) %{_libdir}/libytnef.so.*.*.*
%attr(755,root,root) %ghost %{_libdir}/libytnef.so.0
%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libytnef.so
%{_libdir}/libytnef.la
%{_includedir}/mapi.h
%{_includedir}/mapidefs.h
%{_includedir}/mapitags.h
%{_includedir}/tnef-errors.h
%{_includedir}/tnef-types.h
%{_includedir}/ytnef.h
%files static
%defattr(644,root,root,755)
%{_libdir}/libytnef.a
|