comparison libpst.spec.in @ 380:1e1970f93f94 stable-0-6-72

allow all 7 days in bydays recurring appointment, update for fedora python packaging
author Carl Byington <carl@five-ten-sg.com>
date Wed, 01 Aug 2018 08:15:34 -0700
parents 62f05deb2e1c
children 7eab29e13e61
comparison
equal deleted inserted replaced
379:bbd198da4033 380:1e1970f93f94
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 libgsf 10 Requires: ImageMagick libgsf
11 Requires: %{name}-libs = %{version}-%{release} 11 Requires: %{name}-libs = %{version}-%{release}
12 BuildRequires: libtool 12 BuildRequires: libtool gcc-c++
13 BuildRequires: ImageMagick gd-devel zlib-devel boost-devel libgsf-devel 13 BuildRequires: ImageMagick gd-devel zlib-devel boost-devel libgsf-devel
14 %if 0%{?fedora} > 25 14 %if 0%{?fedora} > 27
15 BuildRequires: python2-devel 15 BuildRequires: python3 python3-devel boost-python3 boost-python3-devel
16 %else 16 %else
17 BuildRequires: python-devel 17 BuildRequires: python-devel
18 %endif 18 %endif
19 19
20 %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} 20 %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
36 %description libs 36 %description libs
37 The libpst-libs package contains the shared library used by the pst 37 The libpst-libs package contains the shared library used by the pst
38 utilities. 38 utilities.
39 39
40 40
41 %if 0%{?fedora} > 25 41 %if 0%{?fedora} > 27
42 %package python2 42 %package -n python3-%{name}
43 Requires: python2 43 Requires: python3
44 Provides: %{name}-python = %{version}-%{release}
44 %else 45 %else
45 %package python 46 %package python
46 Requires: python 47 Requires: python
47 %endif 48 %endif
48 Summary: Python bindings for libpst 49 Summary: Python bindings for libpst
57 %filter_setup 58 %filter_setup
58 } 59 }
59 %endif 60 %endif
60 61
61 62
62 %if 0%{?fedora} > 25 63 %if 0%{?fedora} > 27
63 %description python2 64 %description -n python3-%{name}
64 %else 65 %else
65 %description python 66 %description python
66 %endif 67 %endif
67 The libpst-python package allows you to use the libpst shared object 68 The libpst-python package allows you to use the libpst shared object
68 from python code. 69 from python code.
107 108
108 109
109 %build 110 %build
110 autoreconf -v -f -i 111 autoreconf -v -f -i
111 %configure --enable-libpst-shared 112 %configure --enable-libpst-shared
113 %if 0%{?fedora} > 27
114 %make_build
115 %else
112 make %{?_smp_mflags} 116 make %{?_smp_mflags}
117 %endif
113 118
114 119
115 %install 120 %install
121 %if 0%{?fedora} > 27
122 %make_install
123 %else
116 rm -rf $RPM_BUILD_ROOT 124 rm -rf $RPM_BUILD_ROOT
117 make DESTDIR=$RPM_BUILD_ROOT install 125 make DESTDIR=$RPM_BUILD_ROOT install
126 %endif
118 rm $RPM_BUILD_ROOT%{_libdir}/libpst.la 127 rm $RPM_BUILD_ROOT%{_libdir}/libpst.la
119 rm $RPM_BUILD_ROOT%{_libdir}/libpst.a 128 rm $RPM_BUILD_ROOT%{_libdir}/libpst.a
120 mv $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version} $RPM_BUILD_ROOT%{_datadir}/doc/%{name} 129 mv $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version} $RPM_BUILD_ROOT%{_datadir}/doc/%{name}
121 130
122 131
141 %defattr(-,root,root,-) 150 %defattr(-,root,root,-)
142 %{_libdir}/libpst.so.* 151 %{_libdir}/libpst.so.*
143 %doc COPYING 152 %doc COPYING
144 153
145 154
146 %if 0%{?fedora} > 25 155 %if 0%{?fedora} > 27
147 %files python2 156 %files -n python3-%{name}
148 %defattr(-,root,root,-) 157 %defattr(-,root,root,-)
149 %{python2_sitearch}/_*.so 158 %{python3_sitearch}/_*.so
150 %exclude %{python2_sitearch}/*.a 159 %exclude %{python3_sitearch}/*.a
151 %exclude %{python2_sitearch}/*.la 160 %exclude %{python3_sitearch}/*.la
152 %else 161 %else
153 %files python 162 %files python
154 %defattr(-,root,root,-) 163 %defattr(-,root,root,-)
155 %{python_sitearch}/_*.so 164 %{python_sitearch}/_*.so
156 %exclude %{python_sitearch}/*.a 165 %exclude %{python_sitearch}/*.a
180 %{_datadir}/doc/%{name}/NEWS 189 %{_datadir}/doc/%{name}/NEWS
181 %{_datadir}/doc/%{name}/README 190 %{_datadir}/doc/%{name}/README
182 191
183 192
184 %changelog 193 %changelog
194 * Wed Aug 01 2018 Carl Byington <carl@five-ten-sg.com> 0.6.72-1
195 - allow all 7 days in bydays recurring appointment
196 - update for fedora python packaging
197 - Alfredo Esteban - add -l and -f options to lspst
198
199 * Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.71-8
200 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
201
202 * Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.71-7
203 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
204
205 * Sun Aug 20 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.6.71-6
206 - Add Provides for the old name without %%_isa
207
208 * Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.6.71-5
209 - Python 2 binary package renamed to python2-libpst
210 See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
211
212 * Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.6.71-4
213 - Python 2 binary package renamed to python2-libpst
214 See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
215
216 * Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.71-3
217 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
218
219 * Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.71-2
220 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
221
185 * Fri Jul 21 2017 Carl Byington <carl@five-ten-sg.com> 0.6.71-1 222 * Fri Jul 21 2017 Carl Byington <carl@five-ten-sg.com> 0.6.71-1
186 - fedora python naming scheme changes 223 - fedora python naming scheme changes
187 - Zachary Travis - Add support for the OST 2013 format, and 224 - Zachary Travis - Add support for the OST 2013 format, and
188 Content-Disposition filename key fix for outlook compatibility 225 Content-Disposition filename key fix for outlook compatibility
189 226