16
|
1 %define localstatedir /var/lib
|
|
2
|
|
3 Summary: @PACKAGE@ Libpst utilities
|
|
4 Name: @PACKAGE@
|
|
5 Version: @VERSION@
|
|
6 Release: %{?custom_release}%{!?custom_release:1}
|
31
|
7 License: GPL
|
16
|
8 Group: System Environment/Daemons
|
|
9 Source: http://www.five-ten-sg.com/@PACKAGE@/packages/@PACKAGE@-@VERSION@.tar.gz
|
|
10 BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
|
|
11 URL: http://www.five-ten-sg.com/@PACKAGE@/
|
|
12 Vendor: Libpst team
|
|
13 Packager: 510 Software Group
|
|
14 AutoReqProv: no
|
|
15
|
|
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.
|
|
18
|
|
19
|
|
20 %prep
|
|
21
|
|
22
|
|
23 %setup
|
|
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
|
|
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@
|
24
|
48 mv AUTHORS COPYING ChangeLog NEWS README $RPM_BUILD_ROOT%{_datadir}/doc/@PACKAGE@-@VERSION@
|
16
|
49
|
|
50
|
|
51 %pre
|
|
52
|
|
53 %post
|
|
54
|
|
55 %preun
|
|
56
|
|
57 %postun
|
|
58
|
|
59 %clean
|
|
60
|
|
61 %files
|
|
62 %defattr(-,root,root)
|
24
|
63 %{_bindir}/*
|
16
|
64 %doc %{_mandir}/*
|
|
65 %docdir %{_datadir}/doc/@PACKAGE@-@VERSION@
|
|
66 %{_datadir}/doc/@PACKAGE@-@VERSION@
|
|
67
|
|
68
|
|
69 %changelog
|
31
|
70 * Tue Jul 10 2007 Carl Byington 0.5.5
|
|
71 - merge changes from Joe Nahmias version
|
|
72
|
|
73 * Sun Feb 19 2006 Carl Byington 0.5.3
|
24
|
74 - initial spec file using autoconf and http://www.fedora.us/docs/rpm-packaging-guidelines.html
|
|
75
|