Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:GA
libpng16
libpng16.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libpng16.spec of Package libpng16
# # spec file for package libpng16 # # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define debug_build 0 %define asan_build 0 # %define major 1 %define minor 6 %define micro 8 %define branch %{major}%{minor} %define libname libpng%{branch}-%{branch} Name: libpng16 Url: http://www.libpng.org/pub/png/libpng.html Version: %{major}.%{minor}.%{micro} Release: 0 Summary: Library for the Portable Network Graphics Format (PNG) License: Zlib Group: System/Libraries Source0: ftp://ftp.simplesystems.org/pub/png/src/libpng16/libpng-%{version}.tar.xz Source1: ftp://ftp.simplesystems.org/pub/png/src/libpng16/Gnupg/libpng-%{version}.tar.xz.asc Source2: libpng16.keyring Source3: rpm-macros.libpng-tools Source4: baselibs.conf Patch0: libpng16-1.6.8-CVE-2014-0333.patch Patch1: libpng16-CVE-2014-9495.patch Patch2: libpng16-CVE-2015-0973.patch Patch3: libpng16-CVE-2015-8126.patch Patch4: libpng16-CVE-2015-8126-complete.patch Patch5: libpng16-CVE-2016-10087.patch # CVE-2019-7317 [bsc#1124211] Patch6: libpng16-CVE-2019-7317.patch # CVE-2017-12652 [bsc#1141493] Patch7: libpng16-CVE-2017-12652.patch #BuildRequires: gpg-offline BuildRequires: libtool BuildRequires: pkg-config BuildRequires: zlib-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build %define debug_package_requires %{libname} = %{version}-%{release} %package -n %{libname} Summary: Library for the Portable Network Graphics Format (PNG) # bug437293 Group: System/Libraries %ifarch ppc64 Obsoletes: libpng-64bit %endif # Obsoletes: libpng < %{version} Provides: libpng = %{version}-%{release} %package devel Summary: Development Tools for applications which will use the Libpng Group: Development/Libraries/C and C++ Requires: %{libname} = %{version} Requires: glibc-devel Requires: pkg-config Requires: zlib-devel Recommends: libpng%{branch}-compat-devel # bug437293 %ifarch ppc64 Obsoletes: libpng-devel-64bit %endif # %package compat-devel Summary: Development Tools for applications which will use the Libpng Group: Development/Libraries/C and C++ Requires: libpng%{branch}-devel = %{version} Provides: libpng-devel = %{version} Obsoletes: libpng-devel < 1.2.44 Conflicts: otherproviders(libpng-devel) %package tools Summary: Tools for Manipulating PNG Images Group: Productivity/Graphics/Other Provides: libpng-tools = %{version} Conflicts: otherproviders(libpng-tools) %description libpng is the official reference library for the Portable Network Graphics format (PNG). %description -n %{libname} libpng is the official reference library for the Portable Network Graphics format (PNG). %description devel The libpng%{branch}-devel package includes the header files, libraries, configuration files and development tools necessary for compiling and linking programs which will manipulate PNG files using libpng%{branch}. libpng is the official reference library for the Portable Network Graphics (PNG) format. %description compat-devel The libpng%{branch}-compat-devel package contains unversioned symlinks to the header files, libraries, configuration files and development tools necessary for compiling and linking programs that don't care about libpng version. %description tools Package consists of low level tools for manipulating and fixing particular PNG files. %prep %setup -n libpng-%{version} %patch0 %patch1 %patch2 %patch3 %patch4 %patch5 -p1 %patch6 -p1 %patch7 -p1 %build # PNG_SAFE_LIMITS_SUPPORTED: http://www.openwall.com/lists/oss-security/2015/01/10/1 export CFLAGS="%optflags -O3 -DPNG_SAFE_LIMITS_SUPPORTED -DPNG_SKIP_SETJMP_CHECK $(getconf LFS_CFLAGS)" export LDFLAGS="-Wl,-z,relro,-z,now" %if %{debug_build} export CFLAGS="$CFLAGS -O0" %endif %configure \ --disable-static \ --with-libpng-compat=no %if %{asan_build} sed -i -e 's/^\(CFLAGS.*\)$/\1 -fsanitize=address/' \ -e 's/\(^LIBS =.*\)/\1 -lasan/' Makefile %endif make %{?_smp_mflags} %check make check %install make install DESTDIR=$RPM_BUILD_ROOT rm $RPM_BUILD_ROOT/%{_libdir}/libpng*.la mkdir -p %{buildroot}%{_sysconfdir}/rpm cp -a %{SOURCE3} \ %{buildroot}%{_sysconfdir}/rpm/macros.libpng-tools %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig %files -n %{libname} %defattr(-,root,root) %{_libdir}/libpng%{branch}.so.* %files devel %defattr(-,root,root) %{_bindir}/libpng%{branch}-config %{_includedir}/libpng%{branch} %{_libdir}/libpng%{branch}.so %{_libdir}/pkgconfig/libpng%{branch}.pc %doc CHANGES README TODO ANNOUNCE LICENSE libpng-*.txt %files compat-devel %defattr(-,root,root) %{_bindir}/libpng-config %{_includedir}/*.h %{_libdir}/libpng.so %{_libdir}/pkgconfig/libpng.pc %doc %{_mandir}/man3/libpng.3.gz %doc %{_mandir}/man3/libpngpf.3.gz %doc %{_mandir}/man5/png.5.gz %files tools %defattr(-,root,root) %{_bindir}/png-fix-itxt %{_bindir}/pngfix %{_sysconfdir}/rpm/macros.libpng-tools %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor