comparison libpst.spec.in @ 372:5b52efe35bd8

fedora python nameing scheme changes
author Carl Byington <carl@five-ten-sg.com>
date Fri, 21 Jul 2017 19:54:46 -0700
parents 8700cc322c0c
children 0ccc746c8079
comparison
equal deleted inserted replaced
371:c02339879041 372:5b52efe35bd8
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
13 BuildRequires: ImageMagick gd-devel zlib-devel python-devel boost-devel libgsf-devel 13 BuildRequires: ImageMagick gd-devel zlib-devel boost-devel libgsf-devel
14 %if 0%{?fedora} > 25
15 BuildRequires: python2-devel
16 %else
17 BuildRequires: python-devel
18 %endif
14 19
15 %{!?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()")}
16 %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} 21 %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
17 22
18 23
31 %description libs 36 %description libs
32 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
33 utilities. 38 utilities.
34 39
35 40
41 %if 0%{?fedora} > 25
42 %package python2
43 Requires: python2
44 %else
36 %package python 45 %package python
46 Requires: python
47 %endif
37 Summary: Python bindings for libpst 48 Summary: Python bindings for libpst
38 Group: Development/Libraries 49 Group: Development/Libraries
39 Requires: python
40 Requires: %{name}-libs = %{version}-%{release} 50 Requires: %{name}-libs = %{version}-%{release}
41 51
42 %if 0%{?fedora} >= 20 52 %if 0%{?fedora} >= 20
43 %global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{python_sitearch}/_.*\.so$ 53 %global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{python_sitearch}/_.*\.so$
44 %else 54 %else
47 %filter_setup 57 %filter_setup
48 } 58 }
49 %endif 59 %endif
50 60
51 61
62 %if 0%{?fedora} > 25
52 %description python 63 %description python
64 %else
65 %description python2
66 %endif
53 The libpst-python package allows you to use the libpst shared object 67 The libpst-python package allows you to use the libpst shared object
54 from python code. 68 from python code.
55 69
56 70
57 %package devel 71 %package devel
127 %defattr(-,root,root,-) 141 %defattr(-,root,root,-)
128 %{_libdir}/libpst.so.* 142 %{_libdir}/libpst.so.*
129 %doc COPYING 143 %doc COPYING
130 144
131 145
146 %if 0%{?fedora} > 25
147 %files python2
148 %defattr(-,root,root,-)
149 %{python2_sitearch}/_*.so
150 %exclude %{python2_sitearch}/*.a
151 %exclude %{python2_sitearch}/*.la
152 %else
132 %files python 153 %files python
133 %defattr(-,root,root,-) 154 %defattr(-,root,root,-)
134 %{python_sitearch}/_*.so 155 %{python_sitearch}/_*.so
135 %exclude %{python_sitearch}/*.a 156 %exclude %{python_sitearch}/*.a
136 %exclude %{python_sitearch}/*.la 157 %exclude %{python_sitearch}/*.la
158 %endif
137 159
138 160
139 %files devel 161 %files devel
140 %defattr(-,root,root,-) 162 %defattr(-,root,root,-)
141 %{_libdir}/libpst.so 163 %{_libdir}/libpst.so
158 %{_datadir}/doc/%{name}/NEWS 180 %{_datadir}/doc/%{name}/NEWS
159 %{_datadir}/doc/%{name}/README 181 %{_datadir}/doc/%{name}/README
160 182
161 183
162 %changelog 184 %changelog
185 * Wed Feb 08 2017 Carl Byington <carl@five-ten-sg.com> 0.6.71-1
186 - fedora python naming scheme changes
187
188 * Thu Jul 20 2017 Kalev Lember <klember@redhat.com> - 0.6.70-3
189 - Rebuilt for Boost 1.64
190
191 * Fri Jul 07 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.6.70-2
192 - Rebuild due to bug in RPM (RHBZ #1468476)
193
163 * Wed Feb 08 2017 Carl Byington <carl@five-ten-sg.com> 0.6.70-1 194 * Wed Feb 08 2017 Carl Byington <carl@five-ten-sg.com> 0.6.70-1
164 - Jeffrey Morlan - pst_getID2 must not recurse into children 195 - Jeffrey Morlan - pst_getID2 must not recurse into children
165 196
166 * Fri Jan 27 2017 Jonathan Wakely <jwakely@redhat.com> - 0.6.69-2 197 * Fri Jan 27 2017 Jonathan Wakely <jwakely@redhat.com> - 0.6.69-2
167 - Rebuilt for Boost 1.63 198 - Rebuilt for Boost 1.63