packaging: Intial packaging for Tizen
authorAnas Nashif <anas.nashif@intel.com>
Sun, 4 Nov 2012 15:06:52 +0000 (07:06 -0800)
committerPhilippe Coval <philippe.coval@open.eurogiciel.org>
Fri, 21 Nov 2014 11:17:44 +0000 (12:17 +0100)
Change-Id: If873636defb50c93eb6bbe6e4c8841e16342bf9c

packaging/libpng.spec [new file with mode: 0644]

diff --git a/packaging/libpng.spec b/packaging/libpng.spec
new file mode 100644 (file)
index 0000000..9c54fc1
--- /dev/null
@@ -0,0 +1,57 @@
+Name:           libpng
+Version:        1.2.46
+Release:        1
+License:        zlib
+Summary:        A library of functions for manipulating PNG image format files
+Url:            http://www.libpng.org/pub/png/
+Group:          System/Libraries
+Source:         %{name}-%{version}.tar.bz2
+BuildRequires:  zlib-devel
+Requires(post): /sbin/ldconfig
+Requires(postun): /sbin/ldconfig
+
+%description
+The libpng package contains a library of functions for creating and
+manipulating PNG (Portable Network Graphics) image format files.  PNG
+is a bit-mapped graphics format similar to the GIF format.  PNG was
+created to replace the GIF format, since GIF uses a patented data
+compression algorithm.
+
+Libpng should be installed if you need to manipulate PNG format image
+files.
+
+%package devel
+Summary:        Development tools for programs to manipulate PNG image format files
+Group:          Development/Libraries
+Requires:       %{name} = %{version}
+Requires:       libpng = %{version}
+Requires:       zlib-devel
+
+%description devel
+The libpng-devel package contains header files and documentation necessary
+for developing programs using the PNG (Portable Network Graphics) library.
+
+%prep
+%setup -q
+
+%build
+
+%configure --disable-static
+make %{?_smp_mflags}
+
+%install
+%make_install
+rm -rf %{buildroot}/usr/share/man
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%{_libdir}/libpng*.so.*
+
+%files devel
+%{_bindir}/*
+%{_includedir}/*
+%{_libdir}/libpng*.so
+%{_libdir}/pkgconfig/*
+