]> git.pld-linux.org Git - packages/libpst.git/blob - libpst.spec
- up to 0.6.52
[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.52
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:  5e39ee9ed8a1fc0dfb32c3c46f6569c9
14 Patch0:         %{name}-m4.patch
15 URL:            http://www.five-ten-sg.com/libpst/
16 BuildRequires:  ImageMagick
17 BuildRequires:  autoconf >= 2.59
18 BuildRequires:  automake
19 BuildRequires:  boost-python-devel
20 BuildRequires:  gd-devel
21 BuildRequires:  libstdc++-devel
22 BuildRequires:  libtool
23 BuildRequires:  python-devel
24 BuildRequires:  python-modules
25 BuildRequires:  rpm-pythonprov
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 Library for reading PST (MS Outlook Personal Folders) files.
30
31 %description -l pl.UTF-8
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.
68
69 %description tools -l pl.UTF-8
70 Narzędzia do konwertowania plików .pst Microsoft Outlooka.
71
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
83 %prep
84 %setup -q
85 %patch0 -p1
86
87 %build
88 %{__libtoolize}
89 %{__aclocal} -I m4
90 %{__autoconf}
91 %{__autoheader}
92 %{__automake}
93 %configure \
94         %{!?with_static_libs:--disable-static} \
95         --enable-dii \
96         --enable-libpst-shared
97
98 %{__make}
99
100 %install
101 rm -rf $RPM_BUILD_ROOT
102 install -d $RPM_BUILD_ROOT%{py_sitedir}
103
104 %{__make} install \
105         DESTDIR=$RPM_BUILD_ROOT
106
107 rm -f $RPM_BUILD_ROOT%{py_sitedir}/_libpst.{a,la}
108
109 %clean
110 rm -rf $RPM_BUILD_ROOT
111
112 %post   -p /sbin/ldconfig
113 %postun -p /sbin/ldconfig
114
115 %files
116 %defattr(644,root,root,755)
117 %doc AUTHORS ChangeLog NEWS README TODO
118 %attr(755,root,root) %{_libdir}/libpst.so.*.*.*
119 %attr(755,root,root) %ghost %{_libdir}/libpst.so.4
120
121 %files devel
122 %defattr(644,root,root,755)
123 %attr(755,root,root) %{_libdir}/libpst.so
124 %{_libdir}/libpst.la
125 %{_includedir}/libpst-4
126 %{_pkgconfigdir}/libpst.pc
127
128 %if %{with static_libs}
129 %files static
130 %defattr(644,root,root,755)
131 %{_libdir}/libpst.a
132 %endif
133
134 %files tools
135 %defattr(644,root,root,755)
136 %attr(755,root,root) %{_bindir}/lspst
137 %attr(755,root,root) %{_bindir}/nick2ldif
138 %attr(755,root,root) %{_bindir}/pst2dii
139 %attr(755,root,root) %{_bindir}/pst2ldif
140 %attr(755,root,root) %{_bindir}/readpst
141 %{_mandir}/man1/lspst.1*
142 %{_mandir}/man1/pst2dii.1*
143 %{_mandir}/man1/pst2ldif.1*
144 %{_mandir}/man1/readpst.1*
145 %{_mandir}/man5/outlook.pst.5*
146
147 %files -n python-libpst
148 %defattr(644,root,root,755)
149 %attr(755,root,root) %{py_sitedir}/_libpst.so
This page took 0.082144 seconds and 4 git commands to generate.