]> git.pld-linux.org Git - packages/libpst.git/blob - libpst.spec
- note about what pst file is for
[packages/libpst.git] / libpst.spec
1 Summary:        Library for reading .pst files
2 Summary(pl.UTF-8):      Biblioteka do czytania plików .pst
3 Name:           libpst
4 Version:        0.6.47
5 Release:        1
6 License:        GPL v2+
7 Group:          Libraries
8 Source0:        http://www.five-ten-sg.com/libpst/packages/%{name}-%{version}.tar.gz
9 # Source0-md5:  72e49f127ca1fff888d5a262e7a60d4e
10 Patch0:         %{name}-m4.patch
11 URL:            http://www.five-ten-sg.com/libpst/
12 BuildRequires:  ImageMagick
13 BuildRequires:  autoconf >= 2.59
14 BuildRequires:  automake
15 BuildRequires:  boost-python-devel
16 BuildRequires:  gd-devel
17 BuildRequires:  libstdc++-devel
18 BuildRequires:  libtool
19 BuildRequires:  python-devel
20 BuildRequires:  python-modules
21 BuildRequires:  rpm-pythonprov
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 Library for reading PST (MS Outlook Personal Folders) files.
26
27 %description -l pl.UTF-8
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.
64
65 %description tools -l pl.UTF-8
66 Narzędzia do konwertowania plików .pst Microsoft Outlooka.
67
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
79 %prep
80 %setup -q
81 %patch0 -p1
82
83 %build
84 %{__libtoolize}
85 %{__aclocal} -I m4
86 %{__autoconf}
87 %{__autoheader}
88 %{__automake}
89 %configure \
90         --enable-dii \
91         --enable-libpst-shared
92
93 %{__make}
94
95 %install
96 rm -rf $RPM_BUILD_ROOT
97 install -d $RPM_BUILD_ROOT%{py_sitedir}
98
99 %{__make} install \
100         DESTDIR=$RPM_BUILD_ROOT
101
102 install python/.libs/_libpst.so $RPM_BUILD_ROOT%{py_sitedir}
103
104 %clean
105 rm -rf $RPM_BUILD_ROOT
106
107 %post   -p /sbin/ldconfig
108 %postun -p /sbin/ldconfig
109
110 %files
111 %defattr(644,root,root,755)
112 %doc AUTHORS ChangeLog README TODO
113 %attr(755,root,root) %{_libdir}/libpst.so.*.*.*
114 %attr(755,root,root) %ghost %{_libdir}/libpst.so.4
115
116 %files devel
117 %defattr(644,root,root,755)
118 %attr(755,root,root) %{_libdir}/libpst.so
119 %{_libdir}/libpst.la
120 %{_includedir}/libpst-4
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
132 %attr(755,root,root) %{_bindir}/readpst
133 %{_mandir}/man1/lspst.1*
134 %{_mandir}/man1/pst2dii.1*
135 %{_mandir}/man1/pst2ldif.1*
136 %{_mandir}/man1/readpst.1*
137 %{_mandir}/man5/outlook.pst.5*
138
139 %files -n python-libpst
140 %defattr(644,root,root,755)
141 %attr(755,root,root) %{py_sitedir}/_libpst.so
This page took 0.070239 seconds and 4 git commands to generate.