comparison libpst.spec.in @ 180:265c7a65b75b

switch back to fully versioned subpackage dependencies add doxygen devel-doc documentation for the shared library
author Carl Byington <carl@five-ten-sg.com>
date Fri, 10 Apr 2009 12:00:46 -0700
parents 83cb32e41f80
children 3b04745ff76d
comparison
equal deleted inserted replaced
179:83cb32e41f80 180:265c7a65b75b
6 Group: Applications/Productivity 6 Group: Applications/Productivity
7 Source: http://www.five-ten-sg.com/%{name}/packages/%{name}-%{version}.tar.gz 7 Source: http://www.five-ten-sg.com/%{name}/packages/%{name}-%{version}.tar.gz
8 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) 8 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
9 URL: http://www.five-ten-sg.com/%{name}/ 9 URL: http://www.five-ten-sg.com/%{name}/
10 Requires: ImageMagick 10 Requires: ImageMagick
11 Requires: %{name}-libs = %{version}-%{release}
11 BuildRequires: ImageMagick freetype-devel gd-devel libjpeg-devel zlib-devel 12 BuildRequires: ImageMagick freetype-devel gd-devel libjpeg-devel zlib-devel
12 13
13 %description 14 %description
14 The Libpst utilities include readpst which can convert email messages 15 The Libpst utilities include readpst which can convert email messages
15 to both mbox and MH mailbox formats, pst2ldif which can convert the 16 to both mbox and MH mailbox formats, pst2ldif which can convert the
21 %package libs 22 %package libs
22 Summary: Shared library used by the pst utilities 23 Summary: Shared library used by the pst utilities
23 Group: Development/Libraries 24 Group: Development/Libraries
24 25
25 %description libs 26 %description libs
26 libpst-libs contains the shared library used by the pst utilities. 27 The libpst-libs package contains the shared library used by the pst
28 utilities.
27 29
28 30
29 %package devel 31 %package devel
30 Summary: Library links and header files for libpst application development 32 Summary: Library links and header files for libpst application development
31 Group: Development/Libraries 33 Group: Development/Libraries
32 Requires: pkgconfig freetype-devel gd-devel libjpeg-devel zlib-devel 34 Requires: pkgconfig
33 Requires: %{name}-libs = %{version}-%{release} 35 Requires: %{name}-libs = %{version}-%{release}
34 36
35 %description devel 37 %description devel
36 libpst-devel contains the library links and header files you'll 38 The libpst-devel package contains the library links and header files
37 need to develop applications using the libpst shared library. 39 you'll need to develop applications using the libpst shared library.
38 You do not need to install it if you just want to use the libpst 40 You do not need to install it if you just want to use the libpst
39 utilities. 41 utilities.
42
43
44 %package devel-doc
45 Summary: Documentation for libpst.so for libpst application development
46 Group: Documentation
47 Requires: %{name}-doc = %{version}-%{release}
48
49 %description devel-doc
50 The libpst-devel-doc package contains the doxygen generated
51 documentation for the libpst.so shared library.
52
53
54 %package doc
55 Summary: Documentation for the pst utilities in html format
56 Group: Documentation
57
58 %description doc
59 The libpst-doc package contains the html documentation for the pst
60 utilities. You do not need to install it if you just want to use the
61 libpst utilities.
40 62
41 63
42 64
43 %prep 65 %prep
44 %setup -q 66 %setup -q
69 %files 91 %files
70 %defattr(-,root,root,-) 92 %defattr(-,root,root,-)
71 %{_bindir}/* 93 %{_bindir}/*
72 %{_mandir}/man1/* 94 %{_mandir}/man1/*
73 %{_mandir}/man5/* 95 %{_mandir}/man5/*
74 %{_datadir}/doc/%{name}-%{version}/
75 96
76 97
77 %files libs 98 %files libs
78 %defattr(-,root,root,-) 99 %defattr(-,root,root,-)
79 %{_libdir}/libpst.so.* 100 %{_libdir}/libpst.so.*
101
102
103 %files devel-doc
104 %defattr(-,root,root,-)
105 %{_datadir}/doc/%{name}-%{version}/devel
80 106
81 107
82 %files devel 108 %files devel
83 %defattr(-,root,root,-) 109 %defattr(-,root,root,-)
84 %{_libdir}/libpst.so 110 %{_libdir}/libpst.so
85 %{_includedir}/%{name}-@LIBPST_SO_MAJOR@/ 111 %{_includedir}/%{name}-@LIBPST_SO_MAJOR@/
86 %{_libdir}/pkgconfig/libpst.pc 112 %{_libdir}/pkgconfig/libpst.pc
87 113
88 114
115 %files doc
116 %defattr(-,root,root,-)
117 %{_datadir}/doc/%{name}-%{version}/
118
119
120
89 %changelog 121 %changelog
90 * Thu Apr 09 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.36-1 122 * Thu Apr 09 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.36-1
91 - remove fully versioned -libs dependency from main package. 123 - change to >= for -libs dependency from the main package.
124 - add -doc subpackage.
92 - other spec file cleanup 125 - other spec file cleanup
93 126
94 * Wed Apr 08 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.35-1 127 * Wed Apr 08 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.35-1
95 - properly add trailing mime boundary in all modes. 128 - properly add trailing mime boundary in all modes.
96 - build separate libpst, libpst-libs, libpst-devel rpms. 129 - build separate libpst, libpst-libs, libpst-devel rpms.