Browse code

Added libgd

Change-Id: I0fc3a3a4d921cbcdd3ba88ac97f6efe494ec88e9
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/1244
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: suezzelur <anishs@vmware.com>

harishspqr authored on 2016/07/30 06:52:39
Showing 4 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,49 @@
0
+Summary:	GD is an open source code library for the dynamic creation of images by programmers.
1
+Name:		libgd
2
+Version:	2.2.3
3
+Release:	1
4
+License:	MIT
5
+URL:		https://libgd.github.io/
6
+Group:		System/Libraries
7
+Vendor:		VMware, Inc.
8
+Distribution:	Photon
9
+Source0:	https://github.com/libgd/libgd/releases/download/gd-2.2.3/%{name}-%{version}.tar.gz
10
+%define sha1 libgd=8681e4c801e51d62c13384a9334f1bd253ce630d
11
+BuildRequires:	libjpeg-turbo-devel 
12
+BuildRequires:	libpng-devel
13
+BuildRequires:	libwebp-devel
14
+BuildRequires:	libtiff-devel
15
+Requires:		libpng
16
+Requires:		libwebp
17
+Requires:		libtiff
18
+Requires:		libjpeg-turbo
19
+Provides:	pkgconfig(libgd)
20
+%description
21
+GD is an open source code library for the dynamic creation of images by programmers.
22
+
23
+GD is written in C, and "wrappers" are available for Perl, PHP and other languages. GD can read and write many different image formats. GD is commonly used to generate charts, graphics, thumbnails, and most anything else, on the fly.
24
+%package	devel
25
+Summary:	Header and development files
26
+Requires:	%{name} = %{version}
27
+%description	devel
28
+Header & Development files 
29
+%prep
30
+%setup -q 
31
+%build
32
+./configure --prefix=%{_prefix} --with-webp --with-tiff --with-jpeg --with-png --disable-werror --disable-static
33
+make %{?_smp_mflags}
34
+%install
35
+make DESTDIR=%{buildroot} install
36
+%files
37
+%defattr(-,root,root)
38
+%{_bindir}/*
39
+%{_libdir}/*
40
+%exclude %{_libdir}/debug/
41
+%exclude %{_libdir}/*.la
42
+%files devel
43
+%defattr(-,root,root)
44
+%{_includedir}/*
45
+%{_libdir}/*.la
46
+%changelog
47
+*	Thu Jul 28 2016 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 2.2.3-1
48
+-	Initial version
... ...
@@ -26,6 +26,7 @@ make
26 26
 
27 27
 %install
28 28
 make DESTDIR=%{buildroot} install
29
+find %{buildroot}%{_libdir} -name '*.la' -delete
29 30
 
30 31
 %post -p /sbin/ldconfig
31 32
 
... ...
@@ -34,7 +35,7 @@ make DESTDIR=%{buildroot} install
34 34
 %files
35 35
 %defattr(-,root,root)
36 36
 %{_bindir}/ksba-config
37
-%{_libdir}/*
37
+%{_libdir}/*.so*
38 38
 %{_includedir}/*
39 39
 %{_datadir}/aclocal/ksba.m4
40 40
 %{_datadir}/info/ksba.info.gz
... ...
@@ -37,6 +37,7 @@ make
37 37
 
38 38
 %install
39 39
 make DESTDIR=%{buildroot} install
40
+find %{buildroot}%{_libdir} -name '*.la' -delete
40 41
 
41 42
 %post -p /sbin/ldconfig
42 43
 
... ...
@@ -50,7 +51,7 @@ make DESTDIR=%{buildroot} install
50 50
 %defattr(-,root,root)
51 51
 %{_bindir}/*
52 52
 %{_includedir}/*
53
-%{_libdir}/*
53
+%{_libdir}/*.so
54 54
 %{_mandir}/*/*
55 55
 %{_datadir}/aclocal/*
56 56
 
... ...
@@ -122,6 +122,7 @@
122 122
 	"falco",
123 123
         "zsh",
124 124
 	"iotop",
125
+	"libgd",
125 126
         "rsync",
126 127
         "paramiko",
127 128
         "ecdsa",