Commit 572d489a 572d489a72186777a62c85e4b473c3208c50d5a9 by Jakob Kaivo

update RPM .spec file for good RPM creation, add rpm target so we can do 'make rpm'

1 parent ae189631
...@@ -9,3 +9,5 @@ EXTRA_DIST = mailutils.spec mailutils.spec.in README-alpha COPYING.FDL ...@@ -9,3 +9,5 @@ EXTRA_DIST = mailutils.spec mailutils.spec.in README-alpha COPYING.FDL
9 release: 9 release:
10 $(MAKE) dist distdir=$(PACKAGE)-`date +"%Y%m%d"` 10 $(MAKE) dist distdir=$(PACKAGE)-`date +"%Y%m%d"`
11 11
12 rpm: dist
13 rpm -ta --clean gdbc-$(VERSION).tar.gz
......
...@@ -17,23 +17,23 @@ Group: Console/Mail ...@@ -17,23 +17,23 @@ Group: Console/Mail
17 %description 17 %description
18 GNU mail utilities 18 GNU mail utilities
19 19
20 %package libmailbox 20 %package -n libmailbox
21 Summary: GNU mail utilities mailbox access library 21 Summary: GNU mail utilities mailbox access library
22 Copyright: LGPL 22 Copyright: LGPL
23 Group: Development/Libraries 23 Group: Development/Libraries
24 24
25 %description libmailbox 25 %description -n libmailbox
26 The runtime library libmailbox. This library contains various mailbox 26 The runtime library libmailbox. This library contains various mailbox
27 access routines and support for a number of mailbox types, such as 27 access routines and support for a number of mailbox types, such as
28 mbox, Maildir, POP3, and IMAP4. 28 mbox, Maildir, POP3, and IMAP4.
29 29
30 %package libmailbox-devel 30 %package -n libmailbox-dev
31 Summary: GNU mail utilities mailbox access library development 31 Summary: GNU mail utilities mailbox access library development
32 Copyright: LGPL 32 Copyright: LGPL
33 Requires: libmailbox 33 Requires: libmailbox
34 Group: Development/Libraries 34 Group: Development/Libraries
35 35
36 %description libmailbox-devel 36 %description -n libmailbox-dev
37 The static library and header files for libmailbox. API documentation 37 The static library and header files for libmailbox. API documentation
38 is in mailutils-doc. 38 is in mailutils-doc.
39 39
...@@ -46,21 +46,21 @@ Group: Development/Libraries ...@@ -46,21 +46,21 @@ Group: Development/Libraries
46 API reference for libmailbox and user documentation for the rest of 46 API reference for libmailbox and user documentation for the rest of
47 the GNU mail utilities. 47 the GNU mail utilities.
48 48
49 %package mail 49 %package -n gnu-mail
50 Summary: GNU mail utilties mail(x) replacement 50 Summary: GNU mail utilties mail(x) replacement
51 Requires: libmailbox 51 Requires: libmailbox
52 Group: Console/Mail 52 Group: Console/Mail
53 53
54 %description mail 54 %description -n gnu-mail
55 A replacement for /bin/mail(x) conforming to the UNIX98 specification 55 A replacement for /bin/mail(x) conforming to the UNIX98 specification
56 for mailx. 56 for mailx.
57 57
58 %package pop3d 58 %package -n gnu-pop3d
59 Summary: GNU mail utilites POP3 daemon 59 Summary: GNU mail utilites POP3 daemon
60 Requires: libmailbox 60 Requires: libmailbox
61 Group: Networking/Daemons 61 Group: Networking/Daemons
62 62
63 %description pop3d 63 %description -n gnu-pop3d
64 The GNU POP3 daemon. Uses libmailbox to support different styles of 64 The GNU POP3 daemon. Uses libmailbox to support different styles of
65 mailboxes. 65 mailboxes.
66 66
...@@ -79,9 +79,9 @@ gzip -9n $RPM_BUILD_ROOT%{prefix}/info/* ...@@ -79,9 +79,9 @@ gzip -9n $RPM_BUILD_ROOT%{prefix}/info/*
79 %clean 79 %clean
80 rm -rf $RPM_BUILD_ROOT 80 rm -rf $RPM_BUILD_ROOT
81 81
82 %post libmailbox -p /sbin/ldconfig 82 %post -n libmailbox -p /sbin/ldconfig
83 83
84 %postun libmailbox -p /sbin/ldconfig 84 %postun -n libmailbox -p /sbin/ldconfig
85 85
86 %post doc 86 %post doc
87 /sbin/install-info %{prefix}/info/mailutils.info.gz %{prefix}/info/dir 87 /sbin/install-info %{prefix}/info/mailutils.info.gz %{prefix}/info/dir
...@@ -90,11 +90,11 @@ rm -rf $RPM_BUILD_ROOT ...@@ -90,11 +90,11 @@ rm -rf $RPM_BUILD_ROOT
90 /sbin/install-info --delete %{prefix}/info/mailutils.info.gz \ 90 /sbin/install-info --delete %{prefix}/info/mailutils.info.gz \
91 %{prefix}/info/dif 91 %{prefix}/info/dif
92 92
93 %files libmailbox 93 %files -n libmailbox
94 %defattr(-, root, root) 94 %defattr(-, root, root)
95 %{prefix}/lib/libmailbox.so.* 95 %{prefix}/lib/libmailbox.so.*
96 96
97 %files libmailbox-devel 97 %files -n libmailbox-dev
98 %defattr(-, root, root) 98 %defattr(-, root, root)
99 %{prefix}/lib/lib*.so 99 %{prefix}/lib/lib*.so
100 %{prefix}/lib/*a 100 %{prefix}/lib/*a
...@@ -104,10 +104,10 @@ rm -rf $RPM_BUILD_ROOT ...@@ -104,10 +104,10 @@ rm -rf $RPM_BUILD_ROOT
104 %doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO 104 %doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO
105 %{prefix}/info/* 105 %{prefix}/info/*
106 106
107 %files mail 107 %files -n gnu-mail
108 %defattr(-, root, root) 108 %defattr(-, root, root)
109 %{prefix}/bin/mail 109 %{prefix}/bin/mail
110 110
111 %files pop3d 111 %files -n gnu-pop3d
112 %defattr(-, root, root) 112 %defattr(-, root, root)
113 %{prefix}/sbin/pop3d 113 %{prefix}/sbin/pop3d
......