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