]> git.pld-linux.org Git - packages/libpst.git/blobdiff - libpst.spec
- updated to 0.6.61
[packages/libpst.git] / libpst.spec
index b2b672396aec2d59502a9dbbed0e92296630ce9f..bc9538336150baa7fd6e234e4426ba83c768fbc8 100644 (file)
-Summary:       Utility for converting Microsoft Outlook mail files
-Summary(pl.UTF-8):     Narzędzie do konwertowania plików wiadomości Microsoft Outlooka
+#
+# Conditional build:
+%bcond_without static_libs     # don't build static libraries
+#
+Summary:       Library for reading .pst files
+Summary(pl.UTF-8):     Biblioteka do czytania plików .pst
 Name:          libpst
-Version:       0.5.1
-Release:       3
-License:       GPL
-Group:         Applications
-Source0:       http://alioth.debian.org/download.php/844/%{name}-%{version}.tar.gz
-# Source0-md5: 0a80562bf7c503f9d3fdd96e0de10408
-Patch0:                readpst-install.patch
-URL:           http://alioth.debian.org/projects/libpst/
-Obsoletes:     readpst
+Version:       0.6.61
+Release:       1
+License:       GPL v2+
+Group:         Libraries
+Source0:       http://www.five-ten-sg.com/libpst/packages/%{name}-%{version}.tar.gz
+# Source0-md5: f317c8787d4db690a14f2c5e3813c3b1
+URL:           http://www.five-ten-sg.com/libpst/
+BuildRequires: ImageMagick
+BuildRequires: autoconf >= 2.59
+BuildRequires: automake
+BuildRequires: boost-python-devel
+BuildRequires: gd-devel
+BuildRequires: libgsf-devel
+BuildRequires: libstdc++-devel
+BuildRequires: libtool
+BuildRequires: python-devel
+BuildRequires: python-modules
+BuildRequires: rpm-pythonprov
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-readpst is a utility for converting Microsoft Outlook mail files
-(personal folders) to standard UNIX mbox format.
-
-This is a fork of the libpst project at sourceforge.
+Library for reading PST (MS Outlook Personal Folders) files.
 
 %description -l pl.UTF-8
-readpst to narzędzie do konwertowania plików wiadomości programu
-Microsoft Outlook (osobistych katalogów) do standardowego formatu Unix
-mbox.
+Biblioteka do czytania plików .pst.
+
+%package devel
+Summary:       Header files for libpst library
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki libpst
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+
+%description devel
+Header files for libpst library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki libpst.
+
+%package static
+Summary:       Static libpst library
+Summary(pl.UTF-8):     Statyczna biblioteka libpst
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+
+%description static
+Static libpst library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka libpst.
+
+%package tools
+Summary:       Utilities for converting Microsoft Outlook .pst files
+Summary(pl.UTF-8):     Narzędzia do konwertowania plików .pst Microsoft Outlooka
+Group:         Applications
+Requires:      %{name} = %{version}-%{release}
+Requires:      ImageMagick
+Obsoletes:     readpst
+
+%description tools
+Utilities for converting Microsoft Outlook .pst files.
+
+%description tools -l pl.UTF-8
+Narzędzia do konwertowania plików .pst Microsoft Outlooka.
 
-Jest to odgałęzienie projektu libpst na sourceforge.
+%package -n python-libpst
+Summary:       libpst Python bindings
+Summary(pl.UTF-8):     Wiązania libpst dla Pythona
+Group:         Development/Languages/Python
+
+%description -n python-libpst
+libpst Python bindings.
+
+%description -n python-libpst -l pl.UTF-8
+Wiązania libpst dla Pythona.
 
 %prep
 %setup -q
-%patch0 -p1
 
 %build
-%{__make} \
-       CC="%{__cc}" \
-       CFLAGS="%{rpmcflags}"
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+       %{!?with_static_libs:--disable-static} \
+       --enable-dii \
+       --enable-libpst-shared
+
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{py_sitedir}
+
 %{__make} install \
-       PREFIX=%{_prefix} \
        DESTDIR=$RPM_BUILD_ROOT
 
+%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/_libpst.{a,la}
+# packaged as %doc (split into base and -devel)
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
+
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS CREDITS ChangeLog FILE-FORMAT TODO
+%doc AUTHORS ChangeLog NEWS README TODO
+%attr(755,root,root) %{_libdir}/libpst.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libpst.so.4
+
+%files devel
+%defattr(644,root,root,755)
+%doc html/*.html html/devel
+%attr(755,root,root) %{_libdir}/libpst.so
+%{_libdir}/libpst.la
+%{_includedir}/libpst-4
+%{_pkgconfigdir}/libpst.pc
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libpst.a
+%endif
+
+%files tools
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/lspst
+%attr(755,root,root) %{_bindir}/nick2ldif
+%attr(755,root,root) %{_bindir}/pst2dii
+%attr(755,root,root) %{_bindir}/pst2ldif
 %attr(755,root,root) %{_bindir}/readpst
-%attr(755,root,root) %{_bindir}/readpstlog
+%{_mandir}/man1/lspst.1*
+%{_mandir}/man1/pst2dii.1*
+%{_mandir}/man1/pst2ldif.1*
 %{_mandir}/man1/readpst.1*
-%{_mandir}/man1/readpstlog.1*
+%{_mandir}/man5/outlook.pst.5*
+
+%files -n python-libpst
+%defattr(644,root,root,755)
+%attr(755,root,root) %{py_sitedir}/_libpst.so
This page took 0.069668 seconds and 4 git commands to generate.