comparison libpst.spec.in @ 16:c508ee15dfca

switch to automake/autoconf
author carl
date Sun, 19 Feb 2006 18:47:46 -0800
parents
children f4643b609bdf
comparison
equal deleted inserted replaced
15:ac98f448b6ab 16:c508ee15dfca
1 %define localstatedir /var/lib
2
3 Summary: @PACKAGE@ Libpst utilities
4 Name: @PACKAGE@
5 Version: @VERSION@
6 Release: %{?custom_release}%{!?custom_release:1}
7 Copyright: GPL
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/etc/rc.d/init.d
48 mkdir -p $RPM_BUILD_ROOT%{_datadir}/doc/@PACKAGE@-@VERSION@
49 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/dnsbl/dnsbl $RPM_BUILD_ROOT/etc/rc.d/init.d
50 mv AUTHORS COPYING ChangeLog NEWS README $RPM_BUILD_ROOT%{_datadir}/doc/@PACKAGE@-@VERSION@
51 mkdir -p %{buildroot}/var/run/@PACKAGE@
52
53
54 %pre
55
56 %post
57
58 %preun
59
60 %postun
61
62 %clean
63
64 %files
65 %defattr(-,root,root)
66 %{_sbindir}/*
67 %doc %{_mandir}/*
68 %docdir %{_datadir}/doc/@PACKAGE@-@VERSION@
69 %{_datadir}/doc/@PACKAGE@-@VERSION@
70 %config(noreplace) %{_sysconfdir}/@PACKAGE@
71 %config(noreplace) %{_sysconfdir}/@PACKAGE@/*.conf
72 /etc/rc.d/init.d/@PACKAGE@
73 %dir %attr(0750,@PACKAGE@,root) /var/run/@PACKAGE@
74
75
76 %changelog
77 * Sun Feb 19 2006 Carl Byington 1.0