Sophie

Sophie

distrib > Mageia > 5 > i586 > by-pkgid > c5150bdadd28dcce8f78d3fa28afe8b9 > files > 4

libpng-1.6.20-1.mga5.src.rpm

%define major 16
# FIXME for mga6: %mklibname usage is wrong, should be %mklibname png %{major} %{major}
%define libname	%mklibname png%{major}_ %{major}
%define develname %mklibname png -d

Summary:	A library of functions for manipulating PNG image format files
Name:		libpng
Version:	1.6.20
Release:	%mkrel 1
Epoch:		2
License:	zlib
Group:		System/Libraries
URL:		http://www.libpng.org/pub/png/libpng.html
Source:		http://downloads.sourceforge.net/libpng/%{name}-%{version}.tar.xz
Patch0:		http://downloads.sourceforge.net/libpng-apng/libpng-%{version}-apng.patch.gz
Patch1:		libpng-1.6.2-pkgconfig-libdir.patch
BuildRequires: 	zlib-devel
BuildRequires:	cmake

%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 -n	%{libname}
Summary:	A library of functions for manipulating PNG image format files
Group:		System/Libraries
Provides:	%{name} = %{epoch}:%{version}-%{release}

%description -n	%{libname}
This package contains the library needed to run programs dynamically
linked with libpng.

%package -n	%{develname}
Summary:	Development tools for programs to manipulate PNG image format files
Group:		Development/C
Requires:	%{libname} = %{epoch}:%{version}
Requires:	zlib-devel
Provides:	%{name}-devel = %{epoch}:%{version}-%{release}
Provides:	png-devel = %{epoch}:%{version}-%{release}
Obsoletes:	%{mklibname png 3 -d} < 1.2.30

%description -n	%{develname}
The libpng-devel package contains the header files and libraries
necessary for developing programs using the PNG (Portable Network
Graphics) library.

If you want to develop programs which will manipulate PNG image format
files, you should install libpng-devel.  You'll also need to install the
libpng package.

%prep
%setup -q
%patch0 -p1 -b .apng
%patch1 -p0 -b .libdir

%build
export CFLAGS="%{optflags} -O3 -funroll-loops -DPIC -fPIC"
%cmake -DPNG_SHARED:BOOL=ON -DPNG_STATIC:BOOL=OFF -DPNG_NO_STDIO=no -DPNG_NO_CONSOLE_IO=no
%make

%install
%makeinstall_std -C build

# multiarch
%multiarch_binaries %{buildroot}%{_bindir}/libpng%{major}-config

# should be multiarch if kept
rm -f  %{buildroot}%{_prefix}/lib/%name/*.cmake

%files -n %{libname}
%{_libdir}/libpng%{major}.so.%{major}
%{_libdir}/libpng%{major}.so.%{major}.*

%files -n %{develname}
%doc libpng*.txt example.c README TODO CHANGES
%{_bindir}/libpng-config
%{_bindir}/libpng%{major}-config
%{multiarch_bindir}/libpng%{major}-config
%{_includedir}/*
%{_libdir}/libpng.so
%{_libdir}/libpng%{major}.so
%{_libdir}/pkgconfig/*
%{_mandir}/man?/*


%changelog
* Mon Dec 07 2015 luigiwalser <luigiwalser> 2:1.6.20-1.mga5
+ Revision: 908675
- 1.6.20 (fixes CVE-2015-8472)
- 1.6.19 (fixes CVE-2015-8126)

* Wed Apr 15 2015 luigiwalser <luigiwalser> 2:1.6.17-1.mga5
+ Revision: 820289
- 1.6.17

* Wed Dec 24 2014 luigiwalser <luigiwalser> 2:1.6.16-1.mga5
+ Revision: 805301
- 1.6.16

* Tue Dec 02 2014 luigiwalser <luigiwalser> 2:1.6.15-1.mga5
+ Revision: 800328
- 1.6.15

* Fri Oct 31 2014 luigiwalser <luigiwalser> 2:1.6.14-1.mga5
+ Revision: 794849
- 1.6.14

* Wed Oct 15 2014 luigiwalser <luigiwalser> 2:1.6.13-2.mga5
+ Revision: 755538
- remove obsoletes on libpng16-devel

* Wed Oct 15 2014 tv <tv> 2:1.6.13-1.mga5
+ Revision: 751285
- new version
- do apply apng patch

  + umeabot <umeabot>
    - Second Mageia 5 Mass Rebuild

* Tue Oct 07 2014 doktor5000 <doktor5000> 2:1.6.12-4.mga5
+ Revision: 737342
-remove unneccessary Obsoletes for lib subpackage
- tighten Obsoletes on libpng16-devel subpackage
- add Obsoletes tag for new libpng16 package in mga3 updates

* Tue Sep 16 2014 umeabot <umeabot> 2:1.6.12-2.mga5
+ Revision: 681713
- Mageia 5 Mass Rebuild

* Wed Jul 23 2014 fwang <fwang> 2:1.6.12-1.mga5
+ Revision: 655849
- 1.6.12

* Thu Jun 12 2014 fwang <fwang> 2:1.6.11-1.mga5
+ Revision: 635736
- 1.6.11

* Sat Mar 15 2014 luigiwalser <luigiwalser> 2:1.6.10-1.mga5
+ Revision: 603936
- 1.6.10
- remove upstreamed security patch

* Wed Mar 12 2014 luigiwalser <luigiwalser> 2:1.6.9-2.mga5
+ Revision: 602634
- add upstream patch to fix CVE-2014-0333

* Thu Feb 13 2014 fwang <fwang> 2:1.6.9-1.mga5
+ Revision: 590095
- 1.6.9

* Mon Dec 23 2013 oden <oden> 2:1.6.8-1.mga4
+ Revision: 560105
- 1.6.8 (fixes CVE-2013-6954)

* Wed Dec 11 2013 luigiwalser <luigiwalser> 2:1.6.7-1.mga4
+ Revision: 556384
- 1.6.7

* Mon Oct 21 2013 umeabot <umeabot> 2:1.6.6-3.mga4
+ Revision: 538110
- Mageia 4 Mass Rebuild

* Sat Sep 28 2013 fwang <fwang> 2:1.6.6-2.mga4
+ Revision: 488460
- update apng patch

* Sat Sep 28 2013 luigiwalser <luigiwalser> 2:1.6.6-1.mga4
+ Revision: 488435
- 1.6.6

* Sun Sep 15 2013 fwang <fwang> 2:1.6.5-1.mga4
+ Revision: 479239
- new version 1.6.5

* Mon Jul 22 2013 fwang <fwang> 2:1.6.3-1.mga4
+ Revision: 457148
- new version 1.6.3

* Sun Jun 02 2013 fwang <fwang> 2:1.6.2-1.mga4
+ Revision: 434589
- new version 1.6.2

* Wed May 29 2013 fwang <fwang> 2:1.5.16-1.mga4
+ Revision: 430355
- new version 1.5.16

* Sat Jan 12 2013 umeabot <umeabot> 2:1.5.13-2.mga3
+ Revision: 357980
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Fri Sep 28 2012 fwang <fwang> 2:1.5.13-1.mga3
+ Revision: 298998
- new version 1.5.13

* Mon Jul 30 2012 cjw <cjw> 2:1.5.12-2.mga3
+ Revision: 275856
- drop cmake files for now since they are not multiarch aware

* Thu Jul 12 2012 fwang <fwang> 2:1.5.12-1.mga3
+ Revision: 270243
- new version 1.5.12
- there is no .la files anymore

* Sat Jun 16 2012 fwang <fwang> 2:1.5.11-1.mga3
+ Revision: 260924
- new version 1.5.11

* Fri Mar 30 2012 fwang <fwang> 2:1.5.10-1.mga2
+ Revision: 227594
- new version 1.5.10

* Sun Feb 19 2012 luigiwalser <luigiwalser> 2:1.5.9-1.mga2
+ Revision: 210678
- 1.5.9 (fix CVE-2011-3026)

  + fwang <fwang>
    - there is no package requiring static package and source package to build
    - new version 1.5.8

* Sat Dec 17 2011 fwang <fwang> 2:1.5.7-1.mga2
+ Revision: 183039
- new version 1.5.7

* Thu Nov 03 2011 fwang <fwang> 2:1.5.6-1.mga2
+ Revision: 162144
- new version 1.5.6

* Sat Oct 08 2011 fwang <fwang> 2:1.5.5-2.mga2
+ Revision: 152917
- fix libdir in .pc file

* Sat Sep 24 2011 fwang <fwang> 2:1.5.5-1.mga2
+ Revision: 147170
- new version 1.5.5

* Sat Sep 10 2011 fwang <fwang> 2:1.5.4-1.mga2
+ Revision: 142074
- update file list
- switched to 1.5 flavour (breakage follows)

* Sat Sep 10 2011 fwang <fwang> 2:1.2.46-3.mga2
+ Revision: 142028
- tighten version req for upcoming libpng15 switch

* Sat Sep 03 2011 fwang <fwang> 2:1.2.46-2.mga2
+ Revision: 138141
- correct libname

* Sat Jul 16 2011 fwang <fwang> 2:1.2.46-1.mga2
+ Revision: 124741
- new version 1.2.46

* Sat Jan 08 2011 blino <blino> 2:1.2.44-3.mga1
+ Revision: 892
- remove old ldconfig scriptlets
- imported package libpng