]>
Commit | Line | Data |
---|---|---|
31608406 MB |
1 | Summary: Library for reading .pst files |
2 | Summary(pl.UTF-8): Biblioteka do czytania plików .pst | |
790368a3 | 3 | Name: libpst |
5b65699d | 4 | Version: 0.6.47 |
5 | Release: 1 | |
6 | License: GPL v2+ | |
31608406 MB |
7 | Group: Libraries |
8 | Source0: http://www.five-ten-sg.com/libpst/packages/%{name}-%{version}.tar.gz | |
5b65699d | 9 | # Source0-md5: 72e49f127ca1fff888d5a262e7a60d4e |
8a1b1bd1 | 10 | Patch0: %{name}-m4.patch |
31608406 MB |
11 | URL: http://www.five-ten-sg.com/libpst/ |
12 | BuildRequires: ImageMagick | |
13 | BuildRequires: autoconf >= 2.59 | |
14 | BuildRequires: automake | |
8a1b1bd1 | 15 | BuildRequires: boost-python-devel |
31608406 MB |
16 | BuildRequires: gd-devel |
17 | BuildRequires: libstdc++-devel | |
18 | BuildRequires: libtool | |
8cc9c34d | 19 | BuildRequires: python-devel |
20 | BuildRequires: python-modules | |
21 | BuildRequires: rpm-pythonprov | |
790368a3 JB |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
24 | %description | |
1f2cd581 | 25 | Library for reading PST (MS Outlook Personal Folders) files. |
790368a3 | 26 | |
5cca55a2 | 27 | %description -l pl.UTF-8 |
31608406 MB |
28 | Biblioteka do czytania plików .pst. |
29 | ||
30 | %package devel | |
31 | Summary: Header files for libpst library | |
32 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libpst | |
33 | Group: Development/Libraries | |
34 | Requires: %{name} = %{version}-%{release} | |
35 | ||
36 | %description devel | |
37 | Header files for libpst library. | |
38 | ||
39 | %description devel -l pl.UTF-8 | |
40 | Pliki nagłówkowe biblioteki libpst. | |
41 | ||
42 | %package static | |
43 | Summary: Static libpst library | |
44 | Summary(pl.UTF-8): Statyczna biblioteka libpst | |
45 | Group: Development/Libraries | |
46 | Requires: %{name}-devel = %{version}-%{release} | |
47 | ||
48 | %description static | |
49 | Static libpst library. | |
50 | ||
51 | %description static -l pl.UTF-8 | |
52 | Statyczna biblioteka libpst. | |
53 | ||
54 | %package tools | |
55 | Summary: Utilities for converting Microsoft Outlook .pst files | |
56 | Summary(pl.UTF-8): Narzędzia do konwertowania plików .pst Microsoft Outlooka | |
57 | Group: Applications | |
58 | Requires: %{name} = %{version}-%{release} | |
59 | Requires: ImageMagick | |
60 | Obsoletes: readpst | |
61 | ||
62 | %description tools | |
63 | Utilities for converting Microsoft Outlook .pst files. | |
34878604 | 64 | |
31608406 MB |
65 | %description tools -l pl.UTF-8 |
66 | Narzędzia do konwertowania plików .pst Microsoft Outlooka. | |
790368a3 | 67 | |
8a1b1bd1 MB |
68 | %package -n python-libpst |
69 | Summary: libpst Python bindings | |
70 | Summary(pl.UTF-8): Wiązania libpst dla Pythona | |
71 | Group: Development/Languages/Python | |
72 | ||
73 | %description -n python-libpst | |
74 | libpst Python bindings. | |
75 | ||
76 | %description -n python-libpst -l pl.UTF-8 | |
77 | Wiązania libpst dla Pythona. | |
78 | ||
790368a3 | 79 | %prep |
b18e1b26 | 80 | %setup -q |
8a1b1bd1 | 81 | %patch0 -p1 |
790368a3 JB |
82 | |
83 | %build | |
31608406 MB |
84 | %{__libtoolize} |
85 | %{__aclocal} -I m4 | |
86 | %{__autoconf} | |
87 | %{__autoheader} | |
88 | %{__automake} | |
89 | %configure \ | |
90 | --enable-dii \ | |
91 | --enable-libpst-shared | |
92 | ||
93 | %{__make} | |
790368a3 JB |
94 | |
95 | %install | |
96 | rm -rf $RPM_BUILD_ROOT | |
a624d136 | 97 | install -d $RPM_BUILD_ROOT%{py_sitedir} |
31608406 | 98 | |
34878604 | 99 | %{__make} install \ |
34878604 | 100 | DESTDIR=$RPM_BUILD_ROOT |
790368a3 | 101 | |
a624d136 | 102 | install python/.libs/_libpst.so $RPM_BUILD_ROOT%{py_sitedir} |
8a1b1bd1 | 103 | |
790368a3 JB |
104 | %clean |
105 | rm -rf $RPM_BUILD_ROOT | |
106 | ||
31608406 MB |
107 | %post -p /sbin/ldconfig |
108 | %postun -p /sbin/ldconfig | |
109 | ||
790368a3 JB |
110 | %files |
111 | %defattr(644,root,root,755) | |
31608406 MB |
112 | %doc AUTHORS ChangeLog README TODO |
113 | %attr(755,root,root) %{_libdir}/libpst.so.*.*.* | |
8a1b1bd1 | 114 | %attr(755,root,root) %ghost %{_libdir}/libpst.so.4 |
31608406 MB |
115 | |
116 | %files devel | |
117 | %defattr(644,root,root,755) | |
118 | %attr(755,root,root) %{_libdir}/libpst.so | |
119 | %{_libdir}/libpst.la | |
8a1b1bd1 | 120 | %{_includedir}/libpst-4 |
31608406 MB |
121 | %{_pkgconfigdir}/libpst.pc |
122 | ||
123 | %files static | |
124 | %defattr(644,root,root,755) | |
125 | %{_libdir}/libpst.a | |
126 | ||
127 | %files tools | |
128 | %defattr(644,root,root,755) | |
129 | %attr(755,root,root) %{_bindir}/lspst | |
130 | %attr(755,root,root) %{_bindir}/pst2dii | |
131 | %attr(755,root,root) %{_bindir}/pst2ldif | |
34878604 | 132 | %attr(755,root,root) %{_bindir}/readpst |
31608406 MB |
133 | %{_mandir}/man1/lspst.1* |
134 | %{_mandir}/man1/pst2dii.1* | |
135 | %{_mandir}/man1/pst2ldif.1* | |
34878604 | 136 | %{_mandir}/man1/readpst.1* |
31608406 | 137 | %{_mandir}/man5/outlook.pst.5* |
8a1b1bd1 MB |
138 | |
139 | %files -n python-libpst | |
140 | %defattr(644,root,root,755) | |
141 | %attr(755,root,root) %{py_sitedir}/_libpst.so |