]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/commitdiff
libpng: Move libpng-compat package into own build file.
authorStefan Schantl <stefan.schantl@ipfire.org>
Tue, 22 Apr 2014 18:36:06 +0000 (20:36 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sun, 27 Apr 2014 13:30:32 +0000 (15:30 +0200)
Fixes #10521.

compat-libpng/compat-libpng.nm [new file with mode: 0644]
libpng/libpng.nm

diff --git a/compat-libpng/compat-libpng.nm b/compat-libpng/compat-libpng.nm
new file mode 100644 (file)
index 0000000..44b424b
--- /dev/null
@@ -0,0 +1,61 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = compat-libpng
+version    = 1.5.18
+release    = 1
+thisapp    = libpng-%{version}
+
+groups     = System/Libraries
+url        = http://www.libpng.org/pub/png/
+license    = zlib
+summary    = A library of functions for manipulating PNG image format files.
+
+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.
+end
+
+source_dl +=  http://downloads.sourceforge.net/project/libpng/libpng15/%{version}/
+source_dl +=  http://downloads.sourceforge.net/project/libpng/history/libpng15/%{version}/
+
+sources    = %{thisapp}.tar.xz
+
+build
+       requires
+               pkg-config
+               zlib-devel
+       end
+
+       install
+               # Install just the library and no headers.
+               mkdir -pv %{BUILDROOT}%{libdir}
+               install -m 755 .libs/libpng15.so.15.18.0 %{BUILDROOT}%{libdir}
+               ln -svf libpng15.so.15.18.0 %{BUILDROOT}%{libdir}/libpng15.so.15
+       end
+end
+
+packages
+       package %{name}
+               provides
+                       libpng = %{thisver}
+               end
+
+               obsoletes
+                       libpng-compat
+               end
+
+               conflicts
+                       libpng <= %{thisver}
+               end
+       end
+
+       package %{name}-debuginfo
+               template DEBUGINFO
+       end
+end
index 688151fefa49d0236882804dd3ccfcf052c80b6a..50c44f26626f13a68e839689f920b83a24e1e849 100644 (file)
@@ -5,9 +5,7 @@
 
 name       = libpng
 version    = 1.6.10
-release    = 1
-
-compat_ver = 1.5.17
+release    = 2
 
 groups     = System/Libraries
 url        = http://www.libpng.org/pub/png/
@@ -25,35 +23,11 @@ end
 source_dl  = http://downloads.sourceforge.net/project/libpng/libpng16/%{version}/
 source_dl += http://downloads.sourceforge.net/project/libpng/history/libpng16/%{version}/
 
-# Source URL for comat package.
-source_dl +=  http://downloads.sourceforge.net/project/libpng/libpng15/%{compat_ver}/
-source_dl +=  http://downloads.sourceforge.net/project/libpng/history/libpng15/%{compat_ver}/
-
-sources    = %{thisapp}.tar.xz
-
-# File for compat package.
-sources   += %{name}-%{compat_ver}.tar.xz
-
 build
        requires
                pkg-config
                zlib-devel
        end
-
-       # Build compat package.
-       build_cmds
-               cd %{DIR_SRC}/%{name}-%{compat_ver}
-               ./configure %{configure_options}
-
-               make %{PARALLELISMFLAGS}
-       end
-
-       # Install compat package.
-       install_cmds
-               cd %{DIR_SRC}/%{name}-%{compat_ver}
-               install -m 755 .libs/libpng15.so.15.17.0 %{BUILDROOT}%{libdir}
-               ln -svf libpng15.so.15.17.0 %{BUILDROOT}%{libdir}/libpng15.so.15
-       end
 end
 
 packages
@@ -65,14 +39,6 @@ packages
                requires = zlib-devel
        end
 
-       package %{name}-compat
-               summary = Compat libraries of %{thisapp}.
-
-               files
-                       %{libdir}/%{name}15.so*
-               end
-       end
-
        package %{name}-debuginfo
                template DEBUGINFO
        end