Browse code

Added libtiff, libwebp and its dependent packages

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

dthaluru authored on 2016/07/28 07:28:06
Showing 6 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,58 @@
0
+Summary:	fork of the original IJG libjpeg which uses SIMD.
1
+Name:		libjpeg-turbo
2
+Version:	1.5.0
3
+Release:	1
4
+License:	IJG
5
+URL:		http://sourceforge.net/projects/libjpeg-turbo
6
+Group:		System Environment/Libraries
7
+Vendor:		VMware, Inc.
8
+Distribution:	Photon
9
+Source0:	http://downloads.sourceforge.net/libjpeg-turbo/%{name}-%{version}.tar.gz
10
+%define sha1 libjpeg-turbo=9adc21b927e48e4c6889e77079f6c1f3eecf98ab
11
+BuildRequires:	nasm
12
+Requires:	nasm
13
+%description
14
+libjpeg-turbo is a fork of the original IJG libjpeg which uses SIMD to accelerate baseline JPEG compression and decompression. libjpeg is a library that implements JPEG image encoding, decoding and transcoding.
15
+
16
+%package	devel
17
+Summary:	Header and development files
18
+Requires:	%{name} = %{version}-%{release}
19
+%description	devel
20
+It contains the libraries and header files to create applications 
21
+
22
+%prep
23
+%setup -q 
24
+%build
25
+./configure \
26
+	--prefix=%{_prefix} \
27
+	--disable-static \
28
+	--mandir=/usr/share/man \
29
+	--with-jpeg8
30
+make %{?_smp_mflags}
31
+
32
+%install
33
+make DESTDIR=%{buildroot} install
34
+find %{buildroot} -name '*.la' -delete
35
+
36
+%post
37
+/sbin/ldconfig
38
+
39
+%postun
40
+/sbin/ldconfig
41
+
42
+%files
43
+%defattr(-,root,root)
44
+%{_bindir}/*
45
+%{_libdir}/*.so.*
46
+%{_datadir}/*
47
+
48
+%files devel
49
+%defattr(-,root,root)
50
+%{_includedir}/*
51
+%{_libdir}/*.so
52
+%{_libdir}/pkgconfig/*.pc
53
+
54
+%changelog
55
+*       Wed Jul 27 2016 Divya Thaluru <dthaluru@vmware.com> 1.5.0-1
56
+-       Initial version
57
+
0 58
new file mode 100644
... ...
@@ -0,0 +1,54 @@
0
+Summary:	contains libraries for reading and writing PNG files.
1
+Name:		libpng
2
+Version:	1.6.23
3
+Release:	1
4
+License:	libpng
5
+URL:		http://www.libpng.org/
6
+Group:		System Environment/Libraries
7
+Vendor:		VMware, Inc.
8
+Distribution:	Photon
9
+Source0:	http://downloads.sourceforge.net/libpng/%{name}-%{version}.tar.xz
10
+%define sha1 libpng=4857fb8dbd5ca7ddacc40c183e340b9ffa34a097
11
+Provides:	pkgconfig(libpng)
12
+%description
13
+The libpng package contains libraries used by other programs for reading and writing PNG files. The PNG format was designed as a replacement for GIF and, to a lesser extent, TIFF, with many improvements and extensions and lack of patent problems.
14
+
15
+%package	devel
16
+Summary:	Header and development files
17
+Requires:	%{name} = %{version}-%{release}
18
+%description	devel
19
+It contains the libraries and header files to create applications 
20
+
21
+%prep
22
+%setup -q 
23
+%build
24
+./configure \
25
+	--prefix=%{_prefix} \
26
+	--disable-static
27
+make %{?_smp_mflags}
28
+
29
+%install
30
+make DESTDIR=%{buildroot} install
31
+find %{buildroot} -name '*.la' -delete
32
+
33
+%post
34
+/sbin/ldconfig
35
+
36
+%postun
37
+/sbin/ldconfig
38
+
39
+%files
40
+%defattr(-,root,root)
41
+%{_bindir}/*
42
+%{_libdir}/*.so.*
43
+%{_datadir}/*
44
+
45
+%files devel
46
+%defattr(-,root,root)
47
+%{_includedir}/*
48
+%{_libdir}/*.so
49
+%{_libdir}/pkgconfig/*.pc
50
+
51
+%changelog
52
+*       Wed Jul 27 2016 Divya Thaluru <dthaluru@vmware.com> 1.6.23-1
53
+-       Initial version
0 54
new file mode 100644
... ...
@@ -0,0 +1,56 @@
0
+Summary:	TIFF libraries and associated utilities.
1
+Name:		libtiff
2
+Version:	4.0.6
3
+Release:	1
4
+License:	libtiff
5
+URL:		http://www.remotesensing.org/libtiff
6
+Group:		System Environment/Libraries
7
+Vendor:		VMware, Inc.
8
+Distribution:	Photon
9
+Source0:	http://download.osgeo.org/%{name}/tiff-%{version}.tar.gz
10
+%define sha1 tiff=280e27704eaca5f592b82e71ac0c78b87395e2de
11
+BuildRequires:	libjpeg-turbo-devel
12
+Requires:	libjpeg-turbo
13
+%description
14
+The LibTIFF package contains the TIFF libraries and associated utilities. The libraries are used by many programs for reading and writing TIFF files and the utilities are used for general work with TIFF files.
15
+
16
+%package	devel
17
+Summary:	Header and development files
18
+Requires:	%{name} = %{version}-%{release}
19
+%description	devel
20
+It contains the libraries and header files to create applications 
21
+
22
+%prep
23
+%setup -q -n tiff-%{version}
24
+
25
+%build
26
+./configure \
27
+	--prefix=%{_prefix} \
28
+	--disable-static
29
+make %{?_smp_mflags}
30
+
31
+%install
32
+make DESTDIR=%{buildroot} install
33
+find %{buildroot} -name '*.la' -delete
34
+
35
+%post
36
+/sbin/ldconfig
37
+
38
+%postun
39
+/sbin/ldconfig
40
+
41
+%files
42
+%defattr(-,root,root)
43
+%{_bindir}/*
44
+%{_libdir}/*.so.*
45
+%{_datadir}/*
46
+
47
+%files devel
48
+%defattr(-,root,root)
49
+%{_includedir}/*
50
+%{_libdir}/*.so
51
+%{_libdir}/pkgconfig/*.pc
52
+
53
+%changelog
54
+*       Wed Jul 27 2016 Divya Thaluru <dthaluru@vmware.com> 4.0.6-1
55
+-       Initial version
0 56
new file mode 100644
... ...
@@ -0,0 +1,64 @@
0
+Summary:	Library to encode and decode webP format images
1
+Name:		libwebp
2
+Version:	0.5.1
3
+Release:	1
4
+License:	BSD
5
+URL:		http://webmproject.org/
6
+Group:		System Environment/Libraries
7
+Vendor:		VMware, Inc.
8
+Distribution:	Photon
9
+Source0:	http://downloads.webmproject.org/releases/webp/%{name}-%{version}.tar.gz
10
+%define sha1 libwebp=66efb2213015ad3460bef64b4fb218fdc10ce83f
11
+BuildRequires:	libjpeg-turbo-devel
12
+BuildRequires:	libtiff-devel
13
+BuildRequires:	libpng-devel
14
+Requires:	libjpeg-turbo
15
+Requires:	libtiff
16
+Requires:	libpng
17
+%description
18
+The libwebp package contains a library and support programs to encode and decode images in WebP format.
19
+
20
+%package	devel
21
+Summary:	Header and development files
22
+Requires:	%{name} = %{version}-%{release}
23
+%description	devel
24
+It contains the libraries and header files to create applications 
25
+
26
+%prep
27
+%setup -q 
28
+%build
29
+./configure \
30
+	--prefix=%{_prefix} \
31
+	--enable-libwebpmux \
32
+	--enable-libwebpdemux \
33
+	--enable-libwebpdecoder \
34
+	--enable-libwebpextras  \
35
+	--enable-swap-16bit-csp \
36
+	--disable-static
37
+make %{?_smp_mflags}
38
+
39
+%install
40
+make DESTDIR=%{buildroot} install
41
+find %{buildroot} -name '*.la' -delete
42
+
43
+%post
44
+/sbin/ldconfig
45
+
46
+%postun
47
+/sbin/ldconfig
48
+
49
+%files
50
+%defattr(-,root,root)
51
+%{_bindir}/*
52
+%{_libdir}/*.so.*
53
+%{_datadir}/*
54
+
55
+%files devel
56
+%defattr(-,root,root)
57
+%{_includedir}/*
58
+%{_libdir}/*.so
59
+%{_libdir}/pkgconfig/*.pc
60
+
61
+%changelog
62
+*       Wed Jul 27 2016 Divya Thaluru <dthaluru@vmware.com> 0.5.1-1
63
+-       Initial version
0 64
new file mode 100644
... ...
@@ -0,0 +1,27 @@
0
+Summary:	Netwide Assembler.
1
+Name:		nasm
2
+Version:	2.12.02
3
+Release:	1
4
+License:	BSD
5
+URL:		http://www.nasm.us
6
+Group:		System Environment/Libraries
7
+Vendor:		VMware, Inc.
8
+Distribution:	Photon
9
+Source0:	http://www.nasm.us/pub/nasm/releasebuilds/%{version}/%{name}-%{version}.tar.gz
10
+%define sha1 nasm=6d23d4be63f3a73d7df3053e65168f7906dd99e7
11
+%description
12
+NASM (Netwide Assembler) is an 80x86 assembler designed for portability and modularity. It includes a disassembler as well. 
13
+%prep
14
+%setup -q 
15
+%build
16
+./configure --prefix=%{_prefix}
17
+make %{?_smp_mflags}
18
+%install
19
+make INSTALLROOT=%{buildroot} install
20
+%files
21
+%defattr(-,root,root)
22
+%{_bindir}/*
23
+%{_datadir}/*
24
+%changelog
25
+*	Wed Jul 27 2016 Divya Thaluru <dthaluru@vmware.com> 2.12.02-1
26
+-	Initial version
... ...
@@ -136,6 +136,11 @@
136 136
         "tmux",
137 137
         "nginx",
138 138
         "kaigen-gothic-cjk",
139
-        "dialog"
139
+        "dialog",
140
+	"libwebp",
141
+	"libtiff",
142
+	"libpng",
143
+	"libjpeg-turbo",
144
+	"nasm"
140 145
             ]
141 146
 }