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