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