Browse code

fix: bump package versions to fix build failures after libffi upgrade

This is the second part of fix for after libffi upgrade

Change-Id: I52f1dbe880ecaff9e7bcd76c77e76b01cbfbd967
Signed-off-by: Shreenidhi Shedi <sshedi@vmware.com>
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/16012
Tested-by: gerrit-photon <photon-checkins@vmware.com>

Shreenidhi Shedi authored on 2022/05/11 15:43:39
Showing 4 changed files
... ...
@@ -1,18 +1,21 @@
1 1
 Summary:        A collection of modular and reusable compiler and toolchain technologies.
2 2
 Name:           llvm
3 3
 Version:        12.0.0
4
-Release:        2%{?dist}
4
+Release:        3%{?dist}
5 5
 License:        NCSA
6 6
 URL:            http://lldb.llvm.org
7 7
 Group:          Development/Tools
8 8
 Vendor:         VMware, Inc.
9 9
 Distribution:   Photon
10
+
10 11
 Source0:        http://releases.llvm.org/%{version}/%{name}-%{version}.src.tar.xz
11
-%define sha1    llvm=dbc1cf6aa2dbdeccd7ad26c9215b56963a5686d3
12
+%define sha512  %{name}=ec17153ef774a1e08085763bda7d0dfce6802fbaa17e89831695ce1b2eb015a6c2aebfaa9fe7985a83b9c51bd75d40bb4f1fc706dc16d4c0dc2b2722a1d8a24e
13
+
12 14
 BuildRequires:  cmake
13 15
 BuildRequires:  libxml2-devel
14 16
 BuildRequires:  libffi-devel
15 17
 BuildRequires:  python3
18
+
16 19
 Requires:       libxml2
17 20
 
18 21
 %description
... ...
@@ -36,11 +39,10 @@ Group:          System Environment/Libraries
36 36
 The libllvm package contains shared libraries for llvm
37 37
 
38 38
 %prep
39
-%autosetup -n %{name}-%{version}.src -p1
39
+%autosetup -p1 -n %{name}-%{version}.src
40 40
 
41 41
 %build
42
-mkdir -p build
43
-cd build
42
+mkdir -p build && cd build && \
44 43
 cmake -DCMAKE_INSTALL_PREFIX=/usr               \
45 44
       -DLLVM_ENABLE_FFI:BOOL=ON                 \
46 45
       -DCMAKE_BUILD_TYPE=Release                \
... ...
@@ -50,19 +52,22 @@ cmake -DCMAKE_INSTALL_PREFIX=/usr               \
50 50
       -DLLVM_ENABLE_RTTI:BOOL=ON                \
51 51
       -Wno-dev ..
52 52
 make %{?_smp_mflags}
53
+
53 54
 %install
54 55
 [ %{buildroot} != "/" ] && rm -rf %{buildroot}/*
55 56
 cd build
56 57
 make DESTDIR=%{buildroot} install %{?_smp_mflags}
57 58
 
58
-%post   -p /sbin/ldconfig
59
+%post -p /sbin/ldconfig
59 60
 %postun -p /sbin/ldconfig
60 61
 
61 62
 %check
63
+%if 0%{?with_check}
62 64
 # deactivate security hardening for tests
63 65
 rm -f $(dirname $(gcc -print-libgcc-file-name))/../specs
64 66
 cd build
65 67
 make %{?_smp_mflags} check-llvm
68
+%endif
66 69
 
67 70
 %clean
68 71
 rm -rf %{buildroot}/*
... ...
@@ -81,6 +86,7 @@ rm -rf %{buildroot}/*
81 81
 %{_datadir}/opt-viewer/style.css
82 82
 
83 83
 %files devel
84
+%defattr(-,root,root)
84 85
 %{_libdir}/*.a
85 86
 %{_libdir}/cmake/*
86 87
 %{_includedir}/*
... ...
@@ -90,32 +96,34 @@ rm -rf %{buildroot}/*
90 90
 %{_libdir}/libLLVM*.so
91 91
 
92 92
 %changelog
93
-*   Wed Nov 17 2021 Nitesh Kumar <kunitesh@vmware.com> 12.0.0-2
94
--   Release bump up to use libxml2 2.9.12-1.
95
-*   Tue Apr 13 2021 Gerrit Photon <photon-checkins@vmware.com> 12.0.0-1
96
--   Automatic Version Bump
97
-*   Thu Feb 04 2021 Shreenidhi Shedi <sshedi@vmware.com> 11.0.1-1
98
--   Upgrade to v11.0.1
99
-*   Tue Sep 22 2020 Harinadh D <hdommaraju@vmware.com> 10.0.1-1
100
--   add libLLVM.so to libllvm
101
-*   Thu Sep 10 2020 Susant Sahani Sahani <ssahani@vmware.com> 10.0.1-2
102
--   Enable LLVM_ENABLE_RTTI
103
-*   Fri Jul 24 2020 Gerrit Photon <photon-checkins@vmware.com> 10.0.1-1
104
--   Automatic Version Bump
105
-*   Tue Jun 23 2020 Tapas Kundu <tkundu@vmware.com> 6.0.1-4
106
--   Build with python3
107
--   Mass removal python2
108
-*   Wed Jun 26 2019 Keerthana K <keerthanak@vmware.com> 6.0.1-3
109
--   Enable target BPF
110
-*   Tue Jan 08 2019 Alexey Makhalov <amakhalov@vmware.com> 6.0.1-2
111
--   Added BuildRequires python2
112
-*   Thu Aug 09 2018 Srivatsa S. Bhat <srivatsa@csail.mit.edu> 6.0.1-1
113
--   Update to version 6.0.1 to get it to build with gcc 7.3
114
-*   Thu Aug 10 2017 Alexey Makhalov <amakhalov@vmware.com> 4.0.0-3
115
--   Make check fix
116
-*   Fri Apr 14 2017 Alexey Makhalov <amakhalov@vmware.com> 4.0.0-2
117
--   BuildRequires libffi-devel
118
-*   Fri Apr 7 2017 Alexey Makhalov <amakhalov@vmware.com> 4.0.0-1
119
--   Version update
120
-*   Wed Jan 11 2017 Xiaolin Li <xiaolinl@vmware.com>  3.9.1-1
121
--   Initial build.
93
+* Wed May 11 2022 Shreenidhi Shedi <sshedi@vmware.com> 12.0.0-3
94
+- Bump version as a part of libffi upgrade
95
+* Wed Nov 17 2021 Nitesh Kumar <kunitesh@vmware.com> 12.0.0-2
96
+- Release bump up to use libxml2 2.9.12-1.
97
+* Tue Apr 13 2021 Gerrit Photon <photon-checkins@vmware.com> 12.0.0-1
98
+- Automatic Version Bump
99
+* Thu Feb 04 2021 Shreenidhi Shedi <sshedi@vmware.com> 11.0.1-1
100
+- Upgrade to v11.0.1
101
+* Tue Sep 22 2020 Harinadh D <hdommaraju@vmware.com> 10.0.1-1
102
+- add libLLVM.so to libllvm
103
+* Thu Sep 10 2020 Susant Sahani Sahani <ssahani@vmware.com> 10.0.1-2
104
+- Enable LLVM_ENABLE_RTTI
105
+* Fri Jul 24 2020 Gerrit Photon <photon-checkins@vmware.com> 10.0.1-1
106
+- Automatic Version Bump
107
+* Tue Jun 23 2020 Tapas Kundu <tkundu@vmware.com> 6.0.1-4
108
+- Build with python3
109
+- Mass removal python2
110
+* Wed Jun 26 2019 Keerthana K <keerthanak@vmware.com> 6.0.1-3
111
+- Enable target BPF
112
+* Tue Jan 08 2019 Alexey Makhalov <amakhalov@vmware.com> 6.0.1-2
113
+- Added BuildRequires python2
114
+* Thu Aug 09 2018 Srivatsa S. Bhat <srivatsa@csail.mit.edu> 6.0.1-1
115
+- Update to version 6.0.1 to get it to build with gcc 7.3
116
+* Thu Aug 10 2017 Alexey Makhalov <amakhalov@vmware.com> 4.0.0-3
117
+- Make check fix
118
+* Fri Apr 14 2017 Alexey Makhalov <amakhalov@vmware.com> 4.0.0-2
119
+- BuildRequires libffi-devel
120
+* Fri Apr 7 2017 Alexey Makhalov <amakhalov@vmware.com> 4.0.0-1
121
+- Version update
122
+* Wed Jan 11 2017 Xiaolin Li <xiaolinl@vmware.com>  3.9.1-1
123
+- Initial build.
... ...
@@ -1,20 +1,24 @@
1
-%{!?python3_sitelib: %define python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")}
2
-
3 1
 Name:           python3-pygobject
4 2
 Version:        3.38.0
5
-Release:        3%{?dist}
3
+Release:        4%{?dist}
6 4
 Summary:        Python Bindings for GObject
7 5
 Group:          Development/Languages
8 6
 License:        LGPLv2+
9 7
 Vendor:         VMware, Inc.
10 8
 Distribution:   Photon
11 9
 URL:            https://pypi.org/project/PyGObject
10
+
12 11
 Source0:        https://pypi.org/project/PyGObject/#files/PyGObject-%{version}.tar.gz
12
+%define sha512  PyGObject=92a53824688d91516ccadeec42fd72c2598afb2d26cd46229a88e6b2fbf915bd7cab75d4cfd63594f54b7277d8f209e1dd225c4b87df2d2615abf7b9d8dd3ddf
13
+
14
+%if 0%{?with_check}
13 15
 Patch0:         pygobject-makecheck-fixes.patch
14
-%define sha1    PyGObject=9d87678c9b8e8771280f074d107e1e0cd612f307
16
+%endif
17
+
15 18
 Requires:       python3
16 19
 Requires:       gobject-introspection
17 20
 Requires:       glib
21
+
18 22
 BuildRequires:  python3-setuptools
19 23
 BuildRequires:  glib-devel
20 24
 BuildRequires:  python3-devel
... ...
@@ -22,8 +26,8 @@ BuildRequires:  python3-libs
22 22
 BuildRequires:  gobject-introspection-devel
23 23
 BuildRequires:  which
24 24
 BuildRequires:  python3
25
-%if %{with_check}
26
-BuildRequires:  python3-setuptools
25
+
26
+%if 0%{?with_check}
27 27
 BuildRequires:  python3-gobject-introspection
28 28
 BuildRequires:  python3-test
29 29
 BuildRequires:  glib-schemas
... ...
@@ -36,7 +40,6 @@ BuildRequires:  python3-xml
36 36
 %description
37 37
 Python bindings for GLib and GObject.
38 38
 
39
-
40 39
 %package        devel
41 40
 Summary:        Development files for embedding PyGObject introspection support
42 41
 Requires:       python3-pygobject = %{version}-%{release}
... ...
@@ -45,8 +48,7 @@ Requires:       python3-pygobject = %{version}-%{release}
45 45
 Development files for pygobject.
46 46
 
47 47
 %prep
48
-%setup -q -n PyGObject-%{version}
49
-%patch0 -p1
48
+%autosetup -p1 -n PyGObject-%{version}
50 49
 
51 50
 %build
52 51
 export PYGOBJECT_WITHOUT_PYCAIRO='True'
... ...
@@ -57,9 +59,11 @@ export PYGOBJECT_WITHOUT_PYCAIRO='True'
57 57
 python3 setup.py install --skip-build --prefix=%{_prefix} --root=%{buildroot}
58 58
 
59 59
 %check
60
+%if 0%{?with_check}
60 61
 easy_install_3=$(ls /usr/bin |grep easy_install |grep 3)
61 62
 $easy_install_3 pytest
62 63
 python3 setup.py test
64
+%endif
63 65
 
64 66
 %clean
65 67
 rm -rf %{buildroot}
... ...
@@ -69,33 +73,36 @@ rm -rf %{buildroot}
69 69
 %{python3_sitelib}/*
70 70
 
71 71
 %files  devel
72
+%defattr(-,root,root,-)
72 73
 %{_libdir}/pkgconfig/*.pc
73 74
 %{_includedir}/*
74 75
 
75 76
 %changelog
76
-*   Tue Dec 15 2020 Shreenidhi Shedi <sshedi@vmware.com> 3.38.0-3
77
--   Fix build with new rpm
78
-*   Tue Sep 29 2020 Satya Naga Vasamsetty <svasamsetty@vmware.com> 3.38.0-2
79
--   openssl 1.1.1
80
-*   Mon Sep 21 2020 Gerrit Photon <photon-checkins@vmware.com> 3.38.0-1
81
--   Automatic Version Bump
82
-*   Tue Jun 30 2020 Gerrit Photon <photon-checkins@vmware.com> 3.36.1-1
83
--   Automatic Version Bump
84
-*   Sun Jun 21 2020 Tapas Kundu <tkundu@vmware.com> 3.30.1-3
85
--   Mass removal python2
86
-*   Thu Dec 06 2018 Tapas Kundu <tkundu@vmware.com> 3.30.1-2
87
--   Fix makecheck
88
-*   Thu Sep 27 2018 Tapas Kundu <tkundu@vmware.com> 3.30.1-1
89
--   Updated to release 3.30.1
90
-*   Tue Sep 19 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 3.24.1-3
91
--   Skip some ui make check paths that failed.
92
-*   Thu Aug 10 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 3.24.1-2
93
--   Fix make check
94
-*   Fri Apr 14 2017 Xiaolin Li <xiaolinl@vmware.com> 3.24.1-1
95
--   Updated to version 3.24.1 and added python3 package.
96
-*   Mon Oct 03 2016 ChangLee <changLee@vmware.com> 3.10.2-3
97
--   Modified %check
98
-*   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 3.10.2-2
99
--   GA - Bump release of all rpms
100
-*   Sat Jan 24 2015 Touseef Liaqat <tliaqat@vmware.com> 7.19.5.1
101
--   Initial build.  First version
77
+* Wed May 11 2022 Shreenidhi Shedi <sshedi@vmware.com> 3.38.0-4
78
+- Bump version as a part of libffi upgrade
79
+* Tue Dec 15 2020 Shreenidhi Shedi <sshedi@vmware.com> 3.38.0-3
80
+- Fix build with new rpm
81
+* Tue Sep 29 2020 Satya Naga Vasamsetty <svasamsetty@vmware.com> 3.38.0-2
82
+- openssl 1.1.1
83
+* Mon Sep 21 2020 Gerrit Photon <photon-checkins@vmware.com> 3.38.0-1
84
+- Automatic Version Bump
85
+* Tue Jun 30 2020 Gerrit Photon <photon-checkins@vmware.com> 3.36.1-1
86
+- Automatic Version Bump
87
+* Sun Jun 21 2020 Tapas Kundu <tkundu@vmware.com> 3.30.1-3
88
+- Mass removal python2
89
+* Thu Dec 06 2018 Tapas Kundu <tkundu@vmware.com> 3.30.1-2
90
+- Fix makecheck
91
+* Thu Sep 27 2018 Tapas Kundu <tkundu@vmware.com> 3.30.1-1
92
+- Updated to release 3.30.1
93
+* Tue Sep 19 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 3.24.1-3
94
+- Skip some ui make check paths that failed.
95
+* Thu Aug 10 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 3.24.1-2
96
+- Fix make check
97
+* Fri Apr 14 2017 Xiaolin Li <xiaolinl@vmware.com> 3.24.1-1
98
+- Updated to version 3.24.1 and added python3 package.
99
+* Mon Oct 03 2016 ChangLee <changLee@vmware.com> 3.10.2-3
100
+- Modified %check
101
+* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 3.10.2-2
102
+- GA - Bump release of all rpms
103
+* Sat Jan 24 2015 Touseef Liaqat <tliaqat@vmware.com> 7.19.5.1
104
+- Initial build.  First version
... ...
@@ -1,16 +1,15 @@
1
-%{!?python3_sitelib: %define python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")}
2
-
3 1
 Summary:        Interface for Python to call C code
4 2
 Name:           python3-cffi
5 3
 Version:        1.14.3
6
-Release:        2%{?dist}
4
+Release:        3%{?dist}
7 5
 Url:            https://pypi.python.org/pypi/cffi
8 6
 License:        MIT
9 7
 Group:          Development/Languages/Python
10 8
 Vendor:         VMware, Inc.
11 9
 Distribution:   Photon
10
+
12 11
 Source0:        https://pypi.python.org/packages/source/c/cffi/cffi-%{version}.tar.gz
13
-%define sha1    cffi=7199374653c1927e8d3c523b6498b149acdb6f7e
12
+%define sha512  cffi=1eedd27df1b6743d1ace3cc036c6c46e800872705e8ec1e40d190b93a1b5ad759cdb8b9936bf6d70bed63476ea213f5a90b3a3b82db0a8d4d0e29654fb60154f
14 13
 
15 14
 BuildRequires:  python3
16 15
 BuildRequires:  python3-libs
... ...
@@ -19,11 +18,13 @@ BuildRequires:  python3-setuptools
19 19
 BuildRequires:  libffi-devel
20 20
 BuildRequires:  python3-pycparser
21 21
 BuildRequires:  python3-xml
22
-%if %{with_check}
22
+
23
+%if 0%{?with_check}
23 24
 BuildRequires:	openssl-devel
24 25
 BuildRequires:  curl-devel
25 26
 BuildRequires:  python3-pip
26 27
 %endif
28
+
27 29
 Requires:       python3
28 30
 Requires:       python3-libs
29 31
 Requires:       python3-pycparser
... ...
@@ -31,9 +32,8 @@ Requires:       python3-pycparser
31 31
 %description
32 32
 Foreign Function Interface for Python, providing a convenient and reliable way of calling existing C code from Python. The interface is based on LuaJIT’s FFI.
33 33
 
34
-
35 34
 %prep
36
-%setup -q -n cffi-%{version}
35
+%autosetup -p1 -n cffi-%{version}
37 36
 
38 37
 %build
39 38
 python3 setup.py build
... ...
@@ -50,43 +50,45 @@ python3 setup.py test
50 50
 %{python3_sitelib}/*
51 51
 
52 52
 %changelog
53
-*   Tue Sep 29 2020 Satya Naga Vasamsetty <svasamsetty@vmware.com> 1.14.3-2
54
--   openssl 1.1.1
55
-*   Mon Sep 21 2020 Gerrit Photon <photon-checkins@vmware.com> 1.14.3-1
56
--   Automatic Version Bump
57
-*   Wed Aug 19 2020 Gerrit Photon <photon-checkins@vmware.com> 1.14.2-1
58
--   Automatic Version Bump
59
-*   Tue Aug 11 2020 Gerrit Photon <photon-checkins@vmware.com> 1.14.1-1
60
--   Automatic Version Bump
61
-*   Fri Jul 24 2020 Gerrit Photon <photon-checkins@vmware.com> 1.14.0-1
62
--   Automatic Version Bump
63
-*   Fri Jun 19 2020 Tapas Kundu <tkundu@vmware.com> 1.11.5-5
64
--   Mass removal python2
65
-*   Wed Feb 26 2020 Tapas Kundu <tkundu@vmware.com> 1.11.5-4
66
--   Fixed make check errors.
67
-*   Thu Sep 05 2019 Shreyas B. <shreyasb@vmware.com> 1.11.5-3
68
--   Fixed make check errors.
69
-*   Thu Nov 15 2018 Tapas Kundu <tkundu@vmware.com> 1.11.5-2
70
--   Fixed make check errors.
71
-*   Sun Sep 09 2018 Tapas Kundu <tkundu@vmware.com> 1.11.5-1
72
--   Update to version 1.11.5
73
-*   Mon Jul 17 2017 Divya Thaluru <dthaluru@vmware.com> 1.10.0-3
74
--   Added build time dependecies required during check
75
-*   Wed Jun 07 2017 Xiaolin Li <xiaolinl@vmware.com> 1.10.0-2
76
--   Add python3-setuptools and python3-xml to python3 sub package Buildrequires.
77
-*   Mon Apr 03 2017 Rongrong Qiu <rqiu@vmware.com> 1.10.0-1
78
--   Update to 1.10.0
79
-*   Thu Mar 23 2017 Xiaolin Li <xiaolinl@vmware.com> 1.9.1-1
80
--   Updated to version 1.9.1.
81
-*   Thu Feb 02 2017 Xiaolin Li <xiaolinl@vmware.com> 1.5.2-4
82
--   Added python3 site-packages.
83
-*   Mon Oct 03 2016 ChangLee <changLee@vmware.com> 1.5.2-3
84
--   Modified %check
85
-*   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.5.2-2
86
--   GA - Bump release of all rpms
87
-*   Tue Feb 23 2016 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 1.5.2-1
88
--   Updated to version 1.5.2
89
-*   Thu Jan 21 2016 Anish Swaminathan <anishs@vmware.com> 1.5.0-1
90
--   Upgrade version
91
-*   Wed Nov 18 2015 Divya Thaluru <dthaluru@vmware.com> 1.3.0-1
92
--   nitial packaging for Photon
53
+* Wed May 11 2022 Shreenidhi Shedi <sshedi@vmware.com> 1.14.3-3
54
+- Bump version as a part of libffi upgrade
55
+* Tue Sep 29 2020 Satya Naga Vasamsetty <svasamsetty@vmware.com> 1.14.3-2
56
+- openssl 1.1.1
57
+* Mon Sep 21 2020 Gerrit Photon <photon-checkins@vmware.com> 1.14.3-1
58
+- Automatic Version Bump
59
+* Wed Aug 19 2020 Gerrit Photon <photon-checkins@vmware.com> 1.14.2-1
60
+- Automatic Version Bump
61
+* Tue Aug 11 2020 Gerrit Photon <photon-checkins@vmware.com> 1.14.1-1
62
+- Automatic Version Bump
63
+* Fri Jul 24 2020 Gerrit Photon <photon-checkins@vmware.com> 1.14.0-1
64
+- Automatic Version Bump
65
+* Fri Jun 19 2020 Tapas Kundu <tkundu@vmware.com> 1.11.5-5
66
+- Mass removal python2
67
+* Wed Feb 26 2020 Tapas Kundu <tkundu@vmware.com> 1.11.5-4
68
+- Fixed make check errors.
69
+* Thu Sep 05 2019 Shreyas B. <shreyasb@vmware.com> 1.11.5-3
70
+- Fixed make check errors.
71
+* Thu Nov 15 2018 Tapas Kundu <tkundu@vmware.com> 1.11.5-2
72
+- Fixed make check errors.
73
+* Sun Sep 09 2018 Tapas Kundu <tkundu@vmware.com> 1.11.5-1
74
+- Update to version 1.11.5
75
+* Mon Jul 17 2017 Divya Thaluru <dthaluru@vmware.com> 1.10.0-3
76
+- Added build time dependecies required during check
77
+* Wed Jun 07 2017 Xiaolin Li <xiaolinl@vmware.com> 1.10.0-2
78
+- Add python3-setuptools and python3-xml to python3 sub package Buildrequires.
79
+* Mon Apr 03 2017 Rongrong Qiu <rqiu@vmware.com> 1.10.0-1
80
+- Update to 1.10.0
81
+* Thu Mar 23 2017 Xiaolin Li <xiaolinl@vmware.com> 1.9.1-1
82
+- Updated to version 1.9.1.
83
+* Thu Feb 02 2017 Xiaolin Li <xiaolinl@vmware.com> 1.5.2-4
84
+- Added python3 site-packages.
85
+* Mon Oct 03 2016 ChangLee <changLee@vmware.com> 1.5.2-3
86
+- Modified %check
87
+* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.5.2-2
88
+- GA - Bump release of all rpms
89
+* Tue Feb 23 2016 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 1.5.2-1
90
+- Updated to version 1.5.2
91
+* Thu Jan 21 2016 Anish Swaminathan <anishs@vmware.com> 1.5.0-1
92
+- Upgrade version
93
+* Wed Nov 18 2015 Divya Thaluru <dthaluru@vmware.com> 1.3.0-1
94
+- nitial packaging for Photon
... ...
@@ -4,15 +4,17 @@
4 4
 
5 5
 Name:           rubygem-ffi
6 6
 Version:        1.13.1
7
-Release:        2%{?dist}
7
+Release:        3%{?dist}
8 8
 Summary:        Ruby FFI library
9 9
 Group:          Development/Languages
10 10
 Vendor:         VMware, Inc.
11 11
 Distribution:   Photon
12 12
 License:        BSD-2-Clause
13 13
 URL:            https://rubygems.org/gems/%{gem_name}/versions/%{version}
14
+
14 15
 Source0:        https://rubygems.org/downloads/ffi-%{version}.gem
15
-%define sha1    ffi=cfa25e7a3760c3ec16723cb8263d9b7a52d0eadf
16
+%define sha512  ffi=4c0b5086463c5abedc440c44fb12c62612627a2aaad60b1959ea8831d4ec2bbe3217fec0b63612730bb219748fd2bd2252dd615ca0305fb7f0e8456c63c31fbd
17
+
16 18
 BuildRequires:  ruby > 2.1.0
17 19
 BuildRequires:  gcc
18 20
 BuildRequires:  libffi-devel
... ...
@@ -23,7 +25,7 @@ BuildRequires:  findutils
23 23
 Ruby FFI library
24 24
 
25 25
 %prep
26
-%autosetup -n %{gem_name}-%{version}
26
+%autosetup -p1 -n %{gem_name}-%{version}
27 27
 
28 28
 %build
29 29
 
... ...
@@ -34,16 +36,18 @@ gem install -V --local --force --install-dir %{buildroot}/%{gemdir} %{SOURCE0}
34 34
 %files
35 35
 %defattr(-,root,root,-)
36 36
 %{gemdir}
37
-%exclude /usr/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi-%{_arch}-linux/include/ffitarget.h
37
+%exclude %{_libdir}/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi-%{_arch}-linux/include/ffitarget.h
38 38
 
39 39
 %changelog
40
-*   Thu Oct 14 2021 Stanislav Hadjiiski <hadjiiskis@vmware.com> 1.13.1-2
41
--   Drop group write permissions for files in /usr/lib to comply with STIG
42
-*   Thu Jul 16 2020 Gerrit Photon <photon-checkins@vmware.com> 1.13.1-1
43
--   Automatic Version Bump
44
-*   Tue Sep 25 2018 Ajay Kaher <akaher@vmware.com> 1.9.25-3
45
--   Adding aarch64 support.
46
-*   Tue Sep 25 2018 Alexey Makhalov <amakhalov@vmware.com> 1.9.25-2
47
--   Remove Provides itself and BuildArch
48
-*   Mon Aug 13 2018 Srinidhi Rao <srinidhir@vmware.com> 1.9.25-1
49
--   Initial build
40
+* Wed May 11 2022 Shreenidhi Shedi <sshedi@vmware.com> 1.13.1-3
41
+- Bump version as a part of libffi upgrade
42
+* Thu Oct 14 2021 Stanislav Hadjiiski <hadjiiskis@vmware.com> 1.13.1-2
43
+- Drop group write permissions for files in /usr/lib to comply with STIG
44
+* Thu Jul 16 2020 Gerrit Photon <photon-checkins@vmware.com> 1.13.1-1
45
+- Automatic Version Bump
46
+* Tue Sep 25 2018 Ajay Kaher <akaher@vmware.com> 1.9.25-3
47
+- Adding aarch64 support.
48
+* Tue Sep 25 2018 Alexey Makhalov <amakhalov@vmware.com> 1.9.25-2
49
+- Remove Provides itself and BuildArch
50
+* Mon Aug 13 2018 Srinidhi Rao <srinidhir@vmware.com> 1.9.25-1
51
+- Initial build