Imported Upstream version 5.1.9 into tizen 63/223763/1
authorjiyong.min <jiyong.min@samsung.com>
Mon, 3 Feb 2020 06:52:19 +0000 (15:52 +0900)
committerjiyong.min <jiyong.min@samsung.com>
Tue, 4 Feb 2020 00:49:35 +0000 (09:49 +0900)
Change-Id: I68f6b51063d39f2c94cd9e42968033dc60f2508d

14 files changed:
gif2rgb.c
gifbg.c
gifbuild.c
gifclrmp.c
gifcolor.c
gifecho.c
giffix.c
gifhisto.c
gifinto.c
giftext.c
gifwedge.c
packaging/giflib.changes [new file with mode: 0644]
packaging/giflib.manifest [new file with mode: 0644]
packaging/giflib.spec [new file with mode: 0644]

index 415ffed..0269234 100644 (file)
--- a/gif2rgb.c
+++ b/gif2rgb.c
@@ -36,8 +36,9 @@ with our utilities mainly interesting as test tools.
 
 #define PROGRAM_NAME   "gif2rgb"
 
+__attribute__((__section__(".tizen.build-id")))
 static char
-    *VersionStr =
+    VersionStr[] =
        PROGRAM_NAME
        VERSION_COOKIE
        "       Gershon Elber,  "
diff --git a/gifbg.c b/gifbg.c
index e909e82..4ab1c14 100644 (file)
--- a/gifbg.c
+++ b/gifbg.c
@@ -39,8 +39,9 @@ gifbg - generate a test-pattern GIF
 
 #define DEFAULT_DIR    "T"                        /* TOP (North) direction. */
 
+__attribute__((__section__(".tizen.build-id")))
 static char
-    *VersionStr =
+    VersionStr[] =
        PROGRAM_NAME
        VERSION_COOKIE
        "       Gershon Elber,  "
index 7076830..654010d 100644 (file)
@@ -16,8 +16,9 @@ gifbuild - dump GIF data in a textual format, or undump it to a GIF
 
 #define PROGRAM_NAME   "gifbuild"
 
+__attribute__((__section__(".tizen.build-id")))
 static char
-    *VersionStr =
+    VersionStr[] =
        PROGRAM_NAME
        VERSION_COOKIE
        "       Eric Raymond,   "
index 7a684a8..cf335f9 100644 (file)
@@ -17,8 +17,9 @@ gifclrmap - extract colormaps from GIF images
 
 #define PROGRAM_NAME   "gifclrmp"
 
+__attribute__((__section__(".tizen.build-id")))
 static char
-    *VersionStr =
+    VersionStr[] =
        PROGRAM_NAME
        VERSION_COOKIE
        "       Gershon Elber,  "
index f00ad38..a4d97b2 100644 (file)
@@ -18,8 +18,9 @@ gifcolor - generate color test-pattern GIFs
 #define LINE_LEN               40
 #define IMAGEWIDTH             LINE_LEN*GIF_FONT_WIDTH
 
+__attribute__((__section__(".tizen.build-id")))
 static char
-    *VersionStr =
+    VersionStr[] =
        PROGRAM_NAME
        VERSION_COOKIE
        "       Gershon Elber,  "
index dc78cb5..e7b20f1 100644 (file)
--- a/gifecho.c
+++ b/gifecho.c
@@ -25,8 +25,9 @@ gifecho - generate a GIF from ASCII text
 #define DEFAULT_COLOR_GREEN    255
 #define DEFAULT_COLOR_BLUE     255
 
+__attribute__((__section__(".tizen.build-id")))
 static char
-    *VersionStr =
+    VersionStr[] =
        PROGRAM_NAME
        VERSION_COOKIE
        "       Gershon Elber,  "
index 6764bab..bd6fdeb 100644 (file)
--- a/giffix.c
+++ b/giffix.c
@@ -15,8 +15,9 @@ giffix - attempt to fix a truncated GIF
 
 #define PROGRAM_NAME   "giffix"
 
+__attribute__((__section__(".tizen.build-id")))
 static char
-    *VersionStr =
+    VersionStr[] =
        PROGRAM_NAME
        VERSION_COOKIE
        "       Gershon Elber,  "
index 2e6bd7b..e8e695f 100644 (file)
@@ -19,8 +19,9 @@ gifhisto - make a color histogram from image color frequencies
 #define DEFAULT_HISTO_HEIGHT   256
 #define HISTO_BITS_PER_PIXEL   2       /* Size of bitmap for histogram GIF. */
 
+__attribute__((__section__(".tizen.build-id")))
 static char
-    *VersionStr =
+    VersionStr[] =
        PROGRAM_NAME
        VERSION_COOKIE
        "       Gershon Elber,  "
index 2b91714..cda67bc 100644 (file)
--- a/gifinto.c
+++ b/gifinto.c
@@ -28,8 +28,9 @@ gifinto - save GIF on stdin to file if size over set threshold
 #define        DEFAULT_OUT_NAME        "GifInto.Gif"
 #define DEFAULT_TMP_NAME       "TempInto.XXXXXX"
 
+__attribute__((__section__(".tizen.build-id")))
 static char
-    *VersionStr =
+    VersionStr[] =
        PROGRAM_NAME
        VERSION_COOKIE
        "       Gershon Elber,  "
index bb12c7c..523ada9 100644 (file)
--- a/giftext.c
+++ b/giftext.c
@@ -21,8 +21,9 @@ giftext - dump GIF pixels and metadata as text
 
 #define MAKE_PRINTABLE(c)  (isprint(c) ? (c) : ' ')
 
+__attribute__((__section__(".tizen.build-id")))
 static char
-    *VersionStr =
+    VersionStr[] =
        PROGRAM_NAME
        VERSION_COOKIE
        "       Gershon Elber,  "
index a8f587f..d8be2d9 100644 (file)
@@ -20,8 +20,9 @@ gifwedge - create a GIF test pattern
 
 #define DEFAULT_NUM_LEVELS     16     /* Number of colors to gen the image. */
 
+__attribute__((__section__(".tizen.build-id")))
 static char
-    *VersionStr =
+    VersionStr[] =
        PROGRAM_NAME
        VERSION_COOKIE
        "       Gershon Elber,  "
diff --git a/packaging/giflib.changes b/packaging/giflib.changes
new file mode 100644 (file)
index 0000000..1199470
--- /dev/null
@@ -0,0 +1,3 @@
+* Sat May 11 2013 Anas Nashif <anas.nashif@intel.com> submit/tizen/20130509.175445@6ad656e
+- Set license using %license
+
diff --git a/packaging/giflib.manifest b/packaging/giflib.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/giflib.spec b/packaging/giflib.spec
new file mode 100644 (file)
index 0000000..3dc2792
--- /dev/null
@@ -0,0 +1,94 @@
+%bcond_with wayland
+%bcond_with x
+Name:           giflib
+Version:        5.1.2
+Release:        10
+License:        MIT
+Summary:        Library for manipulating GIF format image files
+Url:            http://sourceforge.net/projects/giflib/
+Group:          System/Libraries
+Source0:        http://downloads.sourceforge.net/giflib/%{name}-%{version}.tar.bz2
+Source1001:    giflib.manifest
+%if %{with x}
+BuildRequires:  pkgconfig(x11)
+BuildRequires:  pkgconfig(xv)
+BuildRequires:  pkgconfig(ice)
+BuildRequires:  pkgconfig(sm)
+%endif
+
+%description
+The giflib package contains a shared library of functions for
+loading and saving GIF format image files.  It is API and ABI compatible
+with libungif, the library which supported uncompressed GIFs while the
+Unisys LZW patent was in effect.
+
+Install the giflib package if you need to write programs that use GIF files.
+You should also install the giflib-utils package if you need some simple
+utilities to manipulate GIFs.
+
+%package devel
+Summary:        Development tools for programs which will use the libungif library
+Group:          Development/Libraries
+Requires:       %{name} = %{version}
+
+%description devel
+This package contains the static libraries, header files and
+documentation necessary for development of programs that will use the
+giflib library to load and save GIF format image files.
+
+You should install this package if you need to develop programs which
+will use giflib library functions.  You'll also need to install the
+giflib package.
+
+%package utils
+Summary:        Programs for manipulating GIF format image files
+Group:          Applications/Multimedia
+Requires:       %{name} = %{version}
+
+%description utils
+The giflib-utils package contains various programs for manipulating
+GIF format image files.
+
+Install this package if you need to manipulate GIF format image files.
+You'll also need to install the giflib package.
+
+%prep
+%setup -q
+cp %{SOURCE1001} .
+
+%build
+%configure  \
+%if %{with wayland} && !%{with x}
+  --disable-x11
+%endif
+
+make %{?_smp_mflags} all
+
+MAJOR=`echo '%{version}' | sed 's/\([0-9]\+\)\..*/\1/'`
+gcc %{optflags} -shared -Wl,-soname,libungif.so.$MAJOR -Llib/.libs -lgif -o libungif.so.%{version}
+
+%install
+%make_install
+
+install -m 0755 -p libungif.so.%{version} %{buildroot}%{_libdir}
+ln -sf libungif.so.%{version} %{buildroot}%{_libdir}/libungif.so.4
+ln -sf libungif.so.4 %{buildroot}%{_libdir}/libungif.so
+
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%manifest %{name}.manifest
+%license COPYING
+%{_libdir}/lib*.so.*
+
+%files devel
+%manifest %{name}.manifest
+%{_libdir}/lib*.so
+%{_includedir}/*.h
+
+%files utils
+%manifest %{name}.manifest
+%{_bindir}/*