Browse code

Add perl-CGI to git requires

Change-Id: I2d646b6da6ffe253271de0cc023c1ca5bcfb0737
Reviewed-on: http://photon-jenkins.eng.vmware.com/362
Tested-by: jenkins-photon <wangnan2015@hotmail.com>
Reviewed-by: Divya Thaluru <dthaluru@vmware.com>

suezzelur authored on 2016/01/15 18:42:53
Showing 3 changed files
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:	Fast distributed version control system
2 2
 Name:		git
3 3
 Version:	2.1.2
4
-Release:	1%{?dist}
4
+Release:	2%{?dist}
5 5
 License:	GPLv2
6 6
 URL:		http://git-scm.com/
7 7
 Group:		System Environment/Programming
... ...
@@ -19,6 +19,7 @@ Requires:	curl
19 19
 Requires:	expat
20 20
 Requires:	perl-YAML
21 21
 Requires:	perl-DBI
22
+Requires:       perl-CGI
22 23
 
23 24
 %description
24 25
 Git is a free and open source, distributed version control system 
... ...
@@ -82,5 +83,7 @@ rm -rf %{buildroot}/*
82 82
 %defattr(-,root,root)
83 83
 
84 84
 %changelog
85
+*	Wed Jan 13 2016 Anish Swaminathan <anishs@vmware.com> 2.1.2-2
86
+-	Add requires for perl-CGI.
85 87
 *	Fri Apr 3 2015 Divya Thaluru <dthaluru@vmware.com> 2.1.2-1
86 88
 -	Initial build.	First version
87 89
new file mode 100644
... ...
@@ -0,0 +1,68 @@
0
+# Got the intial spec from Fedora and modified it
1
+
2
+Summary:        Handle Common Gateway Interface requests and responses
3
+Name:           perl-CGI
4
+Version:        4.25
5
+Release:        1%{?dist}
6
+License:        GPL+ or Artistic
7
+Group:          Development/Libraries
8
+Source0:        http://search.cpan.org/CPAN/authors/id/L/LE/LEEJO/CGI-%{version}.tar.gz
9
+URL:            http://search.cpan.org/dist/CGI
10
+%define sha1 CGI=e7cfaffbcfa32c3c7c33f8ac780f99d43084f056
11
+Vendor:		VMware, Inc.
12
+Distribution:	Photon
13
+BuildArch:      noarch
14
+BuildRequires:  perl
15
+BuildRequires:  coreutils
16
+BuildRequires:  findutils
17
+BuildRequires:  make
18
+BuildRequires:  sed
19
+Requires:	perl
20
+
21
+%{?perl_default_filter}
22
+# Remove under-specified dependencies
23
+%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((File::Spec)\\)$
24
+# Remove false dependencies
25
+%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((Fh)\\)
26
+%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(MultipartBuffer\\)$
27
+%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(Fh\\)
28
+
29
+%description
30
+CGI.pm is a stable, complete and mature solution for processing and preparing
31
+HTTP requests and responses. Major features including processing form
32
+submissions, file uploads, reading and writing cookies, query string
33
+generation and manipulation, and processing and preparing HTTP headers. Some
34
+HTML generation utilities are included as well.
35
+
36
+CGI.pm performs very well in in a vanilla CGI.pm environment and also comes 
37
+with built-in support for mod_perl and mod_perl2 as well as FastCGI.
38
+
39
+%prep
40
+%setup -q -n CGI-%{version}
41
+iconv -f iso8859-1 -t utf-8 < Changes > Changes.1
42
+mv Changes.1 Changes
43
+sed -i 's?usr/bin perl?usr/bin/perl?' t/init.t
44
+chmod -c -x examples/*
45
+
46
+%build
47
+perl Makefile.PL INSTALLDIRS=vendor
48
+make %{?_smp_mflags}
49
+
50
+%install
51
+make pure_install DESTDIR=%{buildroot}
52
+find %{buildroot} -type f -name .packlist -delete
53
+%{_fixperms} %{buildroot}/*
54
+
55
+%check
56
+make test
57
+
58
+%files
59
+%license LICENSE
60
+%doc Changes README.md examples/
61
+%{perl_vendorlib}/*
62
+%{_mandir}/man3/*.3*
63
+
64
+%changelog
65
+*	Wed Jan 13 2016 Anish Swaminathan <anishs@vmware.com> 4.25-1
66
+-	Initial version.
67
+
... ...
@@ -4,7 +4,7 @@
4 4
                 "python2-tools", "linux-api-headers","gawk","check", "libltdl", "libltdl-devel", "pcre-devel", "glib-devel", 
5 5
                 "glibc-devel", "glibc-lang", "zlib-devel", "gettext", "git", "git-lang", "autoconf", "perl", "perl-DBI","perl-Config-IniFiles",
6 6
                 "perl-DBIx-Simple", "perl-DBD-SQLite","perl-Exporter-Tiny","perl-JSON-XS","perl-List-MoreUtils","perl-Module-Install",
7
-                "perl-Module-ScanDeps","perl-Module-Build","perl-Object-Accessor","perl-Types-Serialiser","perl-WWW-Curl","perl-YAML-Tiny","perl-YAML","perl-common-sense","perl-libintl","tcsh",
7
+                "perl-Module-ScanDeps","perl-Module-Build","perl-Object-Accessor","perl-Types-Serialiser","perl-WWW-Curl","perl-YAML-Tiny","perl-YAML","perl-common-sense","perl-libintl","perl-CGI","tcsh",
8 8
                 "gobject-introspection", "gobject-introspection-devel", "gobject-introspection-python", "procps-ng-devel", 
9 9
                 "bash-lang", "kbd", "coreutils-lang", "libxslt", "docbook-xml", "docbook-xsl", "gtk-doc", "popt-devel", "texinfo", "tar", 
10 10
                 "kubernetes", "cyrus-sasl", "openldap", "binutils", "binutils-devel", "python-iniparse", "psmisc", "etcd", "openssl-devel",