]>
Commit | Line | Data |
---|---|---|
45b3066d | 1 | %include /usr/lib/rpm/macros.perl |
9459d6a0 MB |
2 | Summary: C library for decoding application/ms-tnef e-mail attachments |
3 | Summary(pl.UTF-8): Biblioteka C do dekodowania załączników e-maili typu application/ms-tnef | |
4 | Name: libytnef | |
173b4b06 JB |
5 | Version: 1.9.3 |
6 | Release: 1 | |
cf6c80f8 | 7 | License: GPL v2+ |
9459d6a0 | 8 | Group: Libraries |
173b4b06 JB |
9 | #Source0Download: https://github.com/Yeraze/ytnef/releases |
10 | Source0: https://github.com/Yeraze/ytnef/archive/v%{version}/ytnef-%{version}.tar.gz | |
11 | # Source0-md5: 60b7c26daa19a1246d077560b6862150 | |
12 | URL: https://github.com/Yeraze/ytnef | |
13 | BuildRequires: autoconf >= 2.63 | |
14 | BuildRequires: automake >= 1:1.9 | |
15 | BuildRequires: libtool >= 2:2.2 | |
45b3066d | 16 | BuildRequires: rpm-perlprov |
9459d6a0 MB |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
19 | %description | |
c4065d7b JB |
20 | C library for decoding TNEF streams (application/ms-tnef or |
21 | winmail.dat e-mail attachments) generated by Microsoft Outlook. | |
9459d6a0 MB |
22 | |
23 | %description -l pl.UTF-8 | |
c4065d7b JB |
24 | Biblioteka C do dekodowania strumieni TNEF (załączników e-maili typu |
25 | application/ms-tnef lub o nazwie winmail.dat), generowanych przez | |
26 | program Microsoft Outlook. | |
9459d6a0 MB |
27 | |
28 | %package devel | |
29 | Summary: Header files for libytnef library | |
30 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libytnef | |
31 | Group: Development/Libraries | |
32 | Requires: %{name} = %{version}-%{release} | |
33 | ||
34 | %description devel | |
35 | Header files for libytnef library. | |
36 | ||
37 | %description devel -l pl.UTF-8 | |
38 | Pliki nagłówkowe biblioteki libytnef. | |
39 | ||
40 | %package static | |
41 | Summary: Static libytnef library | |
42 | Summary(pl.UTF-8): Statyczna biblioteka libytnef | |
43 | Group: Development/Libraries | |
44 | Requires: %{name}-devel = %{version}-%{release} | |
45 | ||
46 | %description static | |
47 | Static libytnef library. | |
48 | ||
49 | %description static -l pl.UTF-8 | |
50 | Statyczna biblioteka libytnef. | |
51 | ||
173b4b06 JB |
52 | %package -n ytnef |
53 | Summary: Yerase's TNEF Stream Reader | |
54 | Summary(pl.UTF-8): Czytnik strumieni TNET autorstwa Yerase | |
55 | # it's a continuation of separate subproject (ytnef.spec) ended at version 2.7 | |
56 | Epoch: 1 | |
57 | Group: Applications/File | |
58 | Requires: %{name} = %{version}-%{release} | |
59 | ||
60 | %description -n ytnef | |
61 | Yerase's TNEF Stream Reader. Can take a TNEF Stream (winmail.dat) | |
62 | sent from Microsoft Outlook (or similar products) and extract the | |
63 | attachments, including construction of Contact Cards & Calendar | |
64 | entries. | |
65 | ||
66 | %description -n ytnef -l pl.UTF-8 | |
67 | Czytnik strumieni TNET autorstwa Yerase - potrafi przyjąć strumień | |
68 | TNEF (winmail.dat) wysłany w programu Microsoft Outlook (lub | |
69 | podobnego) i wydobyć załączniki, w tym tworzenie kart kontaktowych | |
70 | oraz wpisów kalendarza. | |
71 | ||
72 | # NOTE: don't place any subpackages after -n ytnef because of EPOCH setting | |
73 | ||
9459d6a0 | 74 | %prep |
173b4b06 | 75 | %setup -q -n ytnef-%{version} |
9459d6a0 MB |
76 | |
77 | %build | |
78 | %{__libtoolize} | |
79 | %{__aclocal} | |
80 | %{__autoconf} | |
81 | %{__autoheader} | |
82 | %{__automake} | |
173b4b06 JB |
83 | %configure \ |
84 | --disable-silent-rules | |
9459d6a0 MB |
85 | %{__make} |
86 | ||
87 | %install | |
88 | rm -rf $RPM_BUILD_ROOT | |
89 | ||
90 | %{__make} install \ | |
91 | DESTDIR=$RPM_BUILD_ROOT | |
92 | ||
173b4b06 JB |
93 | # obsoleted by pkg-config |
94 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libytnef.la | |
95 | ||
9459d6a0 MB |
96 | %clean |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | ||
99 | %post -p /sbin/ldconfig | |
100 | %postun -p /sbin/ldconfig | |
101 | ||
102 | %files | |
103 | %defattr(644,root,root,755) | |
0163bd29 | 104 | %doc ChangeLog |
9459d6a0 | 105 | %attr(755,root,root) %{_libdir}/libytnef.so.*.*.* |
0163bd29 | 106 | %attr(755,root,root) %ghost %{_libdir}/libytnef.so.0 |
9459d6a0 MB |
107 | |
108 | %files devel | |
109 | %defattr(644,root,root,755) | |
110 | %attr(755,root,root) %{_libdir}/libytnef.so | |
c4065d7b JB |
111 | %{_includedir}/mapi.h |
112 | %{_includedir}/mapidefs.h | |
113 | %{_includedir}/mapitags.h | |
114 | %{_includedir}/tnef-errors.h | |
115 | %{_includedir}/tnef-types.h | |
116 | %{_includedir}/ytnef.h | |
173b4b06 | 117 | %{_pkgconfigdir}/libytnef.pc |
9459d6a0 MB |
118 | |
119 | %files static | |
120 | %defattr(644,root,root,755) | |
121 | %{_libdir}/libytnef.a | |
173b4b06 JB |
122 | |
123 | %files -n ytnef | |
124 | %defattr(644,root,root,755) | |
125 | %attr(755,root,root) %{_bindir}/ytnef | |
126 | %attr(755,root,root) %{_bindir}/ytnefprint | |
127 | %attr(755,root,root) %{_bindir}/ytnefprocess |