comparison libpst.spec.in @ 395:fbe51207b963

changes to build on centos 6
author Carl Byington <carl@five-ten-sg.com>
date Sun, 12 Jan 2020 14:10:17 -0800
parents 3cbda103e0ef
children 1d28f978f57a
comparison
equal deleted inserted replaced
394:3cbda103e0ef 395:fbe51207b963
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: 1%{?dist}
5 License: GPLv2+ 5 License: GPLv2+
6 Source: http://www.five-ten-sg.com/%{name}/packages/%{name}-%{version}.tar.gz
7 URL: http://www.five-ten-sg.com/%{name}/ 6 URL: http://www.five-ten-sg.com/%{name}/
8 Requires: ImageMagick libgsf 7 Source: %{url}/packages/%{name}-%{version}.tar.gz
9 Requires: %{name}-libs = %{version}-%{release} 8
10 BuildRequires: libtool gcc-c++ 9 BuildRequires: libtool gcc-c++
11 BuildRequires: ImageMagick gd-devel zlib-devel boost-devel libgsf-devel 10 BuildRequires: ImageMagick gd-devel zlib-devel boost-devel libgsf-devel gettext-devel
11
12 %if 0%{?fedora} > 27 12 %if 0%{?fedora} > 27
13 BuildRequires: python3 python3-devel boost-python3 boost-python3-devel 13 BuildRequires: python3 python3-devel boost-python3 boost-python3-devel
14 Requires: boost-python3 14 Requires: boost-python3
15 %else 15 %else
16 BuildRequires: python-devel 16 BuildRequires: python-devel
17 %endif 17 %endif
18
19 Requires: ImageMagick%{?_isa} libgsf gettext
20 Requires: %{name}-libs%{?_isa} = %{version}-%{release}
18 21
19 %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} 22 %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
20 %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} 23 %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
21 24
22 25
43 %else 46 %else
44 %package python 47 %package python
45 Requires: python 48 Requires: python
46 %endif 49 %endif
47 Summary: Python bindings for libpst 50 Summary: Python bindings for libpst
48 Requires: %{name}-libs = %{version}-%{release} 51 Requires: %{name}-libs%{?_isa} = %{version}-%{release}
49 52
50 %if 0%{?fedora} >= 20 53 %if 0%{?fedora} >= 20
51 %global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{python_sitearch}/_.*\.so$ 54 %global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{python_sitearch}/_.*\.so$
52 %else 55 %else
53 %{?filter_setup: 56 %{?filter_setup:
67 70
68 71
69 %package devel 72 %package devel
70 Summary: Library links and header files for libpst application development 73 Summary: Library links and header files for libpst application development
71 Requires: pkgconfig 74 Requires: pkgconfig
72 Requires: %{name}-libs = %{version}-%{release} 75 Requires: %{name}-libs%{?_isa} = %{version}-%{release}
73 76
74 %description devel 77 %description devel
75 The libpst-devel package contains the library links and header files 78 The libpst-devel package contains the library links and header files
76 you'll need to develop applications using the libpst shared library. 79 you'll need to develop applications using the libpst shared library.
77 You do not need to install it if you just want to use the libpst 80 You do not need to install it if you just want to use the libpst
100 %prep 103 %prep
101 %setup -q 104 %setup -q
102 105
103 106
104 %build 107 %build
105 autoreconf -v -f -i 108 autoreconf -fiv
106 %configure --enable-libpst-shared 109 %configure --enable-libpst-shared \
110 --with-boost-python=boost_python%{python3_version_nodots}
107 %if 0%{?fedora} > 27 111 %if 0%{?fedora} > 27
108 %make_build 112 %make_build
109 %else 113 %else
110 make %{?_smp_mflags} 114 make %{?_smp_mflags}
111 %endif 115 %endif
116 %make_install 120 %make_install
117 %else 121 %else
118 rm -rf $RPM_BUILD_ROOT 122 rm -rf $RPM_BUILD_ROOT
119 make DESTDIR=$RPM_BUILD_ROOT install 123 make DESTDIR=$RPM_BUILD_ROOT install
120 %endif 124 %endif
121 rm $RPM_BUILD_ROOT%{_libdir}/libpst.la 125 #Remove libtool archives.
122 rm $RPM_BUILD_ROOT%{_libdir}/libpst.a 126 find %{buildroot} -name '*.la' -or -name '*.a' | xargs rm -f
123 mv $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version} $RPM_BUILD_ROOT%{_datadir}/doc/%{name} 127 mv %{buildroot}%{_datadir}/doc/%{name}-%{version} %{buildroot}%{_datadir}/doc/%{name}
124 128
125 129
126 %ldconfig_scriptlets libs 130 %ldconfig_scriptlets libs
127 131
128 132
129 %files 133 %files
130 %defattr(-,root,root,-)
131 %{_bindir}/* 134 %{_bindir}/*
132 %{_mandir}/man1/* 135 %{_mandir}/man1/*
133 %{_mandir}/man5/* 136 %{_mandir}/man5/*
134 137
135 138
136 %files libs 139 %files libs
137 %defattr(-,root,root,-)
138 %{_libdir}/libpst.so.* 140 %{_libdir}/libpst.so.*
139 %doc COPYING 141 %doc COPYING
140 142
141 143
142 %if 0%{?fedora} > 27 144 %if 0%{?fedora} > 27
145 %{python3_sitearch}/_*.so 147 %{python3_sitearch}/_*.so
146 %exclude %{python3_sitearch}/*.a 148 %exclude %{python3_sitearch}/*.a
147 %exclude %{python3_sitearch}/*.la 149 %exclude %{python3_sitearch}/*.la
148 %else 150 %else
149 %files python 151 %files python
150 %defattr(-,root,root,-)
151 %{python_sitearch}/_*.so 152 %{python_sitearch}/_*.so
152 %exclude %{python_sitearch}/*.a 153 %exclude %{python_sitearch}/*.a
153 %exclude %{python_sitearch}/*.la 154 %exclude %{python_sitearch}/*.la
154 %endif 155 %endif
155 156
156 157
157 %files devel 158 %files devel
158 %defattr(-,root,root,-)
159 %{_libdir}/libpst.so 159 %{_libdir}/libpst.so
160 %{_includedir}/%{name}-@LIBPST_SO_MAJOR@/ 160 %{_includedir}/%{name}-@LIBPST_SO_MAJOR@/
161 %{_libdir}/pkgconfig/libpst.pc 161 %{_libdir}/pkgconfig/libpst.pc
162 162
163 163
164 %files devel-doc 164 %files devel-doc
165 %defattr(-,root,root,-)
166 %{_datadir}/doc/%{name}/devel/ 165 %{_datadir}/doc/%{name}/devel/
167 166
168 167
169 %files doc 168 %files doc
170 %defattr(-,root,root,-)
171 %dir %{_datadir}/doc/%{name}/ 169 %dir %{_datadir}/doc/%{name}/
172 %{_datadir}/doc/%{name}/*.html 170 %{_datadir}/doc/%{name}/*.html
173 %{_datadir}/doc/%{name}/AUTHORS 171 %{_datadir}/doc/%{name}/AUTHORS
174 %{_datadir}/doc/%{name}/COPYING 172 %{_datadir}/doc/%{name}/COPYING
175 %{_datadir}/doc/%{name}/ChangeLog 173 %{_datadir}/doc/%{name}/ChangeLog
189 - Remove files copied in by autotools 187 - Remove files copied in by autotools
190 - Add AM_GNU_GETTEXT macros 188 - Add AM_GNU_GETTEXT macros
191 - Rename configure.in to configure.ac 189 - Rename configure.in to configure.ac
192 - add extern "C" to header for use with C++ code 190 - add extern "C" to header for use with C++ code
193 191
192 * Mon Aug 19 2019 Miro HronĨok <mhroncok@redhat.com> - 0.6.72-6
193 - Rebuilt for Python 3.8
194
194 * Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.72-5 195 * Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.72-5
195 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild 196 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
196 197
197 * Thu Jul 25 2019 Carl Byington <carl@five-ten-sg.com> 0.6.73-1 198 * Thu Jul 25 2019 Carl Byington <carl@five-ten-sg.com> 0.6.73-1
198 - Tim Dufrane - fix segfault in pst_close() 199 - Tim Dufrane - fix segfault in pst_close()
199 200
200 * Sat Jun 08 2019 Leigh Scott <leigh123linux@googlemail.com> - 0.6.72-4 201 * Sat Jun 08 2019 Leigh Scott <leigh123linux@googlemail.com> - 0.6.72-4
201 - Add configure option for boost-python 202 - Add configure option for boost-python
202 - Remove all old fedora conditionals 203 - Remove all old fedora conditionals
203 - Update spec file to comply with packaging guidelines 204 - Update spec file to comply with packaging guidelines
204
205 * Fri Jun 07 2019 Carl Byington <carl@five-ten-sg.com> 0.6.72-4
206 - fixes for Python 3
207 205
208 * Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.72-3 206 * Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.72-3
209 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild 207 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
210 208
211 * Wed Jan 30 2019 Jonathan Wakely <jwakely@redhat.com> - 0.6.72-2 209 * Wed Jan 30 2019 Jonathan Wakely <jwakely@redhat.com> - 0.6.72-2