comparison libpst.spec.in @ 64:2c6040b6e8f8

packaging for Fedora (#434727)
author Carl Byington <carl@five-ten-sg.com>
date Tue, 26 Feb 2008 17:06:33 -0800
parents 06c0262ad689
children 800c6fde1cf6
comparison
equal deleted inserted replaced
63:cfd6175f9334 64:2c6040b6e8f8
1 %define localstatedir /var/lib 1 %define localstatedir /var/lib
2 2
3 Summary: @PACKAGE@ Libpst utilities 3 Summary: Utilities to convert Outlook .pst files to other formats
4 Name: @PACKAGE@ 4 Name: @PACKAGE@
5 Version: @VERSION@ 5 Version: @VERSION@
6 Release: %{?custom_release}%{!?custom_release:1} 6 Release: 1%{?dist}
7 License: GPL version 2 or later 7 License: GPLv2+
8 Group: Applications/Productivity 8 Group: Applications/Productivity
9 Source: http://www.five-ten-sg.com/@PACKAGE@/packages/@PACKAGE@-@VERSION@.tar.gz 9 Source: http://www.five-ten-sg.com/%{name}/packages/%{name}-%{version}.tar.gz
10 BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot 10 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
11 URL: http://www.five-ten-sg.com/@PACKAGE@/ 11 URL: http://www.five-ten-sg.com/%{name}/
12 Vendor: Libpst team 12 Requires: freetype gd libpng libjpeg zlib glibc libgcc libstdc++
13 Packager: 510 Software Group 13 BuildRequires: freetype-devel gd-devel libjpeg-devel zlib-devel
14 AutoReqProv: no 14
15 15
16 %description 16 %description
17 The Libpst utilities include readpst which can extract mail messages from an Outlook .pst file, and pst2ldif which can convert the contacts to .ldif format for import into ldap databases. 17 The Libpst utilities include readpst which can convert email messages
18 to both mbox and MH mailbox formats, pst2ldif which can convert the
19 contacts to .ldif format for import into ldap databases, and pst2dii
20 which can convert email messages to the DII load file format used by
21 Summation.
18 22
19 23
20 %prep 24 %prep
25 %setup -q
26
27 %build
28 %configure
29 make %{?_smp_mflags}
30
31 %install
32 rm -rf $RPM_BUILD_ROOT
33 make DESTDIR=$RPM_BUILD_ROOT install
21 34
22 35
23 %setup 36 %clean
24
25
26 %build
27 ./configure --prefix=%{_prefix} \
28 --bindir=%{_bindir} --mandir=%{_mandir} \
29 --localstatedir=%{localstatedir} --libdir=%{_libdir} \
30 --datadir=%{_datadir} --includedir=%{_includedir} \
31 --sysconfdir=%{_sysconfdir}
32 make
33
34
35 %install
36 if [ "$RPM_BUILD_ROOT" = "/" -o -z "$RPM_BUILD_ROOT" ] ; then
37 echo sorry, you probably do not want me to delete the old buildroot at $RPM_BUILD_ROOT
38 exit 1
39 fi
40 rm -rf $RPM_BUILD_ROOT 37 rm -rf $RPM_BUILD_ROOT
41 make prefix=$RPM_BUILD_ROOT%{_prefix} bindir=$RPM_BUILD_ROOT%{_bindir} \
42 mandir=$RPM_BUILD_ROOT%{_mandir} libdir=$RPM_BUILD_ROOT%{_libdir} \
43 localstatedir=$RPM_BUILD_ROOT%{localstatedir} \
44 datadir=$RPM_BUILD_ROOT%{_datadir} \
45 includedir=$RPM_BUILD_ROOT%{_includedir} \
46 sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} install
47 mkdir -p $RPM_BUILD_ROOT%{_datadir}/doc/@PACKAGE@-@VERSION@
48 mv AUTHORS COPYING ChangeLog NEWS README $RPM_BUILD_ROOT%{_datadir}/doc/@PACKAGE@-@VERSION@
49
50
51 %pre
52
53 %post
54
55 %preun
56
57 %postun
58
59 %clean
60 38
61 %files 39 %files
62 %defattr(-,root,root) 40 %defattr(-,root,root,-)
63 %{_bindir}/* 41 %{_bindir}/*
64 %doc %{_mandir}/* 42 %{_mandir}/man1/*
65 %docdir %{_datadir}/doc/@PACKAGE@-@VERSION@ 43 %{_mandir}/man5/*
66 %{_datadir}/doc/@PACKAGE@-@VERSION@ 44 %doc AUTHORS COPYING ChangeLog NEWS README
67 45
68 46
69 %changelog 47 %changelog
70 * Tue Jul 10 2007 Carl Byington 0.5.5 48 * Tue Feb 26 2008 Carl Byington <carl@five-ten-sg.com> - 0.6.8
49 - Initial version of pst2dii to convert to Summation dii load file format
50 - changes for Fedora packaging guidelines (#434727)
51
52 * Tue Jul 10 2007 Carl Byington <carl@five-ten-sg.com> - 0.5.5
71 - merge changes from Joe Nahmias version 53 - merge changes from Joe Nahmias version
72 54
73 * Sun Feb 19 2006 Carl Byington 0.5.3 55 * Sun Feb 19 2006 Carl Byington <carl@five-ten-sg.com> - 0.5.3
74 - initial spec file using autoconf and http://www.fedora.us/docs/rpm-packaging-guidelines.html 56 - initial spec file using autoconf and http://www.fedora.us/docs/rpm-packaging-guidelines.html
75 57