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