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