Mercurial > libpst
comparison libpst.spec.in @ 382:7eab29e13e61
changes for building on fedora 30
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 25 Jul 2019 07:18:19 -0700 |
parents | 1e1970f93f94 |
children | 2379a4d8d9c7 |
comparison
equal
deleted
inserted
replaced
381:d52cc63db773 | 382:7eab29e13e61 |
---|---|
1 Summary: Utilities to convert Outlook .pst files to other formats | 1 Summary: Utilities to convert Outlook .pst files to other formats |
2 Name: @PACKAGE@ | 2 Name: @PACKAGE@ |
3 Version: @VERSION@ | 3 Version: @VERSION@ |
4 Release: 1%{?dist} | 4 Release: 4%{?dist} |
5 License: GPLv2+ | 5 License: GPLv2+ |
6 Group: Applications/Productivity | |
7 Source: http://www.five-ten-sg.com/%{name}/packages/%{name}-%{version}.tar.gz | 6 Source: http://www.five-ten-sg.com/%{name}/packages/%{name}-%{version}.tar.gz |
8 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) | |
9 URL: http://www.five-ten-sg.com/%{name}/ | 7 URL: http://www.five-ten-sg.com/%{name}/ |
10 Requires: ImageMagick libgsf | 8 Requires: ImageMagick libgsf |
11 Requires: %{name}-libs = %{version}-%{release} | 9 Requires: %{name}-libs = %{version}-%{release} |
12 BuildRequires: libtool gcc-c++ | 10 BuildRequires: libtool gcc-c++ |
13 BuildRequires: ImageMagick gd-devel zlib-devel boost-devel libgsf-devel | 11 BuildRequires: ImageMagick gd-devel zlib-devel boost-devel libgsf-devel |
14 %if 0%{?fedora} > 27 | 12 %if 0%{?fedora} > 27 |
15 BuildRequires: python3 python3-devel boost-python3 boost-python3-devel | 13 BuildRequires: python3 python3-devel boost-python3 boost-python3-devel |
14 Requires: boost-python3 | |
16 %else | 15 %else |
17 BuildRequires: python-devel | 16 BuildRequires: python-devel |
18 %endif | 17 %endif |
19 | 18 |
20 %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} | 19 %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} |
29 Summation. | 28 Summation. |
30 | 29 |
31 | 30 |
32 %package libs | 31 %package libs |
33 Summary: Shared library used by the pst utilities | 32 Summary: Shared library used by the pst utilities |
34 Group: Development/Libraries | |
35 | 33 |
36 %description libs | 34 %description libs |
37 The libpst-libs package contains the shared library used by the pst | 35 The libpst-libs package contains the shared library used by the pst |
38 utilities. | 36 utilities. |
39 | 37 |
45 %else | 43 %else |
46 %package python | 44 %package python |
47 Requires: python | 45 Requires: python |
48 %endif | 46 %endif |
49 Summary: Python bindings for libpst | 47 Summary: Python bindings for libpst |
50 Group: Development/Libraries | |
51 Requires: %{name}-libs = %{version}-%{release} | 48 Requires: %{name}-libs = %{version}-%{release} |
52 | 49 |
53 %if 0%{?fedora} >= 20 | 50 %if 0%{?fedora} >= 20 |
54 %global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{python_sitearch}/_.*\.so$ | 51 %global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{python_sitearch}/_.*\.so$ |
55 %else | 52 %else |
69 from python code. | 66 from python code. |
70 | 67 |
71 | 68 |
72 %package devel | 69 %package devel |
73 Summary: Library links and header files for libpst application development | 70 Summary: Library links and header files for libpst application development |
74 Group: Development/Libraries | |
75 Requires: pkgconfig | 71 Requires: pkgconfig |
76 Requires: %{name}-libs = %{version}-%{release} | 72 Requires: %{name}-libs = %{version}-%{release} |
77 | 73 |
78 %description devel | 74 %description devel |
79 The libpst-devel package contains the library links and header files | 75 The libpst-devel package contains the library links and header files |
82 utilities. | 78 utilities. |
83 | 79 |
84 | 80 |
85 %package devel-doc | 81 %package devel-doc |
86 Summary: Documentation for libpst.so for libpst application development | 82 Summary: Documentation for libpst.so for libpst application development |
87 Group: Documentation | |
88 Requires: %{name}-doc = %{version}-%{release} | 83 Requires: %{name}-doc = %{version}-%{release} |
89 | 84 |
90 %description devel-doc | 85 %description devel-doc |
91 The libpst-devel-doc package contains the doxygen generated | 86 The libpst-devel-doc package contains the doxygen generated |
92 documentation for the libpst.so shared library. | 87 documentation for the libpst.so shared library. |
93 | 88 |
94 | 89 |
95 %package doc | 90 %package doc |
96 Summary: Documentation for the pst utilities in html format | 91 Summary: Documentation for the pst utilities in html format |
97 Group: Documentation | |
98 | 92 |
99 %description doc | 93 %description doc |
100 The libpst-doc package contains the html documentation for the pst | 94 The libpst-doc package contains the html documentation for the pst |
101 utilities. You do not need to install it if you just want to use the | 95 utilities. You do not need to install it if you just want to use the |
102 libpst utilities. | 96 libpst utilities. |
127 rm $RPM_BUILD_ROOT%{_libdir}/libpst.la | 121 rm $RPM_BUILD_ROOT%{_libdir}/libpst.la |
128 rm $RPM_BUILD_ROOT%{_libdir}/libpst.a | 122 rm $RPM_BUILD_ROOT%{_libdir}/libpst.a |
129 mv $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version} $RPM_BUILD_ROOT%{_datadir}/doc/%{name} | 123 mv $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version} $RPM_BUILD_ROOT%{_datadir}/doc/%{name} |
130 | 124 |
131 | 125 |
132 %clean | 126 %ldconfig_scriptlets libs |
133 rm -rf $RPM_BUILD_ROOT | |
134 | |
135 | |
136 %post libs -p /sbin/ldconfig | |
137 | |
138 | |
139 %postun libs -p /sbin/ldconfig | |
140 | 127 |
141 | 128 |
142 %files | 129 %files |
143 %defattr(-,root,root,-) | 130 %defattr(-,root,root,-) |
144 %{_bindir}/* | 131 %{_bindir}/* |
189 %{_datadir}/doc/%{name}/NEWS | 176 %{_datadir}/doc/%{name}/NEWS |
190 %{_datadir}/doc/%{name}/README | 177 %{_datadir}/doc/%{name}/README |
191 | 178 |
192 | 179 |
193 %changelog | 180 %changelog |
181 * Fri Jun 07 2019 Carl Byington <carl@five-ten-sg.com> 0.6.72-4 | |
182 - fixes for python3 | |
183 | |
184 * Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.72-3 | |
185 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild | |
186 | |
187 * Wed Jan 30 2019 Jonathan Wakely <jwakely@redhat.com> - 0.6.72-2 | |
188 - Rebuilt for Boost 1.69 | |
189 | |
194 * Wed Aug 01 2018 Carl Byington <carl@five-ten-sg.com> 0.6.72-1 | 190 * Wed Aug 01 2018 Carl Byington <carl@five-ten-sg.com> 0.6.72-1 |
195 - allow all 7 days in bydays recurring appointment | 191 - allow all 7 days in bydays recurring appointment |
196 - update for fedora python packaging | 192 - update for fedora python packaging |
197 - Alfredo Esteban - add -l and -f options to lspst | 193 - Alfredo Esteban - add -l and -f options to lspst |
198 | 194 |