SHA256
1
0
forked from pool/cmake

Accepting request 323224 from home:AndreasStieger:branches:devel:tools:building

cmake 3.3.1, verify source signatures

OBS-URL: https://build.opensuse.org/request/show/323224
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/cmake?expand=0&rev=223
This commit is contained in:
Tomáš Chvátal
2015-08-15 08:18:06 +00:00
committed by Git OBS Bridge
parent 5b42b14b35
commit 2b638e4513
9 changed files with 427 additions and 9 deletions

View File

@@ -17,7 +17,7 @@
Name: cmake
Version: 3.3.0
Version: 3.3.1
Release: 0
Summary: Cross-platform, open-source make system
License: BSD-3-Clause
@@ -28,6 +28,9 @@ Source1: cmake.macros
Source2: opensuse_rules.cmake
Source3: cmake.attr
Source4: cmake.prov
Source5: http://www.cmake.org/files/v3.3/%{name}-%{version}-SHA-256.txt
Source6: http://www.cmake.org/files/v3.3/%{name}-%{version}-SHA-256.txt.asc
Source7: cmake.keyring
Patch2: cmake-fix-ruby-test.patch
# PATCH-FIX-UPSTREAM form.patch -- set the correct include path for the ncurses includes
Patch4: form.patch
@@ -57,7 +60,10 @@ BuildRequires: libbz2-devel
CMake is a cross-platform, open-source build system
%prep
%setup -q -n %{name}-%{version}
# The publisher doesn't sign the source tarball, but a signatures file containing multiple hashes.
# Verify hashes in that file against source tarball.
echo "`grep %{name}-%{version}.tar.gz %{SOURCE5} | grep -Eo '^[0-9a-f]+'` %{SOURCE0}" | sha256sum -c
%setup -q
%patch2 -p1
%patch4 -p1
%patch5 -p1
@@ -93,8 +99,8 @@ sed -i \
%{buildroot}%{_datadir}/cmake/Modules/opensuse_rules.cmake
# RPM auto provides
install -p -m0644 -D %{SOURCE3} %{buildroot}%{_prefix}/lib/rpm/fileattrs/cmake.attr
install -p -m0755 -D %{SOURCE4} %{buildroot}%{_prefix}/lib/rpm/cmake.prov
install -p -m0644 -D %{SOURCE3} %{buildroot}%{_libexecdir}/rpm/fileattrs/cmake.attr
install -p -m0755 -D %{SOURCE4} %{buildroot}%{_libexecdir}/rpm/cmake.prov
%fdupes %{buildroot}%{_datadir}/cmake
@@ -134,7 +140,7 @@ export PATH=$NPATH
%files
%defattr(-,root,root)
%config %{_sysconfdir}/rpm/macros.cmake
%{_prefix}/lib/rpm
%{_libexecdir}/rpm
%{_bindir}/cpack
%{_bindir}/cmake
%{_bindir}/ctest