Browse code

Adding rrdtool and supporting packages cairo, fontconfig, freetype2, harfbuzz, pango, pixman

Change-Id: I736a834a8808ca9ece9df623bb351606e85e95d0
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/2300
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Priyesh Padmavilasom <ppadmavilasom@vmware.com>

DheerajSShetty authored on 2017/04/06 07:55:22
Showing 8 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,77 @@
0
+Summary:	A 2D graphics library.
1
+Name:		cairo
2
+Version:	1.14.8
3
+Release:	1%{?dist}
4
+License:	LGPLv2 or MPLv1.1
5
+URL:		http://cairographics.org
6
+Group:		System Environment/Libraries
7
+Vendor:		VMware, Inc.
8
+Distribution:	Photon
9
+Source0:	http://cairographics.org/releases/%{name}-%{version}.tar.xz
10
+%define sha1 cairo=c6f7b99986f93c9df78653c3e6a3b5043f65145e
11
+BuildRequires:	pkg-config
12
+BuildRequires:	libpng-devel
13
+BuildRequires:	libxml2-devel
14
+BuildRequires:	pixman-devel
15
+BuildRequires:	freetype2-devel
16
+BuildRequires:	fontconfig-devel
17
+BuildRequires:	glib-devel
18
+Requires:	pixman
19
+Requires:	glib
20
+Requires:	libpng
21
+Requires:	expat
22
+
23
+%description
24
+Cairo is a 2D graphics library with support for multiple output devices.
25
+
26
+%package	devel
27
+Summary:	Header and development files
28
+Requires:	%{name} = %{version}-%{release}
29
+Requires:	freetype2-devel
30
+Requires:	pixman-devel
31
+
32
+%description	devel
33
+It contains the libraries and header files to create applications 
34
+
35
+%prep
36
+%setup -q 
37
+%build
38
+./configure \
39
+	--prefix=%{_prefix} \
40
+	--enable-xlib=no \
41
+	--enable-xlib-render=no \
42
+	--enable-win32=no \
43
+        CFLAGS="-O3 -fPIC" \
44
+	--disable-static
45
+make %{?_smp_mflags}
46
+
47
+%install
48
+make DESTDIR=%{buildroot} install
49
+find %{buildroot} -name '*.la' -delete
50
+
51
+%check
52
+make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
53
+
54
+%post
55
+/sbin/ldconfig
56
+
57
+%postun
58
+/sbin/ldconfig
59
+
60
+%files
61
+%defattr(-,root,root)
62
+%{_bindir}/*
63
+%{_libdir}/*.so.*
64
+%{_libdir}/cairo/*.so*
65
+%{_datadir}/*
66
+
67
+%files devel
68
+%defattr(-,root,root)
69
+%dir %{_includedir}/%{name}
70
+%{_includedir}/%{name}/*
71
+%{_libdir}/*.so
72
+%{_libdir}/pkgconfig/*.pc
73
+
74
+%changelog
75
+*       Wed Apr 05 2017 Dheeraj Shetty <dheerajs@vmware.com> 1.14.8-1
76
+-       Initial version
0 77
new file mode 100644
... ...
@@ -0,0 +1,72 @@
0
+From 20cddc824c6501c2082cac41b162c34cd5fcc530 Mon Sep 17 00:00:00 2001
1
+From: Khem Raj <raj.khem@gmail.com>
2
+Date: Sun, 11 Dec 2016 14:32:00 -0800
3
+Subject: [PATCH] Avoid conflicts with integer width macros from TS
4
+ 18661-1:2014
5
+
6
+glibc 2.25+ has now defined these macros in <limits.h>
7
+https://sourceware.org/git/?p=glibc.git;a=commit;h=5b17fd0da62bf923cb61d1bb7b08cf2e1f1f9c1a
8
+
9
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
10
+---
11
+Upstream-Status: Submitted
12
+
13
+ fontconfig/fontconfig.h | 2 +-
14
+ src/fcobjs.h            | 2 +-
15
+ src/fcobjshash.gperf    | 2 +-
16
+ src/fcobjshash.h        | 2 +-
17
+ 4 files changed, 4 insertions(+), 4 deletions(-)
18
+
19
+Index: fontconfig-2.12.1/fontconfig/fontconfig.h
20
+===================================================================
21
+--- fontconfig-2.12.1.orig/fontconfig/fontconfig.h
22
+@@ -128,7 +128,8 @@ typedef int		FcBool;
23
+ #define FC_USER_CACHE_FILE	    ".fonts.cache-" FC_CACHE_VERSION
24
+ 
25
+ /* Adjust outline rasterizer */
26
+-#define FC_CHAR_WIDTH	    "charwidth"	/* Int */
27
++#define FC_CHARWIDTH	    "charwidth"	/* Int */
28
++#define FC_CHAR_WIDTH	    FC_CHARWIDTH
29
+ #define FC_CHAR_HEIGHT	    "charheight"/* Int */
30
+ #define FC_MATRIX	    "matrix"    /* FcMatrix */
31
+ 
32
+Index: fontconfig-2.12.1/src/fcobjs.h
33
+===================================================================
34
+--- fontconfig-2.12.1.orig/src/fcobjs.h
35
+@@ -51,7 +51,7 @@ FC_OBJECT (DPI,			FcTypeDouble,	NULL)
36
+ FC_OBJECT (RGBA,		FcTypeInteger,	NULL)
37
+ FC_OBJECT (SCALE,		FcTypeDouble,	NULL)
38
+ FC_OBJECT (MINSPACE,		FcTypeBool,	NULL)
39
+-FC_OBJECT (CHAR_WIDTH,		FcTypeInteger,	NULL)
40
++FC_OBJECT (CHARWIDTH,		FcTypeInteger,	NULL)
41
+ FC_OBJECT (CHAR_HEIGHT,		FcTypeInteger,	NULL)
42
+ FC_OBJECT (MATRIX,		FcTypeMatrix,	NULL)
43
+ FC_OBJECT (CHARSET,		FcTypeCharSet,	FcCompareCharSet)
44
+Index: fontconfig-2.12.1/src/fcobjshash.gperf
45
+===================================================================
46
+--- fontconfig-2.12.1.orig/src/fcobjshash.gperf
47
+@@ -44,7 +44,7 @@ int id;
48
+ "rgba",FC_RGBA_OBJECT
49
+ "scale",FC_SCALE_OBJECT
50
+ "minspace",FC_MINSPACE_OBJECT
51
+-"charwidth",FC_CHAR_WIDTH_OBJECT
52
++"charwidth",FC_CHARWIDTH_OBJECT
53
+ "charheight",FC_CHAR_HEIGHT_OBJECT
54
+ "matrix",FC_MATRIX_OBJECT
55
+ "charset",FC_CHARSET_OBJECT
56
+Index: fontconfig-2.12.1/src/fcobjshash.h
57
+===================================================================
58
+--- fontconfig-2.12.1.orig/src/fcobjshash.h
59
+@@ -284,7 +284,7 @@ FcObjectTypeLookup (register const char
60
+       {(int)(long)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str43,FC_CHARSET_OBJECT},
61
+       {-1},
62
+ #line 47 "fcobjshash.gperf"
63
+-      {(int)(long)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str45,FC_CHAR_WIDTH_OBJECT},
64
++      {(int)(long)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str45,FC_CHARWIDTH_OBJECT},
65
+ #line 48 "fcobjshash.gperf"
66
+       {(int)(long)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str46,FC_CHAR_HEIGHT_OBJECT},
67
+ #line 55 "fcobjshash.gperf"
0 68
new file mode 100644
... ...
@@ -0,0 +1,71 @@
0
+Summary:	library for configuring and customizing font access.
1
+Name:		fontconfig
2
+Version:	2.12.1
3
+Release:	1%{?dist}
4
+License:	BSD/GPL
5
+URL:		https://www.freedesktop.org/wiki/Software/fontconfig/
6
+Group:		System Environment/Libraries
7
+Vendor:		VMware, Inc.
8
+Distribution:	Photon
9
+Source0:	https://www.freedesktop.org/software/fontconfig/release/%{name}-%{version}.tar.gz
10
+%define sha1 fontconfig=57a5323ebdb58b3f8062a735e0927b0f5b9a7729
11
+Patch0:		0001-Avoid-conflicts-with-integer-width-macros-from-TS-18.patch
12
+BuildRequires:	freetype2-devel
13
+BuildRequires:	libxml2
14
+BuildRequires:	expat
15
+Provides:	pkgconfig(fontconfig)
16
+%description
17
+Fontconfig can discover new fonts when installed automatically, removing a common source of configuration problems, perform font name substitution, so that appropriate alternative fonts can be selected if fonts are missing, identify the set of fonts required to completely cover a set of languages.
18
+
19
+%package	devel
20
+Summary:	Header and development files
21
+Requires:	%{name} = %{version}-%{release}
22
+%description	devel
23
+It contains the libraries and header files to create applications 
24
+
25
+%prep
26
+%setup -q
27
+%patch0 -p1
28
+
29
+%build
30
+./configure \
31
+	--prefix=%{_prefix} \
32
+	--sysconfdir=/etc \
33
+	--localstatedir=/var \
34
+	--docdir=/usr/share/doc/%{name}-%{version} \
35
+	--disable-static
36
+make %{?_smp_mflags}
37
+
38
+%install
39
+make DESTDIR=%{buildroot} install
40
+find %{buildroot} -name '*.la' -delete
41
+
42
+%check
43
+make %{?_smp_mflags} -k check
44
+
45
+%post
46
+/sbin/ldconfig
47
+
48
+%postun
49
+/sbin/ldconfig
50
+
51
+%files
52
+%defattr(-,root,root)
53
+%{_bindir}/*
54
+%{_libdir}/*.so*
55
+%{_datadir}/*
56
+%{_mandir}/man1/*
57
+%{_mandir}/man5/*
58
+%config(noreplace) %{_sysconfdir}/fonts/*
59
+%{_defaultdocdir}/%{name}-%{version}/*
60
+
61
+%files devel
62
+%defattr(-,root,root)
63
+%{_libdir}/libfontconfig.so
64
+%{_includedir}/fontconfig/*
65
+%{_libdir}/pkgconfig/*
66
+%{_mandir}/man3/*
67
+
68
+%changelog
69
+*       Fri Nov 11 2016 Dheeraj Shetty <dheerajs@vmware.com> 2.12.1-1
70
+-       Initial version
0 71
new file mode 100644
... ...
@@ -0,0 +1,60 @@
0
+Summary:	software font engine.
1
+Name:		freetype2
2
+Version:	2.7.1
3
+Release:	1%{?dist}
4
+License:	BSD/GPL
5
+URL:		http://www.freetype.org/
6
+Group:		System Environment/Libraries
7
+Vendor:		VMware, Inc.
8
+Distribution:	Photon
9
+Source0:	http://download.savannah.gnu.org/releases/freetype/freetype-%{version}.tar.gz
10
+%define sha1 freetype=60fb8097901a887b8e8f6e7f777ef0516ae68022
11
+BuildRequires:	libtool
12
+BuildRequires:	zlib-devel
13
+
14
+%description
15
+FreeType is a software font engine that is designed to be small, efficient, highly customizable, and portable while capable of producing high-quality output (glyph images). It can be used in graphics libraries, display servers, font conversion tools, text image generation tools, and many other products as well.
16
+
17
+%package	devel
18
+Summary:	Header and development files
19
+Requires:	freetype2 = %{version}-%{release}
20
+%description	devel
21
+It contains the libraries and header files to create applications 
22
+
23
+%prep
24
+%setup -q -n freetype-%{version}
25
+%build
26
+./configure \
27
+	--prefix=%{_prefix} \
28
+	--with-harfbuzz=no
29
+make %{?_smp_mflags}
30
+
31
+%install
32
+make DESTDIR=%{buildroot} install
33
+find %{buildroot} -name '*.la' -delete
34
+find %{buildroot} -name '*.a' -delete
35
+
36
+%check
37
+make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
38
+
39
+%post
40
+/sbin/ldconfig
41
+
42
+%postun
43
+/sbin/ldconfig
44
+
45
+%files
46
+%defattr(-,root,root)
47
+%{_bindir}/*
48
+%{_libdir}/*.so*
49
+%{_datadir}/*
50
+
51
+%files devel
52
+%defattr(-,root,root)
53
+%{_includedir}/*
54
+%{_libdir}/*.so
55
+%{_libdir}/pkgconfig/*.pc
56
+
57
+%changelog
58
+*       Fri Nov 11 2016 Dheeraj Shetty <dheerajs@vmware.com> 2.7.1-1
59
+-       Initial version
0 60
new file mode 100644
... ...
@@ -0,0 +1,60 @@
0
+Summary:	opentype text shaping engine
1
+Name:		harfbuzz
2
+Version:	1.4.5
3
+Release:	1%{?dist}
4
+License:	MIT
5
+URL:		http://harfbuzz.org
6
+Group:		System Environment/Libraries
7
+Vendor:		VMware, Inc.
8
+Distribution:	Photon
9
+Source0:	https://www.freedesktop.org/software/harfbuzz/release/%{name}-%{version}.tar.bz2
10
+%define sha1 harfbuzz=e979eb20b789c1fc47107ef93a584924e34dd195
11
+BuildRequires:	glib-devel
12
+BuildRequires:	freetype2
13
+BuildRequires:	freetype2-devel
14
+
15
+%description
16
+HarfBuzz is an implementation of the OpenType Layout engine.
17
+
18
+%package	devel
19
+Summary:	Header and development files
20
+Requires:	%{name} = %{version}-%{release}
21
+%description	devel
22
+It contains the libraries and header files to create applications 
23
+
24
+%prep
25
+%setup -q 
26
+%build
27
+./configure \
28
+	--prefix=%{_prefix}
29
+make %{?_smp_mflags}
30
+
31
+%install
32
+make DESTDIR=%{buildroot} install
33
+find %{buildroot} -name '*.la' -delete
34
+
35
+%check
36
+make %{?_smp_mflags} -k check
37
+
38
+%post
39
+/sbin/ldconfig
40
+
41
+%postun
42
+/sbin/ldconfig
43
+
44
+%files
45
+%defattr(-,root,root)
46
+%{_libdir}/*.so*
47
+%{_bindir}/*
48
+
49
+%files devel
50
+%defattr(-,root,root)
51
+%doc %{_datadir}/gtk-doc
52
+%dir %{_includedir}/%{name}
53
+%{_includedir}/%{name}/*
54
+%{_libdir}/*.so
55
+%{_libdir}/pkgconfig/*.pc
56
+
57
+%changelog
58
+*       Wed Apr 05 2017 Dheeraj Shetty <dheerajs@vmware.com> 1.4.5-1
59
+-       Initial version
0 60
new file mode 100644
... ...
@@ -0,0 +1,65 @@
0
+Summary:	library for laying out and rendering of text.
1
+Name:		pango
2
+Version:	1.40.4
3
+Release:	1%{?dist}
4
+License:	LGPLv2 or MPLv1.1
5
+URL:		http://pango.org
6
+Group:		System Environment/Libraries
7
+Vendor:		VMware, Inc.
8
+Distribution:	Photon
9
+Source0:	https://download.gnome.org/sources/pango/1.40/%{name}-%{version}.tar.xz
10
+%define sha1 pango=761458faab28cb70ba62e01ec9379d03bc5339c0
11
+BuildRequires:	glib-devel
12
+BuildRequires:	cairo
13
+BuildRequires:	cairo-devel
14
+BuildRequires:	libpng-devel
15
+BuildRequires:	fontconfig
16
+BuildRequires:	fontconfig-devel
17
+BuildRequires:	harfbuzz
18
+BuildRequires:	harfbuzz-devel
19
+BuildRequires:	freetype2
20
+Requires:	harfbuzz-devel
21
+%description
22
+Pango is a library for laying out and rendering of text, with an emphasis on internationalization. Pango can be used anywhere that text layout is needed, though most of the work on Pango so far has been done in the context of the GTK+ widget toolkit.
23
+
24
+%package	devel
25
+Summary:	Header and development files
26
+Requires:	%{name} = %{version}-%{release}
27
+%description	devel
28
+It contains the libraries and header files to create applications 
29
+
30
+%prep
31
+%setup -q
32
+%build
33
+./configure \
34
+	--prefix=%{_prefix}
35
+make %{?_smp_mflags}
36
+%install
37
+make DESTDIR=%{buildroot} install
38
+find %{buildroot} -name '*.la' -delete
39
+
40
+%check
41
+#These tests are known to fail. Hence sending exit 0
42
+make %{?_smp_mflags} -k check || exit 0
43
+
44
+%post
45
+/sbin/ldconfig
46
+
47
+%postun
48
+/sbin/ldconfig
49
+
50
+%files
51
+%defattr(-,root,root)
52
+%{_bindir}/*
53
+%{_libdir}/*.so*
54
+%{_datadir}/*
55
+
56
+%files devel
57
+%defattr(-,root,root)
58
+%{_includedir}/*
59
+%{_libdir}/*.so
60
+%{_libdir}/pkgconfig/*.pc
61
+
62
+%changelog
63
+*       Tue Apr 04 2017 Dheeraj Shetty <dheerajs@vmware.com> 1.40.4-1
64
+-       Initial version
0 65
new file mode 100644
... ...
@@ -0,0 +1,61 @@
0
+Summary:	pixel manipulation library.
1
+Name:		pixman
2
+Version:	0.34.0
3
+Release:	1%{?dist}
4
+License:	MIT
5
+URL:		http://cgit.freedesktop.org/pixman/
6
+Group:		System Environment/Libraries
7
+Vendor:		VMware, Inc.
8
+Distribution:	Photon
9
+Source0:	https://xorg.freedesktop.org/archive/individual/lib/%{name}-%{version}.tar.gz
10
+%define sha1 pixman=a1b1683c1a55acce9d928fea1ab6ceb79142ddc7
11
+BuildRequires:	libtool
12
+
13
+%description
14
+Pixman is a pixel manipulation library for X and Cairo.
15
+
16
+%package	devel
17
+Summary:	Header and development files
18
+Requires:	%{name} = %{version}-%{release}
19
+Provides:	pkgconfig(pixman-1)
20
+
21
+%description	devel
22
+It contains the libraries and header files to create applications 
23
+
24
+%prep
25
+%setup -q 
26
+%build
27
+./configure \
28
+	--prefix=%{_prefix} \
29
+	CFLAGS="-O3 -fPIC" \
30
+	--disable-static
31
+make %{?_smp_mflags}
32
+
33
+%install
34
+make DESTDIR=%{buildroot} install
35
+find %{buildroot} -name '*.la' -delete
36
+
37
+%check
38
+make %{?_smp_mflags} -k check
39
+
40
+%post
41
+/sbin/ldconfig
42
+
43
+%postun
44
+/sbin/ldconfig
45
+
46
+%files
47
+%defattr(-,root,root)
48
+%doc COPYING
49
+%{_libdir}/*.so*
50
+
51
+%files devel
52
+%defattr(-,root,root)
53
+%dir %{_includedir}/pixman-1
54
+%{_includedir}/*
55
+%{_libdir}/*.so
56
+%{_libdir}/pkgconfig/*.pc
57
+
58
+%changelog
59
+*       Fri Nov 11 2016 Dheeraj Shetty <dheerajs@vmware.com> 0.34.0-1
60
+-       Initial version
0 61
new file mode 100644
... ...
@@ -0,0 +1,82 @@
0
+Summary:	Round Robin Database Tool to store and display time-series data
1
+Name:		rrdtool
2
+Version:	1.6.0
3
+Release:	1%{?dist}
4
+License:	LGPLv2 or MPLv1.1
5
+URL:		http://oss.oetiker.ch/rrdtool/
6
+Group:		System Environment/Libraries
7
+Vendor:		VMware, Inc.
8
+Distribution:	Photon
9
+Source0:	https://github.com/oetiker/rrdtool-1.x/releases/download/v1.6.0/%{name}-%{version}.tar.gz
10
+%define sha1 rrdtool=9866b41bda9416188f236d61d24f185b173fd571
11
+BuildRequires:	pkg-config
12
+BuildRequires:	libpng-devel
13
+BuildRequires:	pango-devel
14
+BuildRequires:	libxml2-devel
15
+BuildRequires:	pixman-devel
16
+BuildRequires:	freetype2-devel
17
+BuildRequires:	fontconfig-devel
18
+BuildRequires:	cairo-devel
19
+BuildRequires:	glib-devel
20
+BuildRequires:	systemd
21
+Requires:	systemd
22
+
23
+%description
24
+RRD is the Acronym for Round Robin Database. RRD is a system to store and
25
+display time-series data.
26
+
27
+%package	devel
28
+Summary:	Header and development files
29
+Requires:	%{name} = %{version}-%{release}
30
+%description	devel
31
+It contains the libraries and header files to create applications 
32
+
33
+%prep
34
+%setup -q 
35
+%build
36
+./configure \
37
+	--prefix=%{_prefix}	\
38
+	--disable-tcl		\
39
+	--disable-python 	\
40
+	--disable-perl		\
41
+	--disable-lua		\
42
+	--disable-examples	\
43
+        --with-systemdsystemunitdir=%{_unitdir} \
44
+        --disable-docs 		\
45
+	--disable-static
46
+make %{?_smp_mflags}
47
+
48
+%install
49
+make DESTDIR=%{buildroot} install
50
+find %{buildroot} -name '*.la' -delete
51
+
52
+#%check
53
+#make %{?_smp_mflags} -k check
54
+
55
+%post
56
+/sbin/ldconfig
57
+%systemd_post rrdcached.service
58
+
59
+%preun
60
+%systemd_preun rrdcached.service
61
+
62
+%postun
63
+/sbin/ldconfig
64
+%systemd_postun_with_restart rrdcached.service
65
+
66
+%files
67
+%defattr(-,root,root)
68
+%{_bindir}/*
69
+%{_libdir}/*.so*
70
+%{_unitdir}/rrdcached.service
71
+%{_unitdir}/rrdcached.socket
72
+
73
+%files devel
74
+%defattr(-,root,root)
75
+%{_includedir}/*
76
+%{_libdir}/*.so
77
+%{_libdir}/pkgconfig/*.pc
78
+
79
+%changelog
80
+*       Wed Apr 5 2017 Dheeraj Shetty <dheerajs@vmware.com> 1.6.0-1
81
+-       Initial version