Browse code

Move sha1 into .spec files.

YustasSwamp authored on 2015/07/16 08:31:41
Showing 244 changed files
... ...
@@ -70,6 +70,7 @@ packages-micro: check $(PHOTON_PUBLISH_RPMS) $(PHOTON_SOURCES)
70 70
                 -l $(PHOTON_LOGS_DIR) \
71 71
                 -p $(PHOTON_PUBLISH_RPMS_DIR) \
72 72
                 -j $(PHOTON_DATA_DIR)/build_install_options_micro.json \
73
+		-c $(PHOTON_BINTRAY_CONFIG) \
73 74
                 -t ${THREADS}
74 75
 
75 76
 minimal: minimal-iso
... ...
@@ -96,6 +97,7 @@ packages-minimal: check $(PHOTON_PUBLISH_RPMS) $(PHOTON_SOURCES)
96 96
                 -l $(PHOTON_LOGS_DIR) \
97 97
                 -p $(PHOTON_PUBLISH_RPMS_DIR) \
98 98
                 -j $(PHOTON_DATA_DIR)/build_install_options_minimal.json \
99
+		-c $(PHOTON_BINTRAY_CONFIG) \
99 100
                 -t ${THREADS}
100 101
 
101 102
 iso: check $(PHOTON_STAGE) $(PHOTON_PACKAGES)
... ...
@@ -120,6 +122,7 @@ packages: check $(PHOTON_PUBLISH_RPMS) $(PHOTON_SOURCES) $(CONTAIN)
120 120
                 -l $(PHOTON_LOGS_DIR) \
121 121
                 -p $(PHOTON_PUBLISH_RPMS_DIR) \
122 122
                 -j $(PHOTON_DATA_DIR)/build_install_options_all.json \
123
+		-c $(PHOTON_BINTRAY_CONFIG) \
123 124
                 -t ${THREADS}
124 125
 
125 126
 tool-chain-stage1: check $(PHOTON_PUBLISH_RPMS) $(PHOTON_SOURCES) $(CONTAIN)
... ...
@@ -134,6 +137,7 @@ tool-chain-stage1: check $(PHOTON_PUBLISH_RPMS) $(PHOTON_SOURCES) $(CONTAIN)
134 134
                 -p $(PHOTON_PUBLISH_RPMS_DIR) \
135 135
                 -j $(PHOTON_DATA_DIR)/build_install_options_all.json \
136 136
                 -t ${THREADS} \
137
+		-c $(PHOTON_BINTRAY_CONFIG) \
137 138
                 -m stage1
138 139
 
139 140
 tool-chain-stage2: check $(PHOTON_PUBLISH_RPMS) $(PHOTON_SOURCES) $(CONTAIN)
... ...
@@ -148,6 +152,7 @@ tool-chain-stage2: check $(PHOTON_PUBLISH_RPMS) $(PHOTON_SOURCES) $(CONTAIN)
148 148
                 -p $(PHOTON_PUBLISH_RPMS_DIR) \
149 149
                 -j $(PHOTON_DATA_DIR)/build_install_options_all.json \
150 150
                 -t ${THREADS} \
151
+		-c $(PHOTON_BINTRAY_CONFIG) \
151 152
                 -m stage2
152 153
 
153 154
 
... ...
@@ -159,10 +164,7 @@ packages-cached:
159 159
      $(CP) -f $(PHOTON_CACHE_PATH)/RPMS/x86_64/* $(PHOTON_RPMS_DIR_X86_64)/
160 160
 
161 161
 sources:
162
-	@echo "Pulling sources from bintray..."
163
-	@$(MKDIR) -p $(PHOTON_SRCS_DIR) && \
164
-	 cd $(PHOTON_PULL_SOURCES_DIR) && \
165
-	 $(PHOTON_PULL_SOURCES) -c $(PHOTON_BINTRAY_CONFIG) -s $(PHOTON_SOURCES_LIST) $(PHOTON_SRCS_DIR)
162
+	@echo "Pulling sources from bintray...(nothing to do)"
166 163
 
167 164
 sources-cached:
168 165
 	@echo "Using cached SOURCES..."
... ...
@@ -308,6 +310,7 @@ check-packer-ovf-plugin:
308 308
                               -r $(PHOTON_RPMS_DIR) \
309 309
                               -x $(PHOTON_SRCS_DIR) \
310 310
                               -p $(PHOTON_PUBLISH_RPMS_DIR) \
311
+                              -c $(PHOTON_BINTRAY_CONFIG) \
311 312
                               -l $(PHOTON_LOGS_DIR)
312 313
 
313 314
 $(TOOLS_BIN):
... ...
@@ -317,7 +320,3 @@ $(CONTAIN): $(TOOLS_BIN)
317 317
 	gcc -O2 -std=gnu99 -Wall -Wextra $(SRCROOT)/tools/src/contain/*.c -o $@_unpriv
318 318
 	sudo install -o root -g root -m 4755 $@_unpriv $@
319 319
 
320
-sha1:
321
-	@cd $(PHOTON_SRCS_DIR) && \
322
-		sha1sum * | awk '{print $$2" - "$$1}' > $(PHOTON_SOURCES_LIST)
323
-
... ...
@@ -8,6 +8,7 @@ Group:		System Environment/Security
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution:	Photon
10 10
 Source0:	http://linux-pam.org/library/%{name}-%{version}.tar.bz2
11
+%define sha1 Linux-PAM=f8ce53c67363f78d520392fa1c253c4978058be1
11 12
 %description
12 13
 The Linux PAM package contains Pluggable Authentication Modules used to 
13 14
 enable the local system administrator to choose how applications authenticate users.
... ...
@@ -5,6 +5,7 @@ Release:	1%{?dist}
5 5
 License:	LGPLv2+
6 6
 URL:		https://download.gnome.org/sources/NetworkManager/1.0/NetworkManager-1.0.2.tar.xz
7 7
 Source0:	https://download.gnome.org/sources/NetworkManager/1.0/%{name}-%{version}.tar.xz
8
+%define sha1 NetworkManager=e6183286935dd87a4885f187e533729a6d6a8e79
8 9
 Group:		System Environment/Base
9 10
 Vendor:		VMware, Inc.
10 11
 Distribution:	Photon
... ...
@@ -6,6 +6,7 @@ Group:          Development/Libraries
6 6
 License:        MIT
7 7
 URL:            http://pyyaml.org/
8 8
 Source0:        http://pyyaml.org/download/pyyaml/%{name}-%{version}.tar.gz
9
+%define sha1 PyYAML=1a2d5df8b31124573efb9598ec6d54767f3c4cd4
9 10
 
10 11
 BuildRequires: python2
11 12
 BuildRequires: python2-libs
... ...
@@ -5,6 +5,7 @@ Release:	1%{?dist}
5 5
 License:	GPL+
6 6
 URL:		http://search.cpan.org/~toddr/%{name}-%{version}/
7 7
 Source0:		http://search.cpan.org/CPAN/authors/id/T/TO/TODDR/%{name}-%{version}.tar.gz
8
+%define sha1 XML-Parser=68c7ee61b413c2e8255699b1987fca598e0a39d8
8 9
 Group:		Development/Tools
9 10
 Vendor:		VMware, Inc.
10 11
 Distribution:	Photon
... ...
@@ -3,6 +3,7 @@ Name:		acl
3 3
 Version:	2.2.52
4 4
 Release:	1%{?dist}
5 5
 Source0:	http://download.savannah.gnu.org/releases-noredirect/acl/acl-%{version}.src.tar.gz
6
+%define sha1 acl=537dddc0ee7b6aa67960a3de2d36f1e2ff2059d9
6 7
 License:	GPLv2+
7 8
 Group:		System Environment/Base
8 9
 URL:		http://acl.bestbits.at/
... ...
@@ -9,6 +9,7 @@ Vendor:		VMware, Inc.
9 9
 Distribution: 	Photon
10 10
 BuildArch:      noarch
11 11
 Source0:	http://dl.bintray.com/vmware/photon_release_1.0_TP1_x86_64/%{name}-%{version}-src.tar.gz
12
+%define sha1 ant-contrib=b28d2bf18656b263611187fa9fbb95cec93d47c8
12 13
 Requires: openjdk >= 1.8.0.45, apache-ant >= 1.9.4
13 14
 BuildRequires: openjdk >= 1.8.0.45, apache-ant >= 1.9.4
14 15
 
... ...
@@ -9,7 +9,9 @@ Vendor:		VMware, Inc.
9 9
 Distribution: 	Photon
10 10
 BuildArch:       noarch
11 11
 Source0:	http://apache.mirrors.lucidnetworks.net//ant/source/%{name}-%{version}-src.tar.gz
12
+%define sha1 apache-ant=01fe8219e50765beafc69de8b7886f882dee73ec
12 13
 Source1:	http://hamcrest.googlecode.com/files/hamcrest-1.3.tar.gz
14
+%define sha1 hamcrest=f0ab4d66186b894a06d89d103c5225cf53697db3
13 15
 Requires: openjdk >= 1.8.0.45, python2
14 16
 BuildRequires: openjdk >= 1.8.0.45
15 17
 
... ...
@@ -9,6 +9,7 @@ Vendor:		VMware, Inc.
9 9
 Distribution: 	Photon
10 10
 BuildArch:       noarch
11 11
 Source0:	http://apache.mirrors.lucidnetworks.net//maven/source/%{name}-%{version}-src.tar.gz
12
+%define sha1 apache-maven=70301d0669bc86cd81b25a05b1daab3c6ca23595
12 13
 Requires: openjdk >= 1.8.0.45
13 14
 BuildRequires: openjdk >= 1.8.0.45, apache-ant >= 1.9.4, wget >= 1.15
14 15
 
... ...
@@ -9,6 +9,7 @@ Vendor:		VMware, Inc.
9 9
 Distribution: 	Photon
10 10
 BuildArch:      noarch
11 11
 Source0:	http://mirrors.gigenet.com/apache/tomcat/tomcat-7/v7.0.63/src/%{name}-%{version}.tar.gz
12
+%define sha1 apache-tomcat=ddd520f6df2414f10b6b0832dcacd7889f2dbff0
12 13
 Requires: openjdk >= 1.8.0.45
13 14
 
14 15
 %define _prefix /opt/%{name}-%{version}
... ...
@@ -8,6 +8,7 @@ Group:      System Environment/Libraries
8 8
 Vendor:     VMware, Inc.
9 9
 Distribution: Photon
10 10
 Source0:    http://archive.apache.org/dist/apr/%{name}-%{version}.tar.gz
11
+%define sha1 apr-util=72cc3ac693b52fb831063d5c0de18723bc8e0095
11 12
 BuildRequires:   apr
12 13
 BuildRequires:   openldap
13 14
 BuildRequires:   openssl
... ...
@@ -8,6 +8,7 @@ Group:      System Environment/Libraries
8 8
 Vendor:     VMware, Inc.
9 9
 Distribution: Photon
10 10
 Source0:    http://archive.apache.org/dist/apr/%{name}-%{version}.tar.gz
11
+%define sha1 apr=2ef2ac9a8de7f97f15ef32cddf1ed7325163d84c
11 12
 %description
12 13
 The Apache Portable Runtime.
13 14
 
... ...
@@ -8,6 +8,7 @@ Group:      System Environment/Development
8 8
 Vendor:     VMware, Inc.
9 9
 Distribution:   Photon
10 10
 Source0:    http://sourceforge.net/projects/asciidoc/files/asciidoc/%{version}/%{name}-%{version}.tar.gz
11
+%define sha1 asciidoc=82e574dd061640561fa0560644bc74df71fb7305
11 12
 
12 13
 %description
13 14
 AsciiDoc is a human readable text document format that can be easily converted to other document formats.
... ...
@@ -5,6 +5,7 @@ Release:	1%{?dist}
5 5
 License:	GPLv2+
6 6
 URL:		https://www.gnu.org/software/hurd/community/gsoc/project_ideas/libcap.html
7 7
 Source0:	http://download.savannah.gnu.org/releases/attr/%{name}-%{version}.src.tar.gz
8
+%define sha1 attr=5060f0062baee6439f41a433325b8b3671f8d2d8
8 9
 Group:		System Environment/Security
9 10
 Vendor:		VMware, Inc.
10 11
 Distribution:	Photon
... ...
@@ -8,6 +8,7 @@ Group:		System Environment/Base
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: 	Photon
10 10
 Source0:	http://ftp.gnu.org/gnu/autoconf/%{name}-%{version}.tar.xz
11
+%define sha1 autoconf=e891c3193029775e83e0534ac0ee0c4c711f6d23
11 12
 Requires:	perl
12 13
 BuildRequires:	m4
13 14
 Requires:	m4
... ...
@@ -5,6 +5,7 @@ Release:	1%{?dist}
5 5
 License:        GPLv3+
6 6
 URL:            http://www.gnu.org/software/autogen/
7 7
 Source0:        ftp://ftp.gnu.org/gnu/autogen/rel%{version}/%{name}-%{version}.tar.gz
8
+%define sha1 autogen=cd24a7944d646f6aaea5c7ed13018de38c45b3da
8 9
 Group:		System Environment/Tools
9 10
 Vendor:		VMware, Inc.
10 11
 BuildRequires:	guile-devel
... ...
@@ -8,6 +8,7 @@ Group:		System Environment/Base
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: 	Photon
10 10
 Source0:	http://ftp.gnu.org/gnu/automake/%{name}-%{version}.tar.xz
11
+%define sha1 automake=2ced676f6b792a95c5919243f81790b1172c7f5b
11 12
 BuildRequires:	autoconf
12 13
 %description
13 14
 Contains programs for generating Makefiles for use with Autoconf.
... ...
@@ -8,6 +8,7 @@ Group:		System Environment/Base
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: Photon
10 10
 Source0:	http://ftp.gnu.org/gnu/bash/%{name}-%{version}.tar.gz
11
+%define sha1 bash=45ac3c5727e7262334f4dfadecdf601b39434e84
11 12
 Patch0:		http://www.linuxfromscratch.org/patches/downloads/bash/bash-4.3-upstream_fixes-7.patch
12 13
 Provides:	/bin/sh
13 14
 Provides:	/bin/bash
... ...
@@ -8,6 +8,7 @@ Group:		System Environment/base
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: Photon
10 10
 Source0:	http://alpha.gnu.org/gnu/bc/%{name}-%{version}.tar.bz2
11
+%define sha1 bc=18717e0543b1dda779a71e6a812f11b8261a705a
11 12
 %description
12 13
 The Bc package contains an arbitrary precision numeric processing language.
13 14
 %prep
... ...
@@ -5,6 +5,7 @@ Release:	P1%{?dist}
5 5
 License:	ISC
6 6
 URL:		http://www.isc.org/downloads/bind/
7 7
 Source0:	ftp://ftp.isc.org/isc/bind9/9.10.1-P1/bind-%{version}-%{release}.tar.gz
8
+%define sha1 bind=24a81ba458a762c27be47461301fcf336cfb1d43
8 9
 Group:		Development/Tools
9 10
 Vendor:		VMware, Inc.
10 11
 Distribution:	Photon
... ...
@@ -8,6 +8,7 @@ Group:		System Environment/Base
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: 	Photon
10 10
 Source0:	http://ftp.gnu.org/gnu/binutils/%{name}-%{version}.tar.bz2
11
+%define sha1 binutils=b46cc90ebaba7ffcf6c6d996d60738881b14e50d
11 12
 %description
12 13
 The Binutils package contains a linker, an assembler,
13 14
 and other tools for handling object files.
... ...
@@ -8,6 +8,7 @@ Group:		System Environment/Base
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: 	Photon
10 10
 Source0:	http://ftp.gnu.org/gnu/bison/%{name}-%{version}.tar.xz
11
+%define sha1 bison=aeb1e3544007124009e5203afe86a5676580d444
11 12
 BuildRequires:	m4
12 13
 Requires:	m4
13 14
 BuildRequires:	flex
... ...
@@ -8,6 +8,7 @@ Group:		System Environment/Security
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution:	Photon
10 10
 Source0:	http://downloads.sourceforge.net/boost/boost_1_56_0.tar.bz2
11
+%define sha1 boost=f94bb008900ed5ba1994a1072140590784b9b5df
11 12
 BuildRequires:	bzip2-devel
12 13
 
13 14
 %description
... ...
@@ -8,6 +8,7 @@ Group:		System Environment/Base
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: 	Photon
10 10
 Source0:	http://sourceforge.net/projects/bridge/files/bridge/%{name}-%{version}.tar.gz
11
+%define sha1 bridge-utils=19d2a58cd3a70f971aa931b40256174a847e60d6
11 12
 Patch0:		http://www.linuxfromscratch.org/patches/blfs/systemd/bridge-utils-1.5-linux_3.8_fix-1.patch
12 13
 %description
13 14
 The bridge-utils package contains a utility needed to create and manage bridge devices. This is useful in setting up networks for a hosted virtual machine (VM).
... ...
@@ -6,6 +6,7 @@ Group:		System Environment/Base
6 6
 License:	GPLv2+
7 7
 URL:		http://btrfs.wiki.kernel.org/index.php/Main_Page
8 8
 Source0:	https://www.kernel.org/pub/linux/kernel/people/kdave/%{name}/%{name}-%{version}.tar.gz
9
+%define sha1 btrfs-progs=2d279d13c51f929055a6eefa2bd95d1daf2c0a93
9 10
 Vendor:		VMware, Inc.
10 11
 Distribution:	Photon
11 12
 BuildRequires:	lzo-devel
... ...
@@ -8,6 +8,7 @@ Group:		System Environment/Base
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: Photon
10 10
 Source0:		http://www.bzip.org/%{version}/%{name}-%{version}.tar.gz
11
+%define sha1 bzip2=3f89f861209ce81a6bab1fd1998c0ef311712002
11 12
 Patch0:		http://www.linuxfromscratch.org/patches/lfs/7.2/bzip2-1.0.6-install_docs-1.patch
12 13
 %description
13 14
 The Bzip2 package contains programs for compressing and
... ...
@@ -7,6 +7,7 @@ Group: 		System Environment/Base
7 7
 Vendor:		VMware, Inc.
8 8
 Distribution: 	Photon
9 9
 Source0: 	%{name}-%{version}.tar.gz
10
+%define sha1 cdrkit=3f7ddc06db0272942e1a4cd98c3c96462df77387
10 11
 URL:  		http://gd.tuwien.ac.at/utils/schilling/cdrtools/
11 12
 BuildArchitectures: x86_64
12 13
 Requires: 	bash
... ...
@@ -5,6 +5,7 @@ Release:	2%{?dist}
5 5
 License:	LGPLv2+
6 6
 URL:		http://check.sourceforge.net/
7 7
 Source0:	http://sourceforge.net/projects/check/files/latest/download/%{name}-%{version}.tar.gz
8
+%define sha1 check=4b79e2d485d014ddb438e322b64235347d57b0ff
8 9
 Group:		Development/Tools
9 10
 Vendor:		VMware, Inc.
10 11
 Distribution: Photon
... ...
@@ -6,6 +6,7 @@ Group:          System Environment/Base
6 6
 License:        GPLv3
7 7
 URL:            http://launchpad.net/cloud-init
8 8
 Source0:        https://launchpad.net/cloud-init/trunk/%{version}/+download/%{name}-%{version}.tar.gz
9
+%define sha1 cloud-init=9af02f68d68abce91463bec22b17964d1618e1da
9 10
 Source1:        cloud-photon.cfg
10 11
 
11 12
 Patch0:         photon-distro.patch
... ...
@@ -5,6 +5,7 @@ Release:	2%{?dist}
5 5
 License:	BSD and LGPLv2+
6 6
 URL:		http://www.cmake.org/
7 7
 Source0:	http://www.cmake.org/files/v3.2/%{name}-%{version}.tar.gz
8
+%define sha1 cmake=53c1fe2aaae3b2042c0fe5de177f73ef6f7b267f
8 9
 Group:		Development/Tools
9 10
 Vendor:		VMware, Inc.
10 11
 Distribution:	Photon
... ...
@@ -8,6 +8,7 @@ Group:		System Environment/Base
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: Photon
10 10
 Source0:	http://ftp.gnu.org/gnu/coreutils/%{name}-%{version}.tar.xz
11
+%define sha1 coreutils=cc7fe47b21eb49dd2ee4cdb707570f42fb2c8cc6
11 12
 Patch0:		http://www.linuxfromscratch.org/patches/lfs/7.5/coreutils-8.22-i18n-4.patch
12 13
 %description
13 14
 The Coreutils package contains utilities for showing and setting
... ...
@@ -8,6 +8,7 @@ Group:		System Environment/System utilities
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: 	Photon
10 10
 Source0:	http://ftp.gnu.org/pub/gnu/cpio/%{name}-%{version}.tar.bz2
11
+%define sha1 cpio=6f1934b0079dc1e85ddff89cabdf01adb3a74abb
11 12
 %description
12 13
 The cpio package contains tools for archiving.
13 14
 %prep
... ...
@@ -6,7 +6,9 @@ Version:	2.9.2
6 6
 Release:	2%{?dist}
7 7
 Group:		System Environment/Libraries
8 8
 Source:		cracklib-%{version}.tar.gz
9
+%define sha1 cracklib-2.9.2=a780211a87a284297aa473fe2b50584b842a0e98
9 10
 Source1:    cracklib-words-20080507.gz
11
+%define sha1 cracklib-words=e0cea03e505e709b15b8b950d56cb493166607da
10 12
 URL:		http://sourceforge.net/projects/cracklib/
11 13
 License:	GPL
12 14
 Vendor:     VMware, Inc.
... ...
@@ -9,6 +9,7 @@ Group: 		System Environment/Base
9 9
 Vendor:		VMware, Inc.
10 10
 Distribution: 	Photon
11 11
 Source0: 	%{name}-%{version}.tar.gz
12
+%define sha1 createrepo=9dfd0e935b3180096ccd61611db3c85c968eea4f
12 13
 URL: 		http://linux.duke.edu/metadata/
13 14
 BuildArchitectures: noarch
14 15
 Requires: python2 >= 2.1, rpm-devel, rpm >= 0:4.1.1, libxml2
... ...
@@ -5,6 +5,7 @@ Release:	1%{?dist}
5 5
 License:	GPLv2+ and MIT and BSD and ISC
6 6
 URL:		https://fedorahosted.org/cronie
7 7
 Source0:	https://fedorahosted.org/releases/c/r/cronie/%{name}-%{version}.tar.gz
8
+%define sha1 cronie=bbf154a6db7c9802664d1f0397b5e7ae9a9618e4
8 9
 Group:		System Environment/Base
9 10
 Vendor:		VMware, Inc.
10 11
 Distribution:	Photon
... ...
@@ -8,6 +8,7 @@ Group:		System Environment/NetworkingLibraries
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: Photon
10 10
 Source0:	http://curl.haxx.se/download/%{name}-%{version}.tar.lzma
11
+%define sha1 curl=e43ddbae467ea9d5bd6be03fab5833fac8c850ca
11 12
 Requires:	ca-certificates
12 13
 BuildRequires:	ca-certificates
13 14
 Requires:	openssl
... ...
@@ -8,7 +8,9 @@ Group:		System Environment/Security
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: 	Photon
10 10
 Source0:	ftp://ftp.cyrusimap.org/cyrus-sasl/%{name}-%{version}.tar.gz
11
+%define sha1 cyrus-sasl=d6669fb91434192529bd13ee95737a8a5040241c
11 12
 Source1:	http://www.linuxfromscratch.org/blfs/downloads/svn/blfs-bootscripts-20140919.tar.bz2
13
+%define sha1 blfs-bootscripts=762b68f79f84463a6b1dabb69e9dbdc2c43f32d8
12 14
 Patch0:		http://www.linuxfromscratch.org/patches/blfs/svn/cyrus-sasl-2.1.26-fixes-3.patch
13 15
 Requires:	openssl
14 16
 Requires:	krb5 >= 1.12
... ...
@@ -5,6 +5,7 @@ Release:	1%{?dist}
5 5
 License:	Sleepycat License
6 6
 URL:		https://oss.oracle.com/berkeley-db.html
7 7
 Source0:	http://download.oracle.com/berkeley-db/%{name}-%{version}.tar.gz
8
+%define sha1 db=fa3f8a41ad5101f43d08bc0efb6241c9b6fc1ae9
8 9
 Group:		Databases
9 10
 Vendor:		VMware, Inc.
10 11
 Distribution:	Photon
... ...
@@ -5,6 +5,7 @@ Release:	1%{?dist}
5 5
 License: 	AFL and GPLv2+
6 6
 Group: 		System Environment/Libraries
7 7
 Source0:	http://dbus.freedesktop.org/releases/dbus-glib/%{name}-%{version}.tar.gz
8
+%define sha1 dbus-glib=776a0e843f5c04cb58225962d623e82f283aed68
8 9
 Vendor:		VMware, Inc.
9 10
 Distribution:	Photon
10 11
 BuildRequires:	glib-devel
... ...
@@ -6,6 +6,7 @@ License:	GPLv2+ or AFL
6 6
 URL:		http://www.freedesktop.org/wiki/Software/dbus
7 7
 Group:		Applications/File
8 8
 Source0:	http://dbus.freedesktop.org/releases/dbus/%{name}-%{version}.tar.gz
9
+%define sha1 dbus=e0d10e8b4494383c7e366ac80a942ba45a705a96
9 10
 Vendor:		VMware, Inc.
10 11
 Distribution:	Photon
11 12
 BuildRequires:	expat
... ...
@@ -8,6 +8,7 @@ Vendor: VMware, Inc.
8 8
 Distribution: Photon
9 9
 URL: http://www.novell.com/products/linuxpackages/professional/deltarpm.html
10 10
 Source0: ftp://ftp.suse.com/pub/projects/deltarpm/deltarpm-%{version}.tar.bz2
11
+%define sha1 deltarpm=1f92f9ad44be7ba5a9ead5481ac7208c609e9374
11 12
 BuildRequires: rpm-devel >= 4.2
12 13
 BuildRequires: bzip2-devel
13 14
 BuildRequires: xz-devel
... ...
@@ -6,6 +6,7 @@ License:	GPL+
6 6
 Group:		System Environment/Base
7 7
 URL:		http://christophe.varoqui.free.fr/
8 8
 Source0:	http://christophe.varoqui.free.fr/multipath-tools/multipath-tools-0.5.0.tar.bz2
9
+%define sha1 multipath-tools=dcd889c09bcb1f2b89900838da6ac1ed970104cb
9 10
 BuildRequires:	libaio-devel
10 11
 BuildRequires:	device-mapper-devel
11 12
 BuildRequires:	libselinux-devel
... ...
@@ -8,6 +8,7 @@ Group:		System Environment/Base
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution:	Photon
10 10
 Source0:	http://ftp.gnu.org/gnu/diffutils/%{name}-%{version}.tar.xz
11
+%define sha1 diffutils=6463cce7d3eb73489996baefd0e4425928ecd61e
11 12
 BuildRequires:	coreutils
12 13
 %description
13 14
 The Diffutils package contains programs that show the
... ...
@@ -5,6 +5,7 @@ Release:	3%{?dist}
5 5
 License:	MIT
6 6
 URL:		http://www.docbook.org
7 7
 Source0:	http://www.docbook.org/xml/4.5/%{name}-%{version}.zip
8
+%define sha1 docbook-xml=b9124233b50668fb508773aa2b3ebc631d7c1620
8 9
 Group:		Development/Tools
9 10
 Vendor:		VMware, Inc.
10 11
 Distribution: 	Photon
... ...
@@ -5,6 +5,7 @@ Release:	2%{?dist}
5 5
 License:	Apache License
6 6
 URL:		http://www.docbook.org
7 7
 Source0:	http://downloads.sourceforge.net/docbook/%{name}-%{version}.tar.bz2
8
+%define sha1 docbook-xsl=1d668c845bb43c65115d1a1d9542f623801cfb6f
8 9
 Group:		Development/Tools
9 10
 Vendor:		VMware, Inc.
10 11
 Distribution:	Photon
... ...
@@ -8,6 +8,7 @@ Group:      Applications/File
8 8
 Vendor:     VMware, Inc.
9 9
 Distribution:   Photon
10 10
 Source0:	https://get.docker.com/builds/Linux/x86_64/%{name}-%{version}.tar.gz
11
+%define sha1 docker=59a5b5eaae6966a3caa43f30c23a1a9b49edc268
11 12
 
12 13
 %description
13 14
 Docker is a platform for developers and sysadmins to develop, ship and run applications.
... ...
@@ -8,6 +8,7 @@ Group:		Applications/System
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution:	Photon
10 10
 Source0:	%{name}-%{version}.tar.gz
11
+%define sha1 dparted=7a2686dd56d86d1a696982e4061cf66cc8963409
11 12
 Requires:	python2 >= 2.7
12 13
 BuildRequires:	parted
13 14
 BuildRequires:	glibmm-devel
... ...
@@ -14,6 +14,7 @@ URL:		https://dracut.wiki.kernel.org/
14 14
 # Source can be generated by
15 15
 # http://git.kernel.org/?p=boot/dracut/dracut.git;a=snapshot;h=%{version};sf=tgz
16 16
 Source0:	http://www.kernel.org/pub/linux/utils/boot/dracut/dracut-%{version}.tar.xz
17
+%define sha1 dracut=9c7c6c61eb7529206fc6595bd014e046e18ef5e0
17 18
 Patch0:		https://www.gnu.org/licenses/lgpl-2.1.txt
18 19
 Summary:	dracut to create initramfs
19 20
 Vendor:		VMware, Inc.
... ...
@@ -8,6 +8,7 @@ Group:		System Environment/Base
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution:	Photon
10 10
 Source0:	http://prdownloads.sourceforge.net/e2fsprogs/%{name}-%{version}.tar.gz
11
+%define sha1 e2fsprogs=fb8e3662302bcab1682d567d6ee0ff051faa1bbd
11 12
 %description
12 13
 The E2fsprogs package contains the utilities for handling
13 14
 the ext2 file system.
... ...
@@ -6,6 +6,7 @@ Release:	2%{?dist}
6 6
 License:	GPLv3+ and (GPLv2+ or LGPLv3+)
7 7
 Group:		Development/Tools
8 8
 Source0:	elfutils-%{version}.tar.bz2
9
+%define sha1 elfutils=09adbbf0f3a35bb1bcb77c2eaa40de8d3443af4d
9 10
 Vendor:		VMware, Inc.
10 11
 Distribution:	Photon
11 12
 Obsoletes:	libelf libelf-devel
... ...
@@ -8,6 +8,7 @@ Group:		System Environment/Security
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution:	Photon
10 10
 Source0:	https://github.com/coreos/etcd/releases/download/v2.0.4/%{name}-v%{version}-linux-amd64.tar.gz
11
+%define sha1 etcd=1aa350cfa94f8dccb855c4f9b1bbcda5eeddc6d0
11 12
 Requires:	shadow
12 13
 %description
13 14
 A highly-available key value store for shared configuration and service discovery.
... ...
@@ -8,6 +8,7 @@ Group:		System Environment/Daemons
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: 	Photon
10 10
 Source0:	https://www.balabit.com/downloads/files/eventlog/0.2/%{name}_%{version}.tar.gz
11
+%define sha1 eventlog=3e35a634e7de029ab9d36995a085bfcb00ed6a4d
11 12
 BuildRequires:	bison
12 13
 BuildRequires:	flex
13 14
 
... ...
@@ -8,6 +8,7 @@ Group:		System Environment/GeneralLibraries
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution:	Photon
10 10
 Source0:	http://downloads.sourceforge.net/%{name}-%{version}.tar.gz
11
+%define sha1 expat=b08197d146930a5543a7b99e871cba3da614f6f0
11 12
 %description
12 13
 The Expat package contains a stream oriented C library for parsing XML.
13 14
 %prep
... ...
@@ -8,6 +8,7 @@ Group:		Applications/File
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: 	Photon
10 10
 Source0:	ftp://ftp.astron.com/pub/file/%{name}-%{version}.tar.gz
11
+%define sha1 file=20fa06592291555f2b478ea2fb70b53e9e8d1f7c
11 12
 %description
12 13
 The package contains a utility for determining the type of a
13 14
 given file or files
... ...
@@ -8,6 +8,7 @@ Group:		Applications/File
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: 	Photon
10 10
 Source0:	http://ftp.gnu.org/gnu/findutils/%{name}-%{version}.tar.gz
11
+%define sha1 findutils=e8dd88fa2cc58abffd0bfc1eddab9020231bb024
11 12
 %description
12 13
 These programs are provided to recursively search through a
13 14
 directory tree and to create, maintain, and search a database
... ...
@@ -9,6 +9,7 @@ BuildRequires:	go
9 9
 Vendor:		VMware, Inc.
10 10
 Distribution: Photon
11 11
 Source0:	https://github.com/coreos/%{name}/archive/%{name}-%{version}.tar.gz
12
+%define sha1 fleet=2de21c48f918c7611564f5960858ad3f53b8f58d
12 13
 %description
13 14
 fleet ties together systemd and etcd into a simple distributed init system.
14 15
 
... ...
@@ -8,6 +8,7 @@ Group:		Applications/System
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: 	Photon
10 10
 Source0:	http://prdownloads.sourceforge.net/flex/%{name}-%{version}.tar.bz2
11
+%define sha1 flex=5214d963dfac14e0607ae36b68076dfef71fdd40
11 12
 BuildRequires:	m4
12 13
 Requires:	m4
13 14
 %description
... ...
@@ -8,6 +8,7 @@ Group:		System Environment/Base
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution:	Photon
10 10
 Source0:        http://sourceforge.net/projects/fuse/files/fuse-2.X/%{version}/%{name}-%{version}.tar.gz
11
+%define sha1 fuse=c8b25419f33624dc5240af6a5d26f2c04367ca71
11 12
 %description
12 13
 With FUSE it is possible to implement a fully functional filesystem in a
13 14
 userspace program. 
... ...
@@ -8,6 +8,7 @@ Group:		Applications/File
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: Photon
10 10
 Source0:		http://ftp.gnu.org/gnu/gawk/%{name}-%{version}.tar.xz
11
+%define sha1 gawk=caabca3c1a59d05807c826c45a4639b82cad612a
11 12
 Provides:	/bin/gawk
12 13
 %description
13 14
 The Gawk package contains programs for manipulating text files.
... ...
@@ -5,7 +5,9 @@ Release:	1%{?dist}
5 5
 License:	BSD
6 6
 Url:		http://www.hboehm.info/gc/
7 7
 Source0:	http://www.hboehm.info/gc/gc_source/%{name}-%{version}.tar.gz
8
+%define sha1 gc=cd4a54620c38a2c361b3ee99dd134dbffb57c313
8 9
 Source1:	http://www.ivmaisoft.com/_bin/atomic_ops/libatomic_ops-7.4.2.tar.gz
10
+%define sha1 libatomic_ops=57cd7c64e37fca300bd7b24e3d2f14129b25b376
9 11
 Group:		System Environment/Base
10 12
 Vendor:		VMware, Inc.
11 13
 Distribution:	Photon
... ...
@@ -9,6 +9,7 @@ Group:		Development/Tools
9 9
 Vendor:		VMware, Inc.
10 10
 Distribution:	Photon
11 11
 Source0:	http://ftp.gnu.org/gnu/gcc/%{name}-%{version}/%{name}-%{version}.tar.bz2
12
+%define sha1 gcc=810fb70bd721e1d9f446b6503afe0a9088b62986
12 13
 Requires:	libstdc++-devel
13 14
 Requires:	libgcc-devel
14 15
 Requires:	libgomp-devel
... ...
@@ -5,6 +5,7 @@ Release:	1%{?dist}
5 5
 License:	GPLv2+
6 6
 URL:		http://www.gnu.org/software/%{name}
7 7
 Source0:	http://ftp.gnu.org/gnu/gdb/%{name}-%{version}.tar.gz
8
+%define sha1 gdb=67cfbc6efcff674aaac3af83d281cf9df0839ff9
8 9
 Group:		Development/Tools
9 10
 Vendor:		VMware, Inc.
10 11
 Distribution:	Photon
... ...
@@ -8,6 +8,7 @@ Group:		Applications/Databases
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution:	Photon
10 10
 Source0:	http://ftp.gnu.org/gnu/gdbm/%{name}-%{version}.tar.gz
11
+%define sha1 gdbm=ce433d0f192c21d41089458ca5c8294efe9806b4
11 12
 %description
12 13
 This is a disk file format database which stores key/data-pairs in
13 14
 single files. The actual data of any record being stored is indexed
... ...
@@ -8,6 +8,7 @@ Group:		Applications/System
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: Photon
10 10
 Source0:		http://ftp.gnu.org/gnu/gettext/%{name}-%{version}.tar.gz
11
+%define sha1 gettext=a2dc46d788edb0078ab20da7bd194bdb6da2f0d9
11 12
 %description
12 13
 These allow programs to be compiled with NLS
13 14
 (Native Language Support), enabling them to output
... ...
@@ -8,6 +8,7 @@ Group:		System Environment/Programming
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution:	Photon
10 10
 Source0:	https://www.kernel.org/pub/software/scm/git/%{name}-%{version}.tar.xz
11
+%define sha1 git=b0d38bf2161286f2039a9a2adb4c8f7e5308e824
11 12
 BuildRequires:  curl
12 13
 BuildRequires:	python2
13 14
 BuildRequires:	python2-libs
... ...
@@ -8,6 +8,7 @@ Group:		Applications/System
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution:	Photon
10 10
 Source0:	http://ftp.gnome.org/pub/gnome/sources/glib/2.42/%{name}-%{version}.tar.xz
11
+%define sha1 glib=f5168a7adffad3620ff3f1b3d6ff6d0ad3f0752e
11 12
 BuildRequires:	pcre-devel
12 13
 BuildRequires:	libffi
13 14
 BuildRequires:	pkg-config
... ...
@@ -11,6 +11,7 @@ Group:		Applications/System
11 11
 Vendor:		VMware, Inc.
12 12
 Distribution: 	Photon
13 13
 Source0:	http://ftp.gnu.org/gnu/glibc/%{name}-%{version}.tar.xz
14
+%define sha1 glibc=1157be3fe63baa81b7ba104a103337775a6ed06f
14 15
 Patch0:		glibc-2.21-fhs-1.patch
15 16
 Provides:	rtld(GNU_HASH)
16 17
 Requires:   filesystem
... ...
@@ -8,6 +8,7 @@ Group:		Applications/System
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution:	Photon
10 10
 Source0:	http://ftp.gnome.org/pub/GNOME/sources/glibmm/2.42/%{name}-%{version}.tar.xz
11
+%define sha1 glibmm=8f316a4dfdaf49366028087085f04c0ba29cb5c2
11 12
 BuildRequires:	python2 >= 2.7
12 13
 BuildRequires:	libsigc++
13 14
 BuildRequires:	glib-devel glib-schemas
... ...
@@ -8,6 +8,7 @@ Group:		Applications/System
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution:	Photon
10 10
 Source0:	http://ftp.gnu.org/gnu/gmp/%{name}-%{version}.tar.xz
11
+%define sha1 gmp=12cfe0911d64fcbd85835df9ddc18c99af8f9a45
11 12
 %description
12 13
 The GMP package contains math libraries. These have useful functions
13 14
 for arbitrary precision arithmetic.
... ...
@@ -5,6 +5,7 @@ Release:	1%{?dist}
5 5
 License:        GPLv3+ and LGPLv2+
6 6
 URL:            http://www.gnutls.org
7 7
 Source0:        http://ftp.heanet.ie/mirrors/ftp.gnupg.org/gcrypt/gnutls/v3.4/%{name}-%{version}.tar.xz
8
+%define sha1 gnutls=f29b4d763aee89c860aa5c54574778537239da08
8 9
 Group:		System Environment/Libraries
9 10
 Vendor:		VMware, Inc.
10 11
 Distribution:	Photon
... ...
@@ -17,6 +17,7 @@ Group:		System Environment/Security
17 17
 Vendor:		VMware, Inc.
18 18
 Distribution:	Photon
19 19
 Source0:	https://storage.googleapis.com/golang/%{name}%{version}.src.tar.gz
20
+%define sha1 go=b54b7deb7b7afe9f5d9a3f5dd830c7dede35393a
20 21
 BuildRequires:	mercurial
21 22
 Requires:	mercurial
22 23
 # We strip meta dependency, but go requires glibc.
... ...
@@ -8,6 +8,7 @@ Group:      	Development/Libraries
8 8
 License:    	GPLv2+, LGPLv2+, MIT
9 9
 URL:        	http://live.gnome.org/GObjectIntrospection
10 10
 Source0:    	%{name}-%{version}.tar.xz
11
+%define sha1 gobject-introspection=eb4db77dfb7bf26e25dbfc8d03eb38be7adfb7cc
11 12
 Vendor:		VMware, Inc.
12 13
 Distribution:	Photon
13 14
 BuildRequires:  gettext
... ...
@@ -6,6 +6,7 @@ License:	Apache License
6 6
 Group:		System Environment/Base
7 7
 URL:		https://github.com/GoogleCloudPlatform/compute-image-packages/
8 8
 Source0:	google-daemon-%{version}.tar.gz
9
+%define sha1 google-daemon=4cb51288268b09f4a5d07f43d83ca34e5b714383
9 10
 Vendor:		VMware, Inc.
10 11
 Distribution:	Photon
11 12
 Provides:	google-daemon
... ...
@@ -6,6 +6,7 @@ License:	Apache License
6 6
 Group:		System Environment/Base
7 7
 URL:		https://github.com/GoogleCloudPlatform/compute-image-packages/
8 8
 Source0:	google-startup-scripts-%{version}.tar.gz
9
+%define sha1 google-startup-scripts=2303d183a8e16f36b6ee5b5f0b8fc5e065bd0402
9 10
 Vendor:		VMware, Inc.
10 11
 Distribution:	Photon
11 12
 Provides:	google-startup-scripts
... ...
@@ -5,6 +5,7 @@ Release:	1%{?dist}
5 5
 License:	GPLv3+
6 6
 URL:		http://freedesktop.org/wiki/Software/%{name}l/
7 7
 Source0:	http://ftp.gnu.org/gnu/gperf/%{name}-%{version}.tar.gz
8
+%define sha1 gperf=e32d4aff8f0c730c9a56554377b2c6d82d0951b8
8 9
 Group:		Development/Tools
9 10
 Vendor:		VMware, Inc.
10 11
 Distribution: 	Photon
... ...
@@ -8,6 +8,7 @@ Group:		System Environment/Security
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution:	Photon
10 10
 Source0:	ftp://ftp.gnupg.org/gcrypt/%{name}/%{name}-%{version}.tar.bz2
11
+%define sha1 gpgme=8dd7711a4de117994fe2d45879ef8a9900d50f6a
11 12
 Requires:	libassuan
12 13
 Requires:	libgpg-error
13 14
 BuildRequires:	libgpg-error
... ...
@@ -8,6 +8,7 @@ Group:		System Environment/Filesystem and Disk management
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: Photon
10 10
 Source0:	http://downloads.sourceforge.net/project/gptfdisk/gptfdisk/0.8.10/gptfdisk-0.8.10.tar.gz
11
+%define sha1 gptfdisk=1708e232220236b6bdf299b315e9bc2205c01ba5
11 12
 Patch0:		http://www.linuxfromscratch.org/patches/blfs/systemd/gptfdisk-0.8.10-convenience-1.patch
12 13
 Requires: 	popt >= 1.16
13 14
 BuildRequires:	popt-devel
... ...
@@ -8,6 +8,7 @@ Group:		Applications/File
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: Photon
10 10
 Source0:		http://ftp.gnu.org/gnu/grep/%{name}-%{version}.tar.xz
11
+%define sha1 grep=c7e6525c5c5aaa1bc3c1774db1697f42b11c2d85
11 12
 Patch0:     out-of-bound-heap-read-CVE-2015-1345.patch
12 13
 %description
13 14
 The Grep package contains programs for searching through files.
... ...
@@ -8,6 +8,7 @@ Group:		Applications/Text
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: 	Photon
10 10
 Source0:	http://ftp.gnu.org/gnu/groff/%{name}-%{version}.tar.gz
11
+%define sha1 groff=37223941e25bb504bf54631daaabb01b147dc1d3
11 12
 %description
12 13
 The Groff package contains programs for processing
13 14
 and formatting text.
... ...
@@ -10,6 +10,7 @@ Group:		Applications/System
10 10
 Vendor:		VMware, Inc.
11 11
 Distribution: 	Photon
12 12
 Source0:	http://alpha.gnu.org/gnu/grub/grub-2.02~beta2.tar.gz
13
+%define sha1 grub=274d91e96b56a5b9dd0a07accff69dbb6dfb596b
13 14
 BuildRequires:	device-mapper-devel
14 15
 BuildRequires:	xz-devel
15 16
 Requires:	xz
... ...
@@ -5,6 +5,7 @@ Release:	2%{?dist}
5 5
 License:	GPLv2+
6 6
 URL:		http://www.gnu.org/software/%{name}
7 7
 Source0:	http://ftp.gnome.org/pub/gnome/sources/gtk-doc/1.21/%{name}-%{version}.tar.xz
8
+%define sha1 gtk-doc=49b4fc9d4cf618c53f39f35f4cf2fc27b7b3dae4
8 9
 Group:		Development/Tools
9 10
 Vendor:		VMware, Inc.
10 11
 Distribution:	Photon
... ...
@@ -5,6 +5,7 @@ Release:	1%{?dist}
5 5
 License: 	LGPLv3+
6 6
 URL:		http://www.gnu.org/software/guile/
7 7
 Source0: 	ftp://ftp.gnu.org/pub/gnu/guile/%{name}-%{version}.tar.gz
8
+%define sha1 guile=3cdd1c4956414bffadea13e5a1ca08949016a802
8 9
 Group: 		Development/Languages
9 10
 Vendor:		VMware, Inc.
10 11
 Distribution:	Photon
... ...
@@ -8,6 +8,7 @@ Group:		Applications/File
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: Photon
10 10
 Source0:		http://ftp.gnu.org/gnu/gzip/%{name}-%{version}.tar.xz
11
+%define sha1 gzip=05bd01fc90178b806e0c13f9526e2ad392084085
11 12
 %description
12 13
 The Gzip package contains programs for compressing and
13 14
 decompressing files.
... ...
@@ -10,6 +10,7 @@ Distribution:   Discus
10 10
 Group:          System Environment/Daemons
11 11
 URL:            http://www.irisa.fr/caps/projects/hipsor/
12 12
 Source0:        http://www.issihosts.com/haveged/%{name}-%{version}.tar.gz
13
+%define sha1 haveged=ab7234b7f57dbb7d500a5ab3cbf0494715ce6499
13 14
 Source1:        haveged.service
14 15
 Requires:       systemd
15 16
 
... ...
@@ -5,6 +5,7 @@ Release:	3%{?dist}
5 5
 License:	LGPLv2+
6 6
 URL:		http://fedoraproject.org/wiki/Features/Hawkey
7 7
 Source0:	https://github.com/rpm-software-management/hawkey/archive/%{name}-%{version}.tar.gz
8
+%define sha1 hawkey=4caad007e243d0fa3f4c2912bd393cc6b326b272
8 9
 Group:		Development/Libraries
9 10
 Vendor:		VMware, Inc.
10 11
 Distribution:	Photon
... ...
@@ -8,6 +8,7 @@ Group:      Applications/System
8 8
 Vendor:     VMware, Inc.
9 9
 Distribution: Photon
10 10
 Source0:        http://archive.apache.org/dist/httpd/%{name}-%{version}.tar.bz2
11
+%define sha1 httpd=bc4681bfd63accec8d82d3cc440fbc8264ce0f17
11 12
 BuildRequires: openssl
12 13
 BuildRequires: openssl-devel
13 14
 BuildRequires: pcre-devel
... ...
@@ -9,6 +9,7 @@ Vendor:		VMware, Inc.
9 9
 Distribution: 	Photon
10 10
 BuildArch:	noarch
11 11
 Source0:	http://anduin.linuxfromscratch.org/sources/LFS/lfs-packages/conglomeration//iana-etc/%{name}-%{version}.tar.bz2
12
+%define sha1 iana-etc=218593bcb9264014c4e397d838b2c218eac9df06
12 13
 %description
13 14
 The Iana-Etc package provides data for network services and protocols.
14 15
 %prep
... ...
@@ -8,6 +8,7 @@ Group:		Applications/Communications
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: Photon
10 10
 Source0:		http://ftp.gnu.org/gnu/inetutils/%{name}-%{version}.tar.gz
11
+%define sha1 inetutils=b5aa9902e3a82bfd6e75b9aa80b72111e5418447
11 12
 %description
12 13
 The Inetutils package contains programs for basic networking.
13 14
 %prep
... ...
@@ -5,6 +5,7 @@ Release:	1%{?dist}
5 5
 License:	GPLv2+
6 6
 URL:		http://freedesktop.org/wiki/Software/%{name}l/
7 7
 Source0:	http://launchpad.net/intltool/trunk/0.50.2/+download/%{name}-%{version}.tar.gz
8
+%define sha1 intltool=7fddbd8e1bf94adbf1bc947cbf3b8ddc2453f8ad
8 9
 Group:		Development/Tools
9 10
 Vendor:		VMware, Inc.
10 11
 Distribution:	Photon
... ...
@@ -8,6 +8,7 @@ Group:		Applications/System
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: 	Photon
10 10
 Source0:	http://www.kernel.org/pub/linux/utils/net/iproute2/%{name}-%{version}.tar.xz
11
+%define sha1 iproute2=9397376e5d4dcbb1182745cd58625895fcdb868d
11 12
 %description
12 13
 The IPRoute2 package contains programs for basic and advanced
13 14
 IPV4-based networking.
... ...
@@ -8,7 +8,9 @@ Group:		System Environment/Security
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: Photon
10 10
 Source0:	http://www.netfilter.org/projects/iptables/files/%{name}-%{version}.tar.bz2
11
+%define sha1 iptables=85d4160537546a23a7e42bc26dd7ee62a0ede4c8
11 12
 Source1:	http://www.linuxfromscratch.org/blfs/downloads/systemd/blfs-systemd-units-20140907.tar.bz2
13
+%define sha1 blfs-systemd-units=713afb3bbe681314650146e5ec412ef77aa1fe33
12 14
 Source2:	iptable_rules
13 15
 Patch1:		blfs_systemd_fixes.patch
14 16
 %description
... ...
@@ -5,6 +5,7 @@ Release:	2%{?dist}
5 5
 License:	GPLv3+
6 6
 URL:		http://itstool.org
7 7
 Source0:	http://files.itstool.org/itstool/%{name}-%{version}.tar.bz2
8
+%define sha1 itstool=5084a2cecca8d70d184f22d2aecf5e2cb715917f
8 9
 Group:		Development/Tools
9 10
 Vendor:		VMware, Inc.
10 11
 Distribution:	Photon
... ...
@@ -9,6 +9,7 @@ Vendor:		VMware, Inc.
9 9
 Distribution: 	Photon
10 10
 BuildArch:      noarch
11 11
 Source0:	http://jax-ws.java.net/2.2.5/%{name}-%{version}.tar.gz
12
+%define sha1 jaxws-ri=b48b4592bd75991838d1ec003158f6b4ae05ebff
12 13
 Requires: openjdk >= 1.8.0.45
13 14
 
14 15
 %define _prefix /opt/%{name}-%{version}
... ...
@@ -9,6 +9,7 @@ Vendor:		VMware, Inc.
9 9
 Distribution: 	Photon
10 10
 BuildArch:      x86_64
11 11
 Source0:	http://dl.bintray.com/vmware/photon_release_1.0_TP1_x86_64/%{name}-%{version}.tar.gz
12
+%define sha1 jna=c520c1be533619d3cbc3ad448d49a8f24ee60bda
12 13
 Requires: openjdk >= 1.8.0.45
13 14
 BuildRequires: openjdk >= 1.8.0.45, apache-ant >= 1.9.4
14 15
 
... ...
@@ -5,6 +5,7 @@ Release:	1%{?dist}
5 5
 License:        MIT
6 6
 URL:            https://github.com/json-c/json-c/wiki
7 7
 Source0:        https://s3.amazonaws.com/json-c_releases/releases/json-c-0.12.tar.gz
8
+%define sha1 json-c=5580aad884076c219d41160cbd8bc12213d12c37
8 9
 Group:		System Environment/Base
9 10
 Vendor:		VMware, Inc.
10 11
 Distribution:	Photon
... ...
@@ -5,6 +5,7 @@ Release:    	3%{?dist}
5 5
 License:    	LGPLv2+
6 6
 Group:      	Development/Libraries
7 7
 Source0:    	http://ftp.gnome.org/pub/GNOME/sources/json-glib/1.0/%{name}-%{version}.tar.xz
8
+%define sha1 json-glib=e3bca16e0c9985a74ee95084ce86af18b31678b1
8 9
 URL:        	http://live.gnome.org/JsonGlib
9 10
 Vendor:		VMware, Inc.
10 11
 Distribution:	Photon
... ...
@@ -8,6 +8,7 @@ Group:		Applications/System
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution:	Photon
10 10
 Source0:	http://ftp.altlinux.org/pub/people/legion/kbd/%{name}-%{version}.tar.gz
11
+%define sha1 kbd=8d7d6f9fc95d8abb80156da0713a4cbc0dbfda97
11 12
 Patch0:		kbd-2.0.1-backspace-1.patch
12 13
 BuildRequires:	check >= 0.9.4
13 14
 %description
... ...
@@ -8,6 +8,7 @@ Group:		Applications/System
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution:	Photon
10 10
 Source0:	http://www.kernel.org/pub/linux/utils/kernel/kmod/%{name}-%{version}.tar.xz
11
+%define sha1 kmod=1b3e8066208098b3b9593b63bff5838a41bbdfb0
11 12
 BuildRequires:	xz-devel
12 13
 Requires:	xz
13 14
 %description
... ...
@@ -8,6 +8,7 @@ Group:		System Environment/Security
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution:	Photon
10 10
 Source0:	http://web.mit.edu/kerberos/www/dist/%{name}/%{version}/%{name}-%{version}.tar.gz
11
+%define sha1 krb5=6f24800d48d36a33305387a9b6340884b05573b1
11 12
 Requires:	openssl
12 13
 Requires:	e2fsprogs-devel
13 14
 BuildRequires: 	openssl-devel
... ...
@@ -8,7 +8,9 @@ Release:	1%{?dist}
8 8
 License:	ASL 2.0
9 9
 URL:		https://github.com/GoogleCloudPlatform/kubernetes
10 10
 Source0:	https://github.com/GoogleCloudPlatform/kubernetes/releases/download/v0.12.0/%{name}.tar.gz
11
+%define sha1 kubernetes.tar.gz=10d85777784f901a7476e642e7bab1776a834900
11 12
 Source1:	https://github.com/GoogleCloudPlatform/kubernetes/archive/%{commit}/kubernetes-ecca426.tar.gz
13
+%define sha1 kubernetes-ecca426=20cab37ca8ec5eddc0e530e5ce683ee6e8e5bb58
12 14
 Group:		Development/Tools
13 15
 Vendor:		VMware, Inc.
14 16
 Distribution: 	Photon
... ...
@@ -8,6 +8,7 @@ Group:		Applications/File
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution:	Photon
10 10
 Source0:	http://www.greenwoodsoftware.com/less/%{name}-%{version}.tar.gz
11
+%define sha1 less=d5b07180d3dad327ccc8bc66818a31577e8710a2
11 12
 BuildRequires:	ncurses-devel
12 13
 Requires:	ncurses
13 14
 %description
... ...
@@ -7,6 +7,7 @@ Group:		System Environment/Libraries
7 7
 Vendor:		VMware, Inc.
8 8
 Distribution:	Photon
9 9
 Source0:	https://fedorahosted.org/releases/l/i/libaio/libaio-0.3.110.tar.gz
10
+%define sha1 libaio=f8f6ed15f22e528f6f415939b07854539e3360e4
10 11
 Patch0:		libaio-install-to-destdir-slash-usr.patch
11 12
 
12 13
 %description
... ...
@@ -8,6 +8,7 @@ Group:      System Environment/Development
8 8
 Vendor:     VMware, Inc.
9 9
 Distribution:   Photon
10 10
 Source0:    http://www.libarchive.org/downloads/%{name}-%{version}.tar.gz
11
+%define sha1 libarchive=6a991777ecb0f890be931cec4aec856d1a195489
11 12
 
12 13
 %description
13 14
 Multi-format archive and compression library
... ...
@@ -8,6 +8,7 @@ Group:		Development/Libraries
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution:	Photon
10 10
 Source0:	ftp://ftp.gnupg.org/gcrypt/%{name}/%{name}-%{version}.tar.bz2
11
+%define sha1 libassuan=7cf0545955ce414044bb99b871d324753dd7b2e5
11 12
 Requires:	libgpg-error >= 1.17
12 13
 BuildRequires:	libgpg-error >= 1.17
13 14
 %description
... ...
@@ -5,6 +5,7 @@ Release:	1%{?dist}
5 5
 License:	GPLv2+
6 6
 URL:		https://www.gnu.org/software/hurd/community/gsoc/project_ideas/libcap.html
7 7
 Source0:	https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/%{name}-%{version}.tar.xz
8
+%define sha1 libcap=b2754cddb614567de445ffdaac7a00b9671b858a
8 9
 Group:		System Environment/Security
9 10
 Vendor:		VMware, Inc.
10 11
 Distribution:	Photon
... ...
@@ -8,6 +8,7 @@ Group:		Applications/System
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution:	Photon
10 10
 Source0:	http://prdownloads.sourceforge.net/libdnet/%{name}-%{version}.tar.gz
11
+%define sha1 libdnet=e2ae8c7f0ca95655ae9f77fd4a0e2235dc4716bf
11 12
 %description
12 13
 libdnet provides a simplified, portable interface to several low-level networking routines.
13 14
 %prep
... ...
@@ -5,6 +5,7 @@ Release:	1%{?dist}
5 5
 License:	LGPLv2+
6 6
 URL:		http://libestr.adiscon.com/
7 7
 Source0:	http://libestr.adiscon.com/files/download/%{name}-%{version}.tar.gz
8
+%define sha1 libestr=35cc717f5ae737a28140dd1472e13ce2ec317c6c
8 9
 Group:		System Environment/Base
9 10
 Vendor:		VMware, Inc.
10 11
 Distribution:	Photon
... ...
@@ -8,6 +8,7 @@ Group:		System Environment/GeneralLibraries
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: 	Photon
10 10
 Source0:	ftp://sourceware.org/pub/libffi/%{name}-%{version}.tar.gz
11
+%define sha1 libffi=cb373ef2115ec7c57913b84ca72eee14b10ccdc3
11 12
 Provides:	pkgconfig(libffi)
12 13
 %description
13 14
 The libffi library provides a portable, high level programming interface
... ...
@@ -5,6 +5,7 @@ Release:	1%{?dist}
5 5
 License:        GPLv2+ and LGPLv2+
6 6
 URL:            http://www.gnu.org/software/libgcrypt/
7 7
 Source0:        ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.6.3.tar.bz2
8
+%define sha1 libgcrypt=9456e7b64db9df8360a1407a38c8c958da80bbf1
8 9
 Group:		System Environment/Libraries
9 10
 Vendor:		VMware, Inc.
10 11
 BuildRequires:	libgpg-error
... ...
@@ -7,6 +7,7 @@ License:      	GPLv2+
7 7
 URL:          	ftp://ftp.gnupg.org/gcrypt/alpha/libgpg-error/
8 8
 Group:		Development/Libraries
9 9
 Source0:	ftp://ftp.gnupg.org/gcrypt/alpha/libgpg-error/%{name}-%{version}.tar.bz2
10
+%define sha1 libgpg-error=ba5858b2947e7272dd197c87bac9f32caf29b256
10 11
 Vendor:		VMware, Inc.
11 12
 Distribution:	Photon
12 13
 
... ...
@@ -4,6 +4,7 @@ Version:	2015.1
4 4
 Release:	1%{?dist}
5 5
 Group:		Development/Libraries
6 6
 Source0:	http://ftp.gnome.org/pub/GNOME/sources/libgsystem/%{version}/%{name}-%{version}.tar.xz
7
+%define sha1 libgsystem=9b14593c87a386d2d3c01490ba126047aa6eba30
7 8
 License:	LGPLv2+
8 9
 URL:		https://wiki.gnome.org/Projects/LibGSystem
9 10
 Vendor:		VMware, Inc.
... ...
@@ -8,6 +8,7 @@ Release:   	1%{?dist}
8 8
 License:   	LGPLv2+
9 9
 URL:       	https://github.com/hughsie/libhif
10 10
 Source0:   	http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.gz
11
+%define sha1 libhif=7de667ee0a26f448c5a0c9f56dc5c304d7c282aa
11 12
 Vendor:		VMware, Inc.
12 13
 Distribution:	Photon
13 14
 
... ...
@@ -5,6 +5,7 @@ Release:	1%{?dist}
5 5
 License: 	BSD
6 6
 URL:     	http://www.liblogging.org/
7 7
 Source0: 	http://download.rsyslog.com/liblogging/liblogging-%{version}.tar.gz
8
+%define sha1 liblogging=e202bf9412747ecd384678e8b3024a4646d45c2f
8 9
 Group:		System Environment/Libraries
9 10
 Vendor:		VMware, Inc.
10 11
 Distribution:	Photon
... ...
@@ -8,6 +8,7 @@ Group:		Applications/System
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution:	Photon
10 10
 Source0:	http://www.cabextract.org.uk/libmspack/%{name}-%{version}.tar.gz
11
+%define sha1 libmspack=b10249bde64ca387b211fd0bd125fc360377593c
11 12
 %description
12 13
 A library that provides compression and decompression of file formats used by Microsoft
13 14
 %prep
... ...
@@ -5,6 +5,7 @@ Release:	1%{?dist}
5 5
 License:	LGPLv2+
6 6
 URL:		http://www.libndp.org/
7 7
 Source:		http://www.libndp.org/files/%{name}-%{version}.tar.gz
8
+%define sha1 libndp=9e7c371d9e72f2bcbb922c1041880aba5ae386dc
8 9
 Group:		System Environment/Libraries
9 10
 
10 11
 %description
... ...
@@ -6,6 +6,7 @@ License: 	LGPLv2+
6 6
 Group: 		System Environment/Libraries
7 7
 URL:		http://www.infradead.org/~tgr/libnl/
8 8
 Source0:	http://www.infradead.org/~tgr/libnl/files/%{name}-%{version}.tar.gz
9
+%define sha1 libnl=b7a4981f7edf7398256d35fd3c0b87bc84ae27d1
9 10
 Vendor:		VMware, Inc.
10 11
 Distribution:	Photon
11 12
 BuildRequires:	glib-devel
... ...
@@ -5,6 +5,7 @@ Release:	1%{?dist}
5 5
 License:	BSD
6 6
 URL:		http://www.tcpdump.org
7 7
 Source0:	http://www.tcpdump.org/release/%{name}-%{version}.tar.gz
8
+%define sha1 libpcap=97aed0270bc201dfdeacccddc61179d27c68e42c
8 9
 Group:		Networking/Libraries
9 10
 Vendor:		VMware, Inc.
10 11
 Distribution: 	Photon
... ...
@@ -8,6 +8,7 @@ Group:		Applications/System
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: 	Photon
10 10
 Source0:	http://download.savannah.gnu.org/releases/libpipeline/%{name}-%{version}.tar.gz
11
+%define sha1 libpipeline=467d5eec21cf2f959c15866da76fcd50b7d02d64
11 12
 %description
12 13
 Contains a library for manipulating pipelines of sub processes
13 14
 in a flexible and convenient way.
... ...
@@ -5,6 +5,7 @@ Release:	1%{?dist}
5 5
 License:	GPLv3+
6 6
 URL:		http://www.librelp.com
7 7
 Source0:	http://download.rsyslog.com/librelp/%{name}-%{version}.tar.gz
8
+%define sha1 librelp=060097280a8f5ff3365c3455c9f12eddaa72dc10
8 9
 Group:		System Environment/Libraries
9 10
 Vendor:		VMware, Inc.
10 11
 Distribution:	Photon
... ...
@@ -10,6 +10,7 @@ License:       	LGPLv2+
10 10
 URL:           	https://github.com/Tojaj/librepo/
11 11
 Group:         	System Environment/Libraries
12 12
 Source0:       	%{name}-%{version}.tar.gz
13
+%define sha1 librepo=a753212f721be8782c8c3aa40e450247676b7649
13 14
 Vendor:		VMware, Inc.
14 15
 Distribution:	Photon
15 16
 Requires:	curl, gpgme, libassuan, libgpg-error
... ...
@@ -6,6 +6,7 @@ Release:	1%{?dist}
6 6
 License:	Public Domain
7 7
 Group:		System Environment/Libraries
8 8
 Source0:	https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20150202/%{name}-%{version}.tar.gz
9
+%define sha1 libselinux=bc424260dee281b3853ca4fcb2af6e8362b475b1
9 10
 Url:		https://github.com/SELinuxProject/selinux/wiki
10 11
 Vendor:		VMware, Inc.
11 12
 Distribution:	Photon
... ...
@@ -5,6 +5,7 @@ Release:	1%{?dist}
5 5
 License:	LGPLv2+
6 6
 Group:		System Environment/Libraries
7 7
 Source0:	https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20150202/%{name}-%{version}.tar.gz
8
+%define sha1 libsepol=9946b1ab2f2d64edf7c4beaaf098bd916b3a7fd2
8 9
 URL:		http://www.selinuxproject.org
9 10
 Vendor:		VMware, Inc.
10 11
 Distribution:	Photon
... ...
@@ -8,6 +8,7 @@ Group:		Applications/System
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution:	Photon
10 10
 Source0:	http://ftp.gnome.org/pub/GNOME/sources/libsigc++/2.4/%{name}-%{version}.tar.xz
11
+%define sha1 libsigc=74f992ce5714e9f9d63ab698b48d79a65c0cd5be
11 12
 %description
12 13
 My lib
13 14
 %prep
... ...
@@ -5,6 +5,7 @@ Release:	2%{?dist}
5 5
 License:	BSD
6 6
 URL:		http://www.cmake.org/
7 7
 Source0:	https://github.com/openSUSE/libsolv/archive/%{name}-%{version}.tar.gz
8
+%define sha1 libsolv=dca7ddcc42932a87c5a22196c50cad549f16e414
8 9
 Group:		Development/Tools
9 10
 Vendor:		VMware, Inc.
10 11
 Distribution:	Photon
... ...
@@ -8,6 +8,7 @@ Group:      System Environment/Development
8 8
 Vendor:     VMware, Inc.
9 9
 Distribution:   Photon
10 10
 Source0:    http://ftp.gnome.org/pub/GNOME/sources/libsoup/2.50/%{name}-%{version}.tar.xz
11
+%define sha1 libsoup=8bd422bd5d19b5e2630bbb35dfb06354b1d56442
11 12
 BuildRequires:   glib
12 13
 BuildRequires:   glib-devel
13 14
 BuildRequires:   gobject-introspection
... ...
@@ -5,6 +5,7 @@ Release:	1%{?dist}
5 5
 License:	GPLv3+ and LGPLv2+
6 6
 URL:		http://www.gnu.org/software/libtasn1/
7 7
 Source0:	http://ftp.gnu.org/gnu/libtasn1/%{name}-%{version}.tar.gz
8
+%define sha1 libtasn1=7d648928729ffd38de84fac8b94d3ae0558de472
8 9
 Group:		System Environment/Libraries
9 10
 Vendor:		VMware, Inc.
10 11
 Distribution:	Photon
... ...
@@ -8,6 +8,7 @@ Group:		Development/Tools
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: Photon
10 10
 Source0:		http://ftp.gnu.org/gnu/libtool/%{name}-%{version}.tar.gz
11
+%define sha1 libtool=22b71a8b5ce3ad86e1094e7285981cae10e6ff88
11 12
 %description
12 13
 It wraps the complexity of using shared libraries in a 
13 14
 consistent, portable interface.
... ...
@@ -5,6 +5,7 @@ Release: 	1%{?dist}
5 5
 License:	LGPLv3+
6 6
 Url:		http://www.gnu.org/software/libunistring/
7 7
 Source0:	http://ftp.gnu.org/gnu/libunistring/%{name}-%{version}.tar.xz
8
+%define sha1 libunistring=ccb81e629380385d682b71c8e96eba4a7ef43af7
8 9
 Group:		System Environment/Libraries
9 10
 Vendor:		VMware, Inc.
10 11
 Distribution:	Photon
... ...
@@ -8,6 +8,7 @@ Group:		System Environment/General Libraries
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: 	Photon
10 10
 Source0:	http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/%{name}-%{version}.tar.gz
11
+%define sha1 libxml2=eb3e2146c6d68aea5c2a4422ed76fe196f933c21
11 12
 Requires:	python2
12 13
 BuildRequires:	python2-devel
13 14
 BuildRequires:	python2-libs
... ...
@@ -8,6 +8,7 @@ Group:		System Environment/General Libraries
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: 	Photon
10 10
 Source0:	http://xmlsoft.org/sources/%{name}-%{version}.tar.gz
11
+%define sha1 libxslt=4df177de629b2653db322bfb891afa3c0d1fa221
11 12
 Requires:	libxml2-devel
12 13
 BuildRequires:	libxml2-devel
13 14
 BuildRequires:	python2
... ...
@@ -7,6 +7,7 @@ Group: Development/Libraries
7 7
 URL: http://pyyaml.org/wiki/LibYAML
8 8
 
9 9
 Source0: http://pyyaml.org/download/libyaml/yaml-%{version}.tar.gz
10
+%define sha1 yaml=f3d404e11bec3c4efcddfd14c42d46f1aabe0b5d
10 11
 
11 12
 %description
12 13
 LibYAML is a C library implementation of a YAML 1.1 parser and emitter.
... ...
@@ -8,6 +8,7 @@ Group:		System Environment/Kernel
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: Photon
10 10
 Source0:	http://www.kernel.org/pub/linux/kernel/v3.x/linux-%{version}.tar.xz
11
+%define sha1 linux=10a25ca5b6d93db78adc9caf13f7ad7cb4b79c61
11 12
 BuildArch:	noarch
12 13
 %description
13 14
 The Linux API Headers expose the kernel's API for use by Glibc.
... ...
@@ -11,8 +11,10 @@ Group:        System Environment/Kernel
11 11
 Vendor:        VMware, Inc.
12 12
 Distribution: Photon
13 13
 Source0:    http://www.kernel.org/pub/linux/kernel/v3.x/%{name}-%{version}.tar.xz
14
+%define sha1 linux=10a25ca5b6d93db78adc9caf13f7ad7cb4b79c61
14 15
 #Source1:    config-%{version}-generic.amd64
15 16
 Source1:    http://downloads.sourceforge.net/project/open-vm-tools/open-vm-tools/stable-9.10.0/open-vm-tools-9.10.0.tar.gz
17
+%define sha1 open-vm-tools=958c40c8038d52947680444f507f693825d358be
16 18
 Patch0:        vmhgfs_fix_3.19.patch
17 19
 BuildRequires:    bc
18 20
 BuildRequires:    kbd
... ...
@@ -5,6 +5,7 @@ Release:	1%{?dist}
5 5
 License:	GPL+
6 6
 URL:		https://fedorahosted.org/logrotate
7 7
 Source0:	https://fedorahosted.org/releases/l/o/logrotate/%{name}-%{version}.tar.gz
8
+%define sha1 logrotate=7ba734cd1ffa7198b66edc4bca17a28ea8999386
8 9
 Group:		System Environment/Base
9 10
 Vendor:		VMware, Inc.
10 11
 Distribution:	Photon
... ...
@@ -8,6 +8,7 @@ Group:		Development/Tools
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: Photon
10 10
 Source0:	ttp://www.lua.org/ftp/%{name}-%{version}.tar.gz
11
+%define sha1 lua=926b7907bc8d274e063d42804666b40a3f3c124c
11 12
 Patch0:		lua-5.2.3-shared_library-1.patch
12 13
 BuildRequires:	readline-devel
13 14
 Requires:	readline
... ...
@@ -8,6 +8,7 @@ URL:		http://sources.redhat.com/dm
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution:	Photon
10 10
 Source0:	ftp://sources.redhat.com/pub/lvm2/releases/LVM2.%{version}.tgz
11
+%define sha1 LVM2=5bd2f4c33cdf93e580ea5b8a64bc32cd77be078e
11 12
 Patch0:		lvm2-set-default-preferred_names.patch
12 13
 Patch1:		lvm2-enable-lvmetad-by-default.patch
13 14
 Patch2:		lvm2-remove-mpath-device-handling-from-udev-rules.patch
... ...
@@ -6,6 +6,7 @@ Group:          System Environment/Libraries
6 6
 License:        GPLv2+
7 7
 URL:            http://www.oberhumer.com/opensource/lzo/
8 8
 Source0:        http://www.oberhumer.com/opensource/lzo/download/%{name}-%{version}.tar.gz
9
+%define sha1 lzo=e2a60aca818836181e7e6f8c4f2c323aca6ac057
9 10
 Vendor:		VMware, Inc.
10 11
 Distribution:	Photon
11 12
 BuildRequires:  zlib-devel
... ...
@@ -8,6 +8,7 @@ Group:		Development/Tools
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: 	Photon
10 10
 Source0:	http://ftp.gnu.org/gnu/m4/%{name}-%{version}.tar.xz
11
+%define sha1 m4=74ad71fa100ec8c13bc715082757eb9ab1e4bbb0
11 12
 %description
12 13
 The M4 package contains a macro processor
13 14
 %prep
... ...
@@ -8,6 +8,7 @@ Group:		Development/Tools
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: 	Photon
10 10
 Source0:	http://ftp.gnu.org/gnu/make/%{name}-%{version}.tar.bz2
11
+%define sha1 make=c819622dc84e2290c351646b8a0ec4df0df12bb6
11 12
 %description
12 13
 The Make package contains a program for compiling packages.
13 14
 %prep
... ...
@@ -8,6 +8,7 @@ Group:		Applications/System
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: Photon
10 10
 Source0:		%{name}-%{version}.tar.xz
11
+%define sha1 man-db=ba27924ef024527ad562017d956ffd3375bccc8d
11 12
 Requires:	libpipeline
12 13
 Requires:	gdbm
13 14
 Requires:	xz
... ...
@@ -8,6 +8,7 @@ Group:		System Environment/Base
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: 	Photon
10 10
 Source0:	http://www.kernel.org/pub/linux/docs/man-pages/%{name}-%{version}.tar.xz
11
+%define sha1 man-pages=76eae3fb069a6df2195081408e7ea2784722385b
11 12
 BuildArch:	noarch
12 13
 %description
13 14
 The Man-pages package contains over 1,900 man pages.
... ...
@@ -8,6 +8,7 @@ Group:		System Environment/Security
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: Photon
10 10
 Source0:	http://mercurial.selenic.com/release/%{name}-%{version}.tar.gz
11
+%define sha1 mercurial=ae7e16454cee505da895c2497f09711f35287459
11 12
 BuildRequires:	python2-devel
12 13
 BuildRequires:	python2-libs
13 14
 Requires:	python2
... ...
@@ -8,6 +8,7 @@ Group:      System Environment/Development
8 8
 Vendor:     VMware, Inc.
9 9
 Distribution:   Photon
10 10
 Source0:    https://projects.archlinux.org/mkinitcpio.git/snapshot/%{name}-%{version}.tar.gz
11
+%define sha1 mkinitcpio=0e124990118d170f6852efe46d889b5adae6dfd6
11 12
 BuildRequires: asciidoc
12 13
 BuildRequires: python2-libs
13 14
 BuildRequires: docbook-xsl
... ...
@@ -8,6 +8,7 @@ Group:		Applications/System
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: Photon
10 10
 Source0:		http://www.multiprecision.org/mpc/download/%{name}-%{version}.tar.gz
11
+%define sha1 mpc=5072d82ab50ec36cc8c0e320b5c377adb48abe70
11 12
 %description
12 13
 The MPC package contains a library for the arithmetic of complex
13 14
 numbers with arbitrarily high precision and correct rounding of
... ...
@@ -8,6 +8,7 @@ Group:		Applications/System
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: Photon
10 10
 Source0:		http://www.mpfr.org/%{name}-%{version}/%{name}-%{version}.tar.xz
11
+%define sha1 mpfr=03e593cc6e26639ef5e60be1af8dc527209e5172
11 12
 %description
12 13
 The MPFR package contains functions for multiple precision math.
13 14
 %package	devel
... ...
@@ -6,6 +6,7 @@ License:	GPLv3+
6 6
 URL:		http://www.nano-editor.org/
7 7
 Group:		Applications/Editors
8 8
 Source0:	http://www.nano-editor.org/dist/v2.2/%{name}-%{version}.tar.gz
9
+%define sha1 nano=f2a628394f8dda1b9f28c7e7b89ccb9a6dbd302a
9 10
 Vendor:		VMware, Inc.
10 11
 Distribution:	Photon
11 12
 BuildRequires:	ncurses-devel
... ...
@@ -8,6 +8,7 @@ Group:		Applications/System
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: 	Photon
10 10
 Source0:	ftp://ftp.gnu.org/gnu/ncurses/%{name}-%{version}.tar.gz
11
+%define sha1 ncurses=3e042e5f2c7223bffdaac9646a533b8c758b65b5
11 12
 %description
12 13
 The Ncurses package contains libraries for terminal-independent
13 14
 handling of character screens.
... ...
@@ -5,6 +5,7 @@ Release:	1%{?dist}
5 5
 License:	LGPLv3+ or GPLv2+
6 6
 URL:            http://www.lysator.liu.se/~nisse/nettle/
7 7
 Source0: 	https://ftp.gnu.org/gnu/nettle/%{name}-%{version}.tar.gz
8
+%define sha1 nettle=1836601393522124787e029466935408e22dd204
8 9
 Group: 		Development/Libraries
9 10
 Vendor:		VMware, Inc.
10 11
 Distribution:	Photon
... ...
@@ -8,6 +8,7 @@ Group:		Applications/System
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: Photon
10 10
 Source0:		http://ftp.mozilla.org/pub/mozilla.org/%{name}/releases/v%{version}/src/%{name}-%{version}.tar.gz
11
+%define sha1 nspr=c87c6a10e0e36866006b45c194d70cd8c67d0934
11 12
 %description
12 13
 Netscape Portable Runtime (NSPR) provides a platform-neutral API
13 14
 for system level and libc like functions.
... ...
@@ -8,6 +8,7 @@ Group:		Applications/System
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: Photon
10 10
 Source0:	https://github.com/aperezdc/nss-altfiles/archive/%{name}-%{version}.tar.gz
11
+%define sha1 nss-altfiles=1dbe12033c0d166a509c267a21995c9d29b919f8
11 12
 BuildRequires: glibc-devel
12 13
 
13 14
 %description
... ...
@@ -8,6 +8,7 @@ Group:		Applications/System
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution:	Photon
10 10
 Source0:	%{name}-%{version}.tar.gz
11
+%define sha1 nss=5c344b28abe7e0529d58373c5005ccfc66869716
11 12
 Patch:		nss-3.19-standalone-1.patch
12 13
 Requires:	nspr
13 14
 Requires:	sqlite-autoconf
... ...
@@ -8,7 +8,9 @@ Group:		System Environment/NetworkingPrograms
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: 	Photon
10 10
 Source0:	http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/%{name}-%{version}.tar.gz
11
+%define sha1 ntp=4a5353a4791b6f4315a66c28d504ec6c7926b192
11 12
 Source1:	http://www.linuxfromscratch.org/blfs/downloads/svn/blfs-bootscripts-20140919.tar.bz2
13
+%define sha1 blfs-bootscripts=762b68f79f84463a6b1dabb69e9dbdc2c43f32d8
12 14
 Requires:	libcap >= 2.24
13 15
 BuildRequires:	which
14 16
 BuildRequires:	libcap
... ...
@@ -8,7 +8,9 @@ Group:		Applications/System
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution:	Photon
10 10
 Source0:	http://downloads.sourceforge.net/project/open-vm-tools/open-vm-tools/stable-9.10.0/%{name}-%{version}.tar.gz
11
+%define sha1 open-vm-tools=958c40c8038d52947680444f507f693825d358be
11 12
 Source1:        gosc-scripts.tar.gz
13
+%define sha1 gosc-scripts=a87bb5b95f78923ac6053513b3364a119795a5d0
12 14
 Patch0:		open-vm-tools-strerror_r-fix.patch
13 15
 Patch1:		open-vm-tools-service-link.patch
14 16
 Patch2:         open-vm-tools-GOSC-photon.patch
... ...
@@ -10,6 +10,7 @@ Vendor:		VMware, Inc.
10 10
 Distribution:   Photon
11 11
 AutoReqProv: 	no
12 12
 Source0:	http://anduin.linuxfromscratch.org/files/BLFS/OpenJDK-%{version}/OpenJDK-%{version}-x86_64-bin.tar.xz
13
+%define sha1 OpenJDK=d9a073768d2ba66560ecccf46a5466d58ee0524f
13 14
 %description
14 15
 The OpenJDK package installs java class library and javac java compiler. 
15 16
 
... ...
@@ -9,7 +9,9 @@ Group:		System Environment/Security
9 9
 Vendor:		VMware, Inc.
10 10
 Distribution:	Photon
11 11
 Source0:	ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/openldap-2.4.40.tgz
12
+%define sha1 openldap=0cfac3b024b99de2e2456cc7254481b6644e0b96
12 13
 Source1:	http://www.linuxfromscratch.org/blfs/downloads/svn/blfs-bootscripts-20140919.tar.bz2
14
+%define sha1 blfs-bootscripts=762b68f79f84463a6b1dabb69e9dbdc2c43f32d8
13 15
 Patch0:		openldap-2.4.40-blfs_paths-1.patch
14 16
 Patch1:		openldap-2.4.40-symbol_versions-1.patch
15 17
 Patch2:		openldap-2.4.40-gssapi-1.patch
... ...
@@ -8,7 +8,9 @@ Group:		System Environment/Security
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: Photon
10 10
 Source0:	http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/%{name}-%{version}.tar.gz
11
+%define sha1 openssh=b850fd1af704942d9b3c2eff7ef6b3a59b6a6b6e
11 12
 Source1:	http://www.linuxfromscratch.org/blfs/downloads/systemd/blfs-systemd-units-20140907.tar.bz2
13
+%define sha1 blfs-systemd-units=713afb3bbe681314650146e5ec412ef77aa1fe33
12 14
 Patch1:		blfs_systemd_fixes.patch
13 15
 Requires:	openssl
14 16
 Requires:	Linux-PAM
... ...
@@ -8,6 +8,7 @@ Group:		System Environment/Security
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution:	Photon
10 10
 Source0:	http://www.openssl.org/source/%{name}-%{version}.tar.gz
11
+%define sha1 openssl=46ecd325b8e587fa491f6bb02ad4a9fb9f382f5f
11 12
 Patch0:		openssl-1.0.2a-fix_parallel_build-1.patch
12 13
 %description
13 14
 The OpenSSL package contains management tools and libraries relating
... ...
@@ -3,6 +3,7 @@ Name:		ostree
3 3
 Version:	2015.7
4 4
 Release:	2%{?dist}
5 5
 Source0:	http://ftp.gnome.org/pub/GNOME/sources/ostree/%{version}/%{name}-%{version}.tar.gz
6
+%define sha1 ostree=baa502aa46363cd4828d257fb87f5e18a7ed000a
6 7
 Source1:	91-ostree.preset
7 8
 #Patch0:		ostree_syntax_error_fix.patch
8 9
 License:	LGPLv2+
... ...
@@ -9,6 +9,7 @@ Vendor:         VMware, Inc.
9 9
 Distribution:   Photon
10 10
 
11 11
 Source0: http://openvswitch.org/releases/%{name}-%{version}.tar.gz
12
+%define sha1 openvswitch=ef8854781265a7e3ea80b5070db6cac2dff704d5
12 13
 Requires: openssl
13 14
 BuildRequires: openssl openssl-devel python2 python2-devel
14 15
 BuildRequires:  python2
... ...
@@ -8,6 +8,7 @@ Group:		Applications/System
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution:	Photon
10 10
 Source0:	http://ftp.gnu.org/gnu/parted/%{name}-%{version}.tar.xz
11
+%define sha1 parted=8cabb2d6789badec15c857dcc003d0dd931a818b
11 12
 %description
12 13
 My lib
13 14
 %prep
... ...
@@ -5,6 +5,7 @@ Release:	1%{?dist}
5 5
 License:	GPLv3+
6 6
 URL:		http://www.gnu.org/software/%{name}
7 7
 Source0:	ftp://ftp.gnu.org/gnu/patch/%{name}-%{version}.tar.xz
8
+%define sha1 patch=433184d0ca43770f28b3de1d5e9da518a7ac7c50
8 9
 Group:		Development/Tools
9 10
 Vendor:		VMware, Inc.
10 11
 Distribution: 	Photon
... ...
@@ -8,6 +8,7 @@ Group:		Applications/System
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution:	Photon
10 10
 Source0:	ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/%{name}-%{version}.tar.gz
11
+%define sha1 pcre=fb537757756818133d8157ec878bc11f5a93ef4d
11 12
 BuildRequires:	bzip2-devel
12 13
 BuildRequires:	readline-devel
13 14
 Requires:       libgcc
... ...
@@ -7,6 +7,7 @@ Group:          Development/Libraries
7 7
 License:        GPL+ or Artistic
8 8
 URL:            http://search.cpan.org/dist/Config-IniFiles/
9 9
 Source0:        http://www.cpan.org/authors/id/S/SH/SHLOMIF/Config-IniFiles-%{version}.tar.gz
10
+%define sha1 Config-IniFiles=a84bf7ec97ffb79558b8fa5eef7b32e361ebcd15
10 11
 Vendor:		VMware, Inc.
11 12
 Distribution:	Photon
12 13
 BuildArch:      noarch
... ...
@@ -7,6 +7,7 @@ Group:          Development/Libraries
7 7
 License:        (GPL+ or Artistic) and Public Domain
8 8
 URL:            http://search.cpan.org/dist/DBD-SQLite/
9 9
 Source0:        http://search.cpan.org/CPAN/authors/id/I/IS/ISHIGAKI/DBD-SQLite-%{version}.tar.gz
10
+%define sha1 DBD-SQLite=1210af99d7010b315e4c4de9fb895ac34bdb22bd
10 11
 Vendor:		VMware, Inc.
11 12
 Distribution:	Photon
12 13
 BuildRequires:  sqlite-autoconf
... ...
@@ -19,6 +19,7 @@ URL:            http://dbi.perl.org/
19 19
 # license is not a FSF free license. 
20 20
 # Source0:        http://www.cpan.org/authors/id/T/TI/TIMB/DBI-%{version}.tar.gz
21 21
 Source0:        DBI-%{version}_repackaged.tar.gz
22
+%define sha1 DBI=82fcc8e2b5180941cf8d38e655d5d98f86a29ca4
22 23
 Vendor:		VMware, Inc.
23 24
 Distribution:	Photon
24 25
 BuildRequires:  perl
... ...
@@ -6,6 +6,7 @@ Release:        1%{?dist}
6 6
 License:        Public Domain
7 7
 Group:          Development/Libraries
8 8
 Source0:        http://search.cpan.org/CPAN/authors/id/J/JU/JUERD/DBIx-Simple-%{version}.tar.gz 
9
+%define sha1 DBIx-Simple=a6d08abf6dd3bfef7c337054beb49611572880b8
9 10
 URL:            http://search.cpan.org/dist/DBIx-Simple/
10 11
 Vendor:		VMware, Inc.
11 12
 Distribution:	Photon
... ...
@@ -7,6 +7,7 @@ License:	(GPL+ or Artistic) and Public Domain and (GPL+ or Artistic or CC-BY-SA)
7 7
 Group:		Development/Libraries
8 8
 URL:		http://search.cpan.org/dist/Exporter-Tiny/
9 9
 Source0:	http://search.cpan.org/CPAN/authors/id/T/TO/TOBYINK/Exporter-Tiny-%{version}.tar.gz
10
+%define sha1 Exporter-Tiny=3a3ac1affabcfce1d1bf8cffee2e7a8c78780e54
10 11
 Vendor:		VMware, Inc.
11 12
 Distribution:	Photon
12 13
 BuildArch:	noarch
... ...
@@ -8,6 +8,7 @@ License:        GPL+ or Artistic
8 8
 Group:          Development/Libraries
9 9
 URL:            http://search.cpan.org/dist/JSON-XS/
10 10
 Source0:        http://www.cpan.org/authors/id/M/ML/MLEHMANN/JSON-XS-%{version}.tar.gz
11
+%define sha1 JSON-XS=725f67ef1de914a6fdaf99d751aea3018cee492b
11 12
 Vendor:		VMware, Inc.
12 13
 Distribution:	Photon
13 14
 BuildRequires:  perl
... ...
@@ -6,6 +6,7 @@ Release:	1%{?dist}
6 6
 License:	GPL+ or Artistic
7 7
 URL:		http://search.cpan.org/dist/List-MoreUtils/
8 8
 Source0:	http://search.cpan.org/CPAN/authors/id/R/RE/REHSACK/List-MoreUtils-%{version}.tar.gz
9
+%define sha1 List-MoreUtils=e72c962a78850f08212df5d9bd0b0b59b5a3caa4
9 10
 Vendor:		VMware, Inc.
10 11
 Distribution:	Photon
11 12
 BuildRequires:	perl
... ...
@@ -10,6 +10,7 @@ License:        GPL+ or Artistic
10 10
 Group:          Development/Libraries
11 11
 URL:            http://search.cpan.org/dist/Module-Install/
12 12
 Source0:        http://www.cpan.org/authors/id/B/BI/BINGOS/Module-Install-%{version}.tar.gz
13
+%define sha1 Module-Install=255bff1bdf9e7b0f67eff15d0b4d52662c0f67d7
13 14
 Vendor:		VMware, Inc.
14 15
 Distribution:	Photon
15 16
 BuildArch:      noarch
... ...
@@ -6,6 +6,7 @@ Release:        1%{?dist}
6 6
 License:        GPL+ or Artistic
7 7
 Group:          Development/Libraries
8 8
 Source0:        http://search.cpan.org/CPAN/authors/id/R/RS/RSCHUPP/Module-ScanDeps-%{version}.tar.gz 
9
+%define sha1 Module-ScanDeps=f12767be803f28e685be29e6bc9430361179de09
9 10
 URL:            http://search.cpan.org/dist/Module-ScanDeps/
10 11
 Vendor:		VMware, Inc.
11 12
 Distribution:	Photon
... ...
@@ -7,6 +7,7 @@ License:	GPL+ or Artistic
7 7
 Group:		Development/Libraries
8 8
 URL:		http://search.cpan.org/dist/Types-Serialiser/
9 9
 Source0:	http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/Types-Serialiser-%{version}.tar.gz
10
+%define sha1 Types-Serialiser=72ba9d1d97bb582360c79bcbdb158e73573adb70
10 11
 Vendor:		VMware, Inc.
11 12
 Distribution:	Photon 
12 13
 BuildArch:	noarch
... ...
@@ -12,6 +12,7 @@ License:        MIT
12 12
 Group:          Development/Libraries
13 13
 URL:            http://search.cpan.org/dist/WWW-Curl/
14 14
 Source0:        http://search.cpan.org/CPAN/authors/id/S/SZ/SZBALINT/WWW-Curl-%{version}.tar.gz
15
+%define sha1 WWW-Curl=8ec7b7b39bd653539671fb02fbb7d0ff4863e636
15 16
 Vendor:		VMware, Inc.
16 17
 Distribution:	Photon
17 18
 BuildRequires:  perl
... ...
@@ -7,6 +7,7 @@ License:        GPL+ or Artistic
7 7
 Group:          Development/Libraries
8 8
 URL:            http://search.cpan.org/dist/YAML-Tiny/
9 9
 Source0:        http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/YAML-Tiny-%{version}.tar.gz
10
+%define sha1 YAML-Tiny=7fb62ca3dce1ba0310e31946d4a66ef14952e7fc
10 11
 Vendor:		VMware, Inc.
11 12
 Distribution:	Photon
12 13
 BuildArch:      noarch
... ...
@@ -7,6 +7,7 @@ License:        GPL+ or Artistic
7 7
 Group:          Development/Libraries
8 8
 URL:            http://search.cpan.org/dist/YAML/
9 9
 Source0:        http://search.cpan.org/CPAN/authors/id/I/IN/INGY/YAML-%{version}.tar.gz
10
+%define sha1 YAML=9124d31d1cf147e11dc90950ddc7041379d07cdf
10 11
 Vendor:		VMware, Inc.
11 12
 Distribution:	Photon
12 13
 BuildArch:      noarch
... ...
@@ -10,6 +10,7 @@ License:	GPL+ or Artistic
10 10
 Group:		Development/Libraries
11 11
 URL:		http://search.cpan.org/dist/common-sense
12 12
 Source0:	http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/common-sense-%{version}.tar.gz
13
+%define sha1 common-sense=114bab46ac459f399ec3c7b2ae6a0d3b42d05c7c
13 14
 Vendor:		VMware, Inc.
14 15
 Distribution:	Photon 
15 16
 BuildRequires:	perl
... ...
@@ -7,6 +7,7 @@ License:	LGPLv2+
7 7
 Group: 		Development/Libraries
8 8
 URL: 		http://search.cpan.org/dist/libintl-perl/
9 9
 Source: 	http://search.cpan.org/CPAN/authors/id/G/GU/GUIDO/libintl-perl-%{version}.tar.gz
10
+%define sha1 libintl-perl=da2ed849f3b3f28dc5306a2887126a55f49992cb
10 11
 Vendor:		VMware, Inc.
11 12
 Distribution:	Photon
12 13
 Requires: 	perl
... ...
@@ -13,6 +13,7 @@ Group:		Development/Languages
13 13
 Vendor:		VMware, Inc.
14 14
 Distribution:	Photon
15 15
 Source0:	http://www.cpan.org/src/5.0/%{name}-%{version}.tar.bz2
16
+%define sha1 perl=b8b87ef46630b5a2287b86b6e0c69088da36adfd
16 17
 Provides:	perl >= 0:5.003000
17 18
 Provides:	perl(getopts.pl)
18 19
 Provides:   /bin/perl
... ...
@@ -6,6 +6,7 @@ License:	Apache License
6 6
 Group:		System Environment/Base
7 7
 URL:		http://photon.org
8 8
 Source:		photon-release-%{version}.tar.gz
9
+%define sha1 photon-release=88312b408fcfc626acf0c13002c1a87cc384a9ff
9 10
 Vendor:		VMware, Inc.
10 11
 Distribution:	Photon
11 12
 Provides:	photon-release
... ...
@@ -8,6 +8,7 @@ Group:		Development/Tools
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: Photon
10 10
 Source0:		http://pkgconfig.freedesktop.org/releases/%{name}-%{version}.tar.gz
11
+%define sha1 pkg-config=71853779b12f958777bffcb8ca6d849b4d3bed46
11 12
 %description
12 13
 Contains a tool for passing the include path and/or library paths
13 14
 to build tools during the configure and make file execution.
... ...
@@ -8,6 +8,7 @@ Group:		Applications/System
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: 	Photon
10 10
 Source0:	ftp://anduin.linuxfromscratch.org/BLFS/svn/p/%{name}-%{version}.tar.gz
11
+%define sha1 popt=cfe94a15a2404db85858a81ff8de27c8ff3e235e
11 12
 %description
12 13
 The popt package contains the popt libraries which are used by
13 14
 some programs to parse command-line options.
... ...
@@ -8,6 +8,7 @@ Group:		Applications/Databases
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution:	Photon
10 10
 Source0:	http://ftp.postgresql.org/pub/source/v%{version}/%{name}-%{version}.tar.bz2
11
+%define sha1 postgresql=0086c9625e727be5b1ef00c4c694e762e41eba50
11 12
 Requires:	openssl
12 13
 Requires:	perl
13 14
 Requires: 	python2
... ...
@@ -8,6 +8,7 @@ Group:		Applications/System
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: Photon
10 10
 Source0:		http://sourceforge.net/projects/procps-ng/files/Production/%{name}-%{version}.tar.xz
11
+%define sha1 procps-ng=088c77631745fc75ee41fc29c254a4069be4869a
11 12
 BuildRequires:	ncurses-devel
12 13
 Requires:	ncurses
13 14
 %description
... ...
@@ -8,6 +8,7 @@ Group:		Applications/System
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution:	Photon
10 10
 Source0:	http://prdownloads.sourceforge.net/psmisc/%{name}-%{version}.tar.gz
11
+%define sha1 psmisc=abdddc8d5c91251bba0f3190956ae9d05c058745
11 12
 BuildRequires:	ncurses-devel
12 13
 Requires:	ncurses
13 14
 %description
... ...
@@ -8,6 +8,7 @@ Group:          Development/Languages
8 8
 License:        LGPLv2+ and an MIT/X
9 9
 URL:            http://pycurl.sourceforge.net/
10 10
 Source0:        http://pycurl.sourceforge.net/download/pycurl-%{version}.tar.gz
11
+%define sha1 pycurl=e448cc05ef05f8645bb9a7873d7a7e0b0035db14
11 12
 Vendor:		VMware, Inc.
12 13
 Distribution:	Photon
13 14
 Provides:	pycurl
... ...
@@ -10,6 +10,7 @@ Vendor:		VMware, Inc.
10 10
 Distribution:	Photon
11 11
 URL:            ftp://ftp.gnome.org
12 12
 Source0:        ftp://ftp.gnome.org/pub/GNOME/sources/pygobject/3.10/pygobject-3.10.2.tar.xz
13
+%define sha1 pygobject=693cc1cb692a8f21ff27d28eaa780f5e67cafb1a
13 14
 Requires:	python2
14 15
 Requires:	gobject-introspection
15 16
 Requires:	glib-devel
... ...
@@ -6,6 +6,7 @@ License:        BSD
6 6
 Group:          Development/Languages/Python
7 7
 Url:            https://pypi.python.org/packages/source/c/configobj/configobj-%{version}.tar.gz
8 8
 Source0:        configobj-%{version}.tar.gz
9
+%define sha1 configobj=add3ae15e3f0d2d28d37370dcad930243cb4145c
9 10
 
10 11
 BuildRequires: python2
11 12
 BuildRequires: python2-libs
... ...
@@ -8,6 +8,7 @@ Group:          Development/Libraries
8 8
 License:        MIT
9 9
 URL:            http://code.google.com/p/iniparse/
10 10
 Source0:        http://iniparse.googlecode.com/files/iniparse-%{version}.tar.gz
11
+%define sha1 iniparse=2b2af8a19f3e5c212c27d7c524cd748fa0b38650
11 12
 Vendor:		VMware, Inc.
12 13
 Distribution:	Photon
13 14
 BuildRequires:	python2-devel
... ...
@@ -6,6 +6,7 @@ License:        Modified BSD License
6 6
 Group:          Development/Languages/Python
7 7
 Url:            https://pypi.python.org/packages/source/j/jsonpatch/jsonpatch-%{version}.tar.gz
8 8
 Source0:        jsonpatch-%{version}.tar.gz
9
+%define sha1 jsonpatch=b45d37d581315e423451a9f0ea8dc091b6138254
9 10
 
10 11
 BuildRequires: python2
11 12
 BuildRequires: python2-libs
... ...
@@ -35,4 +36,4 @@ python setup.py install --prefix=%{_prefix} --root=%{buildroot}
35 35
 
36 36
 %changelog
37 37
 * Wed Mar 04 2015 Mahmoud Bassiouny <mbassiouny@vmware.com>
38
-- Initial packaging for Photon
39 38
\ No newline at end of file
39
+- Initial packaging for Photon
... ...
@@ -6,6 +6,7 @@ License:        Modified BSD License
6 6
 Group:          Development/Languages/Python
7 7
 Url:            https://pypi.python.org/packages/source/j/jsonpointer/jsonpointer-%{version}.tar.gz
8 8
 Source0:        jsonpointer-%{version}.tar.gz
9
+%define sha1 jsonpointer=0dff85fd348b9adb4607ec47bd419fe33094474b
9 10
 
10 11
 BuildRequires: python2
11 12
 BuildRequires: python2-libs
... ...
@@ -35,4 +36,4 @@ python setup.py install --prefix=%{_prefix} --root=%{buildroot}
35 35
 
36 36
 %changelog
37 37
 * Wed Mar 04 2015 Mahmoud Bassiouny <mbassiouny@vmware.com>
38
-- Initial packaging for Photon
39 38
\ No newline at end of file
39
+- Initial packaging for Photon
... ...
@@ -6,6 +6,7 @@ License:        BSD-2-Clause
6 6
 Group:          Development/Languages/Python
7 7
 Url:            http://code.google.com/p/prettytable/
8 8
 Source0:        prettytable-%{version}.tar.gz
9
+%define sha1 prettytable=b7d0bf0feee0d23108a044ffae44aff5c5935250
9 10
 
10 11
 BuildRequires: python2
11 12
 BuildRequires: python2-libs
... ...
@@ -6,6 +6,7 @@ Summary:        Awesome Python HTTP Library That's Actually Usable
6 6
 License:        Apache2
7 7
 Group:          Development/Languages/Python
8 8
 Source0:        http://pypi.python.org/packages/source/r/requests/requests-%{version}.tar.gz
9
+%define sha1 requests=f906c441be2f0e7a834cbf701a72788d3ac3d144
9 10
 
10 11
 BuildRequires: python2
11 12
 BuildRequires: python2-libs
... ...
@@ -7,6 +7,7 @@ Group: Development/Languages
7 7
 URL: https://pypi.python.org/pypi/setuptools
8 8
 
9 9
 Source0: https://pypi.python.org/packages/source/s/setuptools/setuptools-%{version}.tar.gz
10
+%define sha1 setuptools=427e916ad99a704af54b7aa3124bd52d4ebf04d3
10 11
 
11 12
 BuildArch: noarch
12 13
 
... ...
@@ -6,6 +6,7 @@ License:        MIT
6 6
 Group:          Development/Languages/Python
7 7
 Url:            https://pypi.python.org/packages/source/s/six/six-%{version}.tar.gz
8 8
 Source0:        six-%{version}.tar.gz
9
+%define sha1 six=d168e6d01f0900875c6ecebc97da72d0fda31129
9 10
 
10 11
 BuildRequires: python2
11 12
 BuildRequires: python2-libs
... ...
@@ -8,6 +8,7 @@ Group:		System Environment/Programming
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution:	Photon
10 10
 Source0:	http://www.python.org/ftp/python/2.7.9/Python-%{version}.tar.xz
11
+%define sha1 Python=3172f6e957713c2d9fca462cc16068222fd1b9d3
11 12
 Patch: cgi.patch
12 13
 BuildRequires:	pkg-config >= 0.28
13 14
 BuildRequires:	bzip2-devel
... ...
@@ -8,6 +8,7 @@ Group:		Applications/System
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: 	Photon
10 10
 Source0:	http://ftp.gnu.org/gnu/readline/%{name}-%{version}.tar.gz
11
+%define sha1 readline=017b92dc7fd4e636a2b5c9265a77ccc05798c9e1
11 12
 Patch:		http://www.linuxfromscratch.org/patches/lfs/development/readline-6.3-upstream_fixes-3.patch
12 13
 BuildRequires:	ncurses-devel
13 14
 Requires:	ncurses
... ...
@@ -8,6 +8,7 @@ Group:          Applications/File
8 8
 Vendor:         VMware, Inc.
9 9
 Distribution:   Photon
10 10
 Source0:        rocket-v0.5.1.tar.gz
11
+%define sha1 rocket=f04027de635f9dd965cd36dd29203dc760f5840a
11 12
 
12 13
 %description
13 14
 Rocket is a CLI for running app containers, and an implementation of the App Container Spec.
... ...
@@ -29,4 +30,4 @@ rm -rf %{buildroot}/*
29 29
 /bin/*
30 30
 %changelog
31 31
 *       Fri Mar 27 2015 Fabio Rapposeli <fabio@vmware.com> 0.5.1-1
32
--       Initial build.  First version
33 32
\ No newline at end of file
33
+-       Initial build.  First version
... ...
@@ -8,6 +8,7 @@ Release: 	1.0%{?dist}
8 8
 # It doesn't follow the Github guidelines because they only work for
9 9
 # github; the infrastructure above is generic for any git repository.
10 10
 Source0:	%{name}-%{version}.tar.gz
11
+%define sha1 rpm-ostree-toolbox=bd8e4b5da029990845233bceac765322c62db848
11 12
 License: 	LGPLv2+
12 13
 URL: 		https://github.com/cgwalters/rpm-ostree-toolbox
13 14
 Vendor:		VMware, Inc.
... ...
@@ -3,6 +3,7 @@ Name:           rpm-ostree
3 3
 Version:        2015.7
4 4
 Release:        1%{?dist}
5 5
 Source0:        rpm-ostree-%{version}.tar.gz
6
+%define sha1 rpm-ostree=9a0fa260d8671d9998b5f5509de1bbadd42f7127
6 7
 License:        LGPLv2+
7 8
 URL:            https://github.com/cgwalters/rpm-ostree
8 9
 Vendor:		VMware, Inc.
... ...
@@ -8,8 +8,11 @@ Group:		Applications/System
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: 	Photon
10 10
 Source0:	http://rpm.org/releases/rpm-4.11.x/%{name}-%{version}.tar.bz2
11
+%define sha1 rpm-4.11.2=ceef44bd180d48d4004c437bc31a3ea038f54e3e
11 12
 Source1:	http://download.oracle.com/berkeley-db/db-5.3.28.tar.gz
13
+%define sha1 db=fa3f8a41ad5101f43d08bc0efb6241c9b6fc1ae9
12 14
 Source2:	rpm-system-configuring-scripts-2.2.tar.gz
15
+%define sha1 rpm-system-configuring-scripts=9461cdc0b65f7ecc244bfa09886b4123e55ab5a8
13 16
 #Requires: nspr
14 17
 Requires: 	nss
15 18
 Requires: 	popt
... ...
@@ -5,6 +5,7 @@ Release:	1%{?dist}
5 5
 License:	GPLv3+ and ASL 2.0
6 6
 URL:		http://www.rsyslog.com/
7 7
 Source0:	http://www.rsyslog.com/files/download/rsyslog/%{name}-%{version}.tar.gz
8
+%define sha1 rsyslog=9fddcf1121e438e5291f738bb4619230de525e50
8 9
 Group:		System Environment/Base
9 10
 Vendor:		VMware, Inc.
10 11
 Distribution:	Photon
... ...
@@ -8,6 +8,7 @@ Group:		System Environment/Security
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: Photon
10 10
 Source0:	http://cache.ruby-lang.org/pub/ruby/2.2/%{name}-%{version}.tar.gz
11
+%define sha1 ruby=12376b79163e02bc9bd1a39329d67c3d19ccace9
11 12
 Requires:	ca-certificates
12 13
 BuildRequires:	ca-certificates
13 14
 Requires:	openssl
... ...
@@ -8,6 +8,7 @@ Group:		Applications/Editors
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: Photon
10 10
 Source0:		http://ftp.gnu.org/gnu/sed/%{name}-%{version}.tar.bz2
11
+%define sha1 sed=f17ab6b1a7bcb2ad4ed125ef78948092d070de8f
11 12
 %description
12 13
 The Sed package contains a stream editor.
13 14
 
... ...
@@ -8,7 +8,9 @@ Group:		Applications/System
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution:	Photon
10 10
 Source0:	http://cdn.debian.net/debian/pool/main/s/%{name}/%{name}_%{version}.orig.tar.gz
11
+%define sha1 shadow=6e4de75de58405d21b0377b926ae770afccd95bc
11 12
 Source1:	PAM-Configuration-Files-1.0.tar.gz
13
+%define sha1 PAM=018667e773afb7a6fafb03a1967202dbe9b7f232
12 14
 BuildRequires: 	cracklib
13 15
 BuildRequires: 	cracklib-devel
14 16
 Requires:   	cracklib
... ...
@@ -8,6 +8,7 @@ Group:		System Environment/GeneralLibraries
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: Photon
10 10
 Source0:	http://sqlite.org/2014/%{name}-%{version}.tar.gz
11
+%define sha1 sqlite-autoconf=a9b0a3d66fb5c2ae51ad2d8a512ca827adc7d59c
11 12
 Obsoletes:	libsqlite
12 13
 %description
13 14
 This package contains most of the static files that comprise the
... ...
@@ -8,6 +8,7 @@ Group:		Development/Debuggers
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution:	Photon
10 10
 Source0:	http://downloads.sourceforge.net/project/strace/strace/4.10/%{name}-%{version}.tar.xz
11
+%define sha1 strace=5c3ec4c5a9eeb440d7ec70514923c2e7e7f9ab6c
11 12
 BuildRequires:	libacl-devel, libaio-devel
12 13
 
13 14
 %description
... ...
@@ -8,6 +8,7 @@ Group:		System Environment/Security
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution:	Photon
10 10
 Source0:	http://www.sudo.ws/sudo/dist/%{name}-%{version}.tar.gz
11
+%define sha1 sudo=3c442d59c0e112d4a43ffba434580e93fe1a766f
11 12
 BuildRequires:	man-db
12 13
 BuildRequires:	Linux-PAM
13 14
 Requires:	Linux-PAM
... ...
@@ -5,6 +5,7 @@ Release:	1%{?dist}
5 5
 License:	GPLv3+ and BSD
6 6
 URL:		http://swig.sourceforge.net/
7 7
 Source0:	http://downloads.sourceforge.net/project/swig/swig/swig-%{version}/swig-%{version}.tar.gz
8
+%define sha1 swig=271813b317e4836853d2249fc8ce2df34c2a062a
8 9
 Vendor:		VMware, Inc.
9 10
 Distribution:	Photon
10 11
 BuildRequires:	pcre-devel
... ...
@@ -8,6 +8,7 @@ Group:		System Environment/Daemons
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: 	Photon
10 10
 Source0:	http://my.balabit.com/downloads/syslog-ng/open-source-edition/%{version}/source/%{name}_%{version}.tar.gz
11
+%define sha1 syslog-ng=36eeaf920383ee8cb1c17d945205b7562f9fbbb2
11 12
 Requires:	glib
12 13
 Requires:	python2
13 14
 BuildRequires:	eventlog
... ...
@@ -8,6 +8,7 @@ Group:		System Environment/Security
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution:	Photon
10 10
 Source0:	http://www.freedesktop.org/software/systemd/%{name}-%{version}.tar.xz
11
+%define sha1 systemd=0d933a2f76db5d30f52429e9b172323bc6abd49a
11 12
 Patch0:     	systemd-216-compat-1.patch
12 13
 Patch1:         systemd-216-if-rename.patch
13 14
 Requires:	Linux-PAM
... ...
@@ -8,6 +8,7 @@ Group:		Applications/System
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: Photon
10 10
 Source0:	tar/%{name}-%{version}.tar.xz
11
+%define sha1 tar=5ce4233e1774e990b930f3c46990267b28448962
11 12
 Patch0:		tar-1.27.1-manpage-1.patch
12 13
 %description
13 14
 Contains GNU archiving program
... ...
@@ -5,6 +5,7 @@ Release:	1%{?dist}
5 5
 License:	BSD
6 6
 URL:		http://www.tcpdump.org
7 7
 Source0:	http://www.tcpdump.org/release/%{name}-%{version}.tar.gz
8
+%define sha1 tcpdump=4f085cef7cd4aedc9e402021ec11e3a8b23a6926
8 9
 Group:		Networking
9 10
 Vendor:		VMware, Inc.
10 11
 Distribution:	Photon
... ...
@@ -6,6 +6,7 @@ Release:	1%{?dist}
6 6
 License:	BSD
7 7
 Group:		System Environment/Shells
8 8
 Source:		http://www.sfr-fresh.com/unix/misc/%{name}-%{version}.tar.gz
9
+%define sha1 tcsh=eee2035645737197ff8059c84933a75d23cd76f9
9 10
 URL:		http://www.tcsh.org/
10 11
 Vendor:		VMware, Inc.
11 12
 Distribution: 	Photon
... ...
@@ -19,6 +19,7 @@ BuildRequires:	openssl-devel
19 19
 
20 20
 BuildRequires:	librepo-devel
21 21
 Source0:	%{name}-%{version}.tar.gz
22
+%define sha1 tdnf=bff1ffdce4f7c319c06da3a76f8be70f76be1246
22 23
 
23 24
 %description
24 25
 tdnf is a yum/dnf equivalent
... ...
@@ -8,6 +8,7 @@ Group:		Applications/System
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: 	Photon
10 10
 Source0:	%{name}-%{version}.tar.xz
11
+%define sha1 texinfo=fbbc35c5857d11d1164c8445c78b66ad6d472072
11 12
 %description
12 13
 The Texinfo package contains programs for reading, writing,
13 14
 and converting info pages.
... ...
@@ -6,6 +6,7 @@ License:	GPLv3+
6 6
 Group:		System Environment/Base
7 7
 URL:		https://github.com/jthornber/thin-provisioning-tools
8 8
 Source0:	https://github.com/jthornber/thin-provisioning-tools/archive/thin-provisioning-tools-v%{version}.tar.gz
9
+%define sha1 thin-provisioning-tools=d1ccfd0d9036a22b726a4e0011f888e0fda76e56
9 10
 BuildRequires:	expat , libaio-devel, boost
10 11
 Requires:	expat, libaio
11 12
 Vendor:		VMware, Inc.
... ...
@@ -8,9 +8,11 @@ Group:		Applications/System
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: 	Photon
10 10
 Source0:	http://www.iana.org//time-zones/repository/releases/%{name}%{version}.tar.gz
11
+%define sha1 tzdata=0fe77c8cca50b5f20d73e9c2a5b4fadca34c1504
11 12
 BuildArch:	noarch
12 13
 %description
13 14
 Sources for time zone and daylight saving time data
15
+%define sha1 tzdata=0fe77c8cca50b5f20d73e9c2a5b4fadca34c1504
14 16
 %define blddir		%{name}-%{version}
15 17
 %prep
16 18
 rm -rf %{blddir}
... ...
@@ -5,6 +5,7 @@ Release:	2%{?dist}
5 5
 License:	BSD
6 6
 URL:		http://www.gnu.org/software/%{name}
7 7
 Source0:	http://downloads.sourceforge.net/infozip/unzip60.tar.gz
8
+%define sha1 unzip=abf7de8a4018a983590ed6f5cbd990d4740f8a22
8 9
 Group:		System Environment/Utilities
9 10
 Vendor:		VMware, Inc.
10 11
 Distribution: Photon
... ...
@@ -5,6 +5,7 @@ Name: 			urlgrabber
5 5
 Version: 		3.10
6 6
 Release: 		1%{?dist}
7 7
 Source0: 		urlgrabber-%{version}.tar.gz
8
+%define sha1 urlgrabber=a2ff4fc2056f4d91b412104e04ff0bdc73ec5fb1
8 9
 License: 		LGPLv2+
9 10
 Group: 			Development/Libraries
10 11
 BuildRoot: 		%{_tmppath}/%{name}-%{version}-%{release}-buildroot
... ...
@@ -8,6 +8,7 @@ Group:		Applications/System
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: 	Photon
10 10
 Source0:	%{name}-%{version}.tar.xz
11
+%define sha1 util-linux=ecf75bbb77bba874fc11fc27423aa67b395b7ae5
11 12
 BuildRequires:	ncurses-devel
12 13
 %description
13 14
 Utilities for handling file systems, consoles, partitions,
... ...
@@ -10,6 +10,7 @@ Group:		Applications/Editors
10 10
 Vendor:		VMware, Inc.
11 11
 Distribution:	Photon
12 12
 Source0:	%{name}-%{version}.tar.bz2
13
+%define sha1 vim=601abf7cc2b5ab186f40d8790e542f86afca86b7
13 14
 BuildRequires:	ncurses-devel
14 15
 Requires:	tcsh
15 16
 
... ...
@@ -8,6 +8,7 @@ Group:		System Environment/Daemons
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution:	Photon
10 10
 Source0:	https://security.appspot.com/downloads/%{name}-%{version}.tar.gz
11
+%define sha1 vsftpd=f36976bb1c5df25ac236d8a29e965ba2b825ccd0
11 12
 BuildRequires:	libcap Linux-PAM openssl-devel
12 13
 Requires:	libcap Linux-PAM openssl
13 14
 %description
... ...
@@ -8,6 +8,7 @@ Group:		System Environment/NetworkingPrograms
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: Photon
10 10
 Source0:	ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz
11
+%define sha1 wget=e9fb1d25fa04f9c69e74e656a3174dca02700ba1
11 12
 Requires:	openssl
12 13
 BuildRequires:	openssl-devel
13 14
 %description
... ...
@@ -5,6 +5,7 @@ Release:	1%{?dist}
5 5
 License:	GPLv3+
6 6
 URL:		http://savannah.gnu.org/projects/which
7 7
 Source0:	http://ftp.gnu.org/gnu/which/%{name}-%{version}.tar.gz
8
+%define sha1 which=3bcd6d87aa5231917ba7123319eedcae90cfa0fd
8 9
 Group:		Development/Tools
9 10
 Vendor:		VMware, Inc.
10 11
 Distribution: Photon
... ...
@@ -8,6 +8,7 @@ Group:		Applications/System
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution:	Photon
10 10
 Source0:	http://www.apache.org/dist/xerces/c/3/sources/%{name}-%{version}.tar.gz
11
+%define sha1 xerces-c=177ec838c5119df57ec77eddec9a29f7e754c8b2
11 12
 %description
12 13
 Xerces-C++ is a validating XML parser written in a portable subset of C++
13 14
 %package	devel
... ...
@@ -8,6 +8,7 @@ Group:		Applications/System
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution:	Photon
10 10
 Source0:	http://pkgs.fedoraproject.org/repo/pkgs/xml-security-c/xml-security-c-1.5.1.tar.gz/2c47c4ec12e8d6abe967aa5e5e99000c/%{name}-%{version}.tar.gz
11
+%define sha1 xml-security-c=e51d3dca7f32cfcc2090d4d20cf8a1d032d95d79
11 12
 Requires:	openssl
12 13
 Requires:	xerces-c
13 14
 BuildRequires:	openssl-devel
... ...
@@ -8,6 +8,7 @@ Group:		Applications/File
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution:	Photon
10 10
 Source0:	http://tukaani.org/xz/%{name}-%{version}.tar.xz
11
+%define sha1 xz=56f1d78117f0c32bbb1cfd40117aa7f55bee8765
11 12
 %description
12 13
 The Xz package contains programs for compressing and
13 14
 decompressing files
... ...
@@ -5,6 +5,7 @@ Name:       	yum-metadata-parser
5 5
 Version:   	1.1.4
6 6
 Release:    	1%{?dist}
7 7
 Source0:    	%{name}-%{version}.tar.gz
8
+%define sha1 yum-metadata-parser=044e69a04ea5ac39d79020d9e1f1a35c9dc64d9b
8 9
 License:    	GPLv2+
9 10
 Group:      	Development/Libraries
10 11
 URL:        	http://devel.linux.duke.edu/cgi-bin/viewcvs.cgi/yum-metadata-parser/
... ...
@@ -5,6 +5,7 @@ Release:	2%{?dist}
5 5
 License:	GPLv2+
6 6
 Group:		System Environment/Base
7 7
 Source0:	%{name}-%{version}.tar.gz
8
+%define sha1 yum=8ec5d339e4518a7908fd4db0721740288a3d8b6c
8 9
 URL:		http://yum.baseurl.org/
9 10
 Vendor:		VMware, Inc.
10 11
 Distribution:	Photon
... ...
@@ -8,6 +8,7 @@ Group:		Applications/System
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: 	Photon
10 10
 Source0:	http://www.zlib.net/%{name}-%{version}.tar.xz
11
+%define sha1 zlib=b598beb7acc96347cbd1020b71aef7871d374677
11 12
 %description
12 13
 Compression and decompression routines
13 14
 %package	devel
... ...
@@ -8,6 +8,7 @@ Group:		Applications/System
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: 	Photon
10 10
 Source:	http://www.carfab.com/apachesoftware/zookeeper/stable/%{name}-%{version}.tar.gz
11
+%define sha1 zookeeper=2a9e53f5990dfe0965834a525fbcad226bf93474
11 12
 Requires: shadow, openjdk
12 13
 Provides: zookeeper
13 14
 %description
... ...
@@ -28,15 +28,12 @@ PHOTON_SRCS_DIR=$(PHOTON_STAGE)/SOURCES
28 28
 PHOTON_PUBLISH_RPMS_DIR=$(PHOTON_STAGE)/PUBLISHRPMS
29 29
 
30 30
 PHOTON_PKG_BUILDER_DIR=$(SRCROOT)/support/package-builder
31
-PHOTON_PULL_SOURCES_DIR=$(SRCROOT)/support/pullsources
32 31
 PHOTON_PULL_PUBLISH_RPMS_DIR=$(SRCROOT)/support/pullpublishrpms
33 32
 
34 33
 PHOTON_INSTALLER_DIR=$(SRCROOT)/installer
35 34
 PHOTON_INSTALLER=$(PHOTON_INSTALLER_DIR)/photonInstaller.py
36 35
 PHOTON_PACKAGE_BUILDER=$(PHOTON_PKG_BUILDER_DIR)/builder.py
37
-PHOTON_PULL_SOURCES=$(PHOTON_PULL_SOURCES_DIR)/pullsources.py
38
-PHOTON_BINTRAY_CONFIG?=$(PHOTON_PULL_SOURCES_DIR)/bintray.conf
39
-PHOTON_SOURCES_LIST?=$(PHOTON_PULL_SOURCES_DIR)/sources_list.sha1
36
+PHOTON_BINTRAY_CONFIG?=$(PHOTON_PKG_BUILDER_DIR)/pullsources.conf
40 37
 PHOTON_PULL_PUBLISH_RPMS=$(PHOTON_PULL_PUBLISH_RPMS_DIR)/pullpublishrpms.sh
41 38
 
42 39
 PHOTON_CHROOT_CLEANER=$(PHOTON_PKG_BUILDER_DIR)/cleanup-build-root.sh
... ...
@@ -108,7 +108,6 @@ class PackageBuilder(object):
108 108
             logFileName = os.path.join(destLogPath, package + ".log")
109 109
             fileLog = os.popen('tail -n 20 ' + logFileName).read()
110 110
             self.logger.debug(fileLog)
111
-            self.logger.debug()
112 111
             raise e
113 112
         if chrootID is not None:
114 113
             chrUtils.destroyChroot(chrootID)
... ...
@@ -5,6 +5,7 @@ import shutil
5 5
 from constants import constants
6 6
 import re
7 7
 from time import sleep
8
+import PullSources
8 9
 
9 10
 class PackageUtils(object):
10 11
     
... ...
@@ -100,6 +101,11 @@ class PackageUtils(object):
100 100
     def copySourcesTobuildroot(self,listSourceFiles,package,destDir):
101 101
         cmdUtils = CommandUtils()
102 102
         for source in listSourceFiles:
103
+            # Fetch/verify sources if sha1 not None.
104
+            sha1 = constants.specData.getSHA1(package, source)
105
+            if sha1 is not None:
106
+                PullSources.get(source, sha1, constants.sourcePath, constants.pullsourcesConfig)
107
+
103 108
             sourcePath = cmdUtils.findFile(source,constants.sourcePath)
104 109
             if sourcePath is None or len(sourcePath) == 0:
105 110
                 sourcePath = cmdUtils.findFile(source,constants.specPath)
106 111
new file mode 100644
... ...
@@ -0,0 +1,94 @@
0
+#! /usr/bin/python2
1
+#
2
+#    Copyright (C) 2015 VMware, Inc. All rights reserved.
3
+#    pullsources.py 
4
+#    Allows pulling packages'sources from a bintary  
5
+#    repository.
6
+#
7
+#    Author(s): Mahmoud Bassiouny (mbassiouny@vmware.com)
8
+#
9
+
10
+import json
11
+import os
12
+import hashlib
13
+import datetime
14
+import requests
15
+from requests.auth import HTTPBasicAuth
16
+from CommandUtils import CommandUtils
17
+
18
+def getFileHash(filepath):
19
+    sha1 = hashlib.sha1()
20
+    f = open(filepath, 'rb')
21
+    try:
22
+        sha1.update(f.read())
23
+    finally:
24
+        f.close()
25
+    return sha1.hexdigest()
26
+
27
+def get(source, sha1, sourcesPath, configs):
28
+    cmdUtils = CommandUtils()
29
+    sourcePath = cmdUtils.findFile(source, sourcesPath)
30
+    if sourcePath is not None and len(sourcePath) > 0:
31
+        if len(sourcePath) > 1:
32
+            raise Exception("Multiple sources found for source:"+source+"\n"+ ",".join(sourcePath) +"\nUnable to determine one.")
33
+        if sha1 == getFileHash(sourcePath[0]):
34
+            # Use file from sourcesPath
35
+            return
36
+    configFiles=configs.split(":")
37
+    for config in configFiles:
38
+        p = pullSources(config)
39
+        package_path = os.path.join(sourcesPath, source)
40
+        try: 
41
+            p.downloadFileHelper(source, package_path, sha1)
42
+            return
43
+        except Exception as e:
44
+            print e
45
+    raise Exception("Missing source: "+source)
46
+
47
+class pullSources:
48
+
49
+    def __init__(self, conf_file):
50
+        self._config = {}
51
+        self.loadConfig(conf_file)
52
+
53
+        # generate the auth
54
+        self._auth = None
55
+        if ('user' in self._config and len(self._config['user']) > 0 and
56
+            'apikey' in self._config and len(self._config['apikey'])) > 0:
57
+            self._auth = HTTPBasicAuth(self._config['user'], self._config['apikey'])
58
+
59
+    def loadConfig(self,conf_file):
60
+        with open(conf_file) as jsonFile:
61
+            self._config = json.load(jsonFile)
62
+
63
+    def downloadFile(self, filename, file_path):
64
+        #form url: https://dl.bintray.com/vmware/photon_sources/1.0/<filename>.
65
+        url = '%s/%s/%s/%s/%s' % \
66
+              (self._config['baseurl'],\
67
+               self._config['subject'],\
68
+               self._config['repo'],\
69
+               self._config['version'],\
70
+               filename)
71
+
72
+        print '%s: Downloading %s...' % (str(datetime.datetime.today()), url)
73
+
74
+        with open(file_path, 'wb') as handle:
75
+            response = requests.get(url, auth=self._auth, stream=True)
76
+
77
+            if not response.ok:
78
+                # Something went wrong
79
+                raise Exception(response.text)
80
+
81
+            for block in response.iter_content(1024):
82
+                if not block:
83
+                    break
84
+
85
+                handle.write(block)
86
+            response.close()
87
+        return file_path
88
+
89
+    def downloadFileHelper(self, package_name, package_path, package_sha1 = None):
90
+        self.downloadFile(package_name, package_path)
91
+        if package_sha1 != getFileHash(package_path):
92
+            raise Exception('Invalid sha1 for package %s' % package_name)
93
+
... ...
@@ -13,6 +13,7 @@ class SerializableSpecObject(object):
13 13
         self.installRequiresPackages={}
14 14
         self.specFile=""
15 15
         self.listSources=[]
16
+        self.checksums={}
16 17
         self.listPatches=[]
17 18
         self.securityHardening=""
18 19
 
... ...
@@ -38,6 +39,7 @@ class SerializableSpecObjectsUtils(object):
38 38
             specObj.version=spec.getVersion()
39 39
             specObj.release=spec.getRelease()
40 40
             specObj.listSources=spec.getSourceNames()
41
+            specObj.checksums=spec.getChecksums()
41 42
             specObj.listPatches=spec.getPatchNames()
42 43
             specObj.securityHardening=spec.getSecurityHardeningOption()
43 44
             for specPkg in specObj.listPackages:
... ...
@@ -82,11 +84,15 @@ class SerializableSpecObjectsUtils(object):
82 82
     def getPatches(self, package):
83 83
         specName=self.getSpecName(package)
84 84
         return self.mapSerializableSpecObjects[specName].listPatches
85
-        
85
+
86 86
     def getSources(self, package):
87 87
         specName=self.getSpecName(package)
88 88
         return self.mapSerializableSpecObjects[specName].listSources
89 89
         
90
+    def getSHA1(self, package, source):
91
+        specName=self.getSpecName(package)
92
+        return self.mapSerializableSpecObjects[specName].checksums[source]
93
+
90 94
     def getPackages(self, package):
91 95
         specName=self.getSpecName(package)
92 96
         return self.mapSerializableSpecObjects[specName].listPackages
... ...
@@ -66,6 +66,8 @@ class SpecParser(object):
66 66
                 self.readPackageHeaders(line, self.packages[currentPkg])
67 67
             elif self.isGlobalSecurityHardening(line):
68 68
                 self.readSecurityHardening(line)
69
+            elif self.isChecksum(line):
70
+                self.readChecksum(line, self.packages[currentPkg])
69 71
             else:
70 72
                 self.specAdditionalContent+=line+"\n"
71 73
             i=i+1
... ...
@@ -197,6 +199,11 @@ class SpecParser(object):
197 197
             return True
198 198
         return False
199 199
 
200
+    def isChecksum(self,line):
201
+        if re.search('^%define *sha1',line,flags=re.IGNORECASE) :
202
+            return True
203
+        return False
204
+
200 205
     def readHeader(self,line):
201 206
         headerSplitIndex=line.find(":")
202 207
         if(headerSplitIndex+1 == len(line) ):
... ...
@@ -316,3 +323,29 @@ class SpecParser(object):
316 316
             return False
317 317
         self.globalSecurityHardening = words[2]
318 318
         return True;
319
+
320
+    def readChecksum(self,line,pkg):
321
+        strUtils = StringUtils()
322
+        data = line.strip();
323
+        words=data.split(" ")
324
+        nrWords = len(words)
325
+        if (nrWords != 3):
326
+            print "Error: Unable to parse line: "+line
327
+            return False
328
+        value=words[2].split("=")
329
+        if (len(value) != 2):
330
+            print "Error: Unable to parse line: "+line
331
+            return False
332
+        matchedSources=[]
333
+        for source in pkg.sources:
334
+            sourceName=strUtils.getFileNameFromURL(source)
335
+            if (sourceName.startswith(value[0])):
336
+                matchedSources.append(sourceName)
337
+        if (len(matchedSources) == 0):
338
+            print "Error: Can not find match for sha1 "+value[0]
339
+            return False
340
+        if (len(matchedSources) > 1):
341
+            print "Error: Too many matches in sources: "+matchedSources+" for sha1 "+value[0]
342
+            return False
343
+        pkg.checksums[sourceName] = value[1]
344
+        return True;
... ...
@@ -35,6 +35,7 @@ class Package(object):
35 35
         self.basePkgName=""
36 36
         
37 37
         self.sources=[]
38
+        self.checksums={}
38 39
         self.patches=[]
39 40
         self.buildrequires=[]
40 41
         self.buildprovides=[]
... ...
@@ -27,6 +27,12 @@ class Specutils(object):
27 27
             sourceNames.append(sourceName)
28 28
         return sourceNames
29 29
     
30
+    def getChecksums(self):
31
+        sourceNames=[]
32
+        strUtils = StringUtils()
33
+        pkg = self.spec.packages.get('default')
34
+        return pkg.checksums
35
+    
30 36
     def getSourceURLs(self):
31 37
         sourceNames=[]
32 38
         strUtils = StringUtils()
... ...
@@ -26,6 +26,7 @@ def main():
26 26
     parser.add_option("-b",  "--build-root-path", dest="buildRootPath",  default="/mnt")
27 27
     parser.add_option("-t",  "--threads", dest="buildThreads",  default=1, type="int", help="Numbeer of working threads")
28 28
     parser.add_option("-m",  "--tool-chain-stage", dest="toolChainStage",  default="None")
29
+    parser.add_option("-c",  "--pullsources-config", dest="pullsourcesConfig",  default="pullsources.conf")
29 30
 
30 31
     (options,  args) = parser.parse_args()
31 32
     cmdUtils=CommandUtils()
... ...
@@ -9,6 +9,7 @@ class constants(object):
9 9
     specData=None
10 10
     buildRootPath="/mnt"
11 11
     prevPublishRPMRepo=""
12
+    pullsourcesConfig=""
12 13
     noDepsPackageList=["texinfo","bzip2","gettext","man-db","nspr","xz","bison","openjdk","go"]
13 14
     listToolChainPackages=["linux-api-headers", "glibc","zlib", "file",
14 15
         "binutils","gmp","mpfr", "mpc","gcc", "pkg-config", "ncurses", "bash", "bzip2", "sed","procps-ng","coreutils", "m4","grep",
... ...
@@ -56,6 +57,7 @@ class constants(object):
56 56
         constants.buildRootPath=options.buildRootPath
57 57
         constants.specData = SerializableSpecObjectsUtils(constants.logPath)
58 58
         constants.specData.readSpecsAndConvertToSerializableObjects(constants.specPath)
59
+        constants.pullsourcesConfig = options.pullsourcesConfig
59 60
         
60 61
 
61 62
         
62 63
new file mode 100644
... ...
@@ -0,0 +1,8 @@
0
+{
1
+  "baseurl":"https://dl.bintray.com",
2
+  "subject":"vmware",
3
+  "repo":"photon_sources",
4
+  "version":"1.0",
5
+  "user":"", 
6
+  "apikey":""
7
+}
0 8
deleted file mode 100644
... ...
@@ -1,8 +0,0 @@
1
-{
2
-  "baseurl":"https://dl.bintray.com",
3
-  "subject":"vmware",
4
-  "repo":"photon_sources",
5
-  "version":"1.0",
6
-  "user":"", 
7
-  "apikey":""
8
-}
9 1
deleted file mode 100755
... ...
@@ -1,129 +0,0 @@
1
-#! /usr/bin/python2
2
-#
3
-#    Copyright (C) 2015 VMware, Inc. All rights reserved.
4
-#    pullsources.py 
5
-#    Allows pulling packages'sources from a bintary  
6
-#    repository.
7
-#
8
-#    Author(s): Mahmoud Bassiouny (mbassiouny@vmware.com)
9
-#
10
-
11
-from optparse import OptionParser
12
-import json
13
-import os
14
-import hashlib
15
-import string
16
-import datetime
17
-import copy_reg
18
-import types
19
-import requests
20
-from requests.auth import HTTPBasicAuth
21
-from multiprocessing import Pool
22
-
23
-class pullSources:
24
-
25
-    def __init__(self, conf_file, src_list):
26
-        self._config = {}
27
-        self.loadConfig(conf_file)
28
-        self.sha1_filename = src_list
29
-
30
-        # generate the auth
31
-        self._auth = None
32
-        if ('user' in self._config and len(self._config['user']) > 0 and
33
-            'apikey' in self._config and len(self._config['apikey'])) > 0:
34
-            self._auth = HTTPBasicAuth(self._config['user'], self._config['apikey'])
35
-
36
-    def loadConfig(self,conf_file):
37
-        with open(conf_file) as jsonFile:
38
-            self._config = json.load(jsonFile)
39
-
40
-    def getFileHash(self, filepath):
41
-        sha1 = hashlib.sha1()
42
-        f = open(filepath, 'rb')
43
-        try:
44
-            sha1.update(f.read())
45
-        finally:
46
-            f.close()
47
-        return sha1.hexdigest()
48
-
49
-    def downloadFile(self, filename, file_path):
50
-        print '%s: Downloading %s...' % (str(datetime.datetime.today()), filename)
51
-
52
-        #form url: https://dl.bintray.com/vmware/photon_sources/1.0/<filename>.
53
-        url = '%s/%s/%s/%s/%s' % \
54
-              (self._config['baseurl'],\
55
-               self._config['subject'],\
56
-               self._config['repo'],\
57
-               self._config['version'],\
58
-               filename)
59
-
60
-        with open(file_path, 'wb') as handle:
61
-            response = requests.get(url, auth=self._auth, stream=True)
62
-
63
-            if not response.ok:
64
-                # Something went wrong
65
-                raise Exception(response.text + " " + url)
66
-
67
-            for block in response.iter_content(1024):
68
-                if not block:
69
-                    break
70
-
71
-                handle.write(block)
72
-            response.close()
73
-        return file_path
74
-
75
-    def downloadFileHelper(self, package_name, package_path, package_sha1 = None):
76
-        self.downloadFile(package_name, package_path)
77
-        if package_sha1 != self.getFileHash(package_path):
78
-            raise Exception('Invalid sha1 for package %s' % package_name)
79
-
80
-    def pull(self, sources_dir):
81
-        #Open the list of sources.
82
-        with open(self.sha1_filename) as f:
83
-            packages = f.readlines()
84
-
85
-        pool = Pool(processes = 10)
86
-        package_and_source_dir_list = map(lambda package: (package, sources_dir), packages )
87
-        pool.map(self.ProcessDownload, package_and_source_dir_list)
88
-        pool.close()
89
-        pool.join()
90
-
91
-    def ProcessDownload(self, package_and_source_dir):
92
-        package = package_and_source_dir[0]
93
-        sources_dir = package_and_source_dir[1]
94
-        i = string.rindex(package, '-')
95
-
96
-        package_name = string.strip(package[:i])
97
-        package_sha1 = string.strip(package[i+1:])
98
-        package_path = os.path.join(sources_dir, package_name)
99
-
100
-        if not os.path.isfile(package_path):
101
-            self.downloadFileHelper(package_name, package_path, package_sha1)
102
-
103
-        elif package_sha1 != self.getFileHash(package_path):
104
-            self.downloadFileHelper(package_name, package_path, package_sha1)
105
-
106
-def _pickle(method):
107
-    if method.im_self is None:
108
-        return getattr, (method.im_class, method.im_func.func_name)
109
-    else:
110
-        return getattr, (method.im_self, method.im_func.func_name)
111
-
112
-copy_reg.pickle(types.MethodType, _pickle)
113
-
114
-if __name__ == '__main__':
115
-    usage = "Usage: %prog [options] <sources_dir>"
116
-    parser = OptionParser(usage)
117
-
118
-    parser.add_option("-c", "--config-path",  dest="config_path", default="./bintray.conf", help="Path to bintray configuation file")
119
-    parser.add_option("-s", "--sources-list-file",  dest="sources_list", default="./source_list.sha1", help="SHA1 file with sources list to download")
120
-
121
-
122
-    (options,  args) = parser.parse_args()
123
-
124
-    if (len(args)) != 1:
125
-            parser.error("Incorrect number of arguments")
126
-
127
-    p = pullSources(options.config_path, options.sources_list)
128
-    print args[0]
129
-    p.pull(args[0])