]> git.pld-linux.org Git - packages/libpng.git/blob - libpng.spec
- updated to 1.6.28 (fixes CVE-2016-10087)
[packages/libpng.git] / libpng.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # don't perform "make check"
4 %bcond_without  default_libpng  # don't use this libpng as default system libpng
5 #
6 Summary:        PNG library
7 Summary(de.UTF-8):      PNG-Library
8 Summary(es.UTF-8):      Biblioteca PNG
9 Summary(fr.UTF-8):      Librarie PNG
10 Summary(pl.UTF-8):      Biblioteka PNG
11 Summary(pt_BR.UTF-8):   Biblioteca PNG
12 Summary(tr.UTF-8):      PNG kitaplığı
13 Name:           libpng
14 Version:        1.6.28
15 Release:        1
16 Epoch:          2
17 License:        distributable
18 Group:          Libraries
19 Source0:        http://downloads.sourceforge.net/libpng/%{name}-%{version}.tar.xz
20 # Source0-md5:  425354f86c392318d31aedca71019372
21 Patch0:         %{name}-pngminus.patch
22 Patch1:         http://downloads.sourceforge.net/libpng-apng/%{name}-%{version}-apng.patch.gz
23 # Patch1-md5:   fca7c6d87c8352e645facefc2e1dd153
24 URL:            http://www.libpng.org/pub/png/libpng.html
25 BuildRequires:  rpmbuild(macros) >= 1.213
26 BuildRequires:  tar >= 1:1.22
27 BuildRequires:  xz >= 1:4.999.7
28 BuildRequires:  zlib-devel
29 Provides:       libpng(APNG) = 0.10
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %description
33 The PNG library is a collection of routines used to create and
34 manipulate PNG format graphics files. The PNG format was designed as a
35 replacement for GIF, with many improvements and extensions.
36
37 %description -l de.UTF-8
38 Die PNG-Library ist eine Sammlung von Routinen zum Erstellen und
39 Bearbeiten von Grafiken im PNG-Format. Das PNG-Format wurde als Ersatz
40 für GIF entwickelt und enthält viele Verbesserungen und Erweiterungen.
41
42 %description -l es.UTF-8
43 Esta biblioteca es una colección de rutinas para crear y manipular
44 archivos gráficos en el formato PNG. Este formato fue proyectado para
45 substituir el
46
47 %description -l fr.UTF-8
48 La librairie PNG est un ensemble de routines utilisées pour créer et
49 manipuler des fichiers graphiques au format PNG. Le format PNG a été
50 élaboré pour remplacer le GIF, avec de nombreuses améliorations et
51 extensions.
52
53 %description -l pl.UTF-8
54 Biblioteki PNG są kolekcją form używanych do tworzenia i manipulowania
55 plikami w formacie graficznym PNG. Format ten został stworzony jako
56 zamiennik dla formatu GIF, z wieloma rozszerzeniami i nowościami.
57
58 %description -l pt_BR.UTF-8
59 Esta biblioteca é uma coleção de rotinas para criar e manipular
60 arquivos gráficos no formato PNG. Este formato foi projetado para
61 substituir o formato GIF, com extensões e melhorias.
62
63 %description -l tr.UTF-8
64 PNG kitaplığı, PNG formatındaki resim dosyalarını işlemeye yönelik
65 yordamları içerir. PNG, GIF formatının yerini almak üzere tasarlanmış
66 bir resim formatıdır.
67
68 %package devel
69 Summary:        Header files for libpng
70 Summary(de.UTF-8):      libpng Headers
71 Summary(es.UTF-8):      Archivos de inclusión y bibliotecas estáticas
72 Summary(fr.UTF-8):      en-têtes et bibliothèques statiques
73 Summary(pl.UTF-8):      Pliki nagłówkowe libpng
74 Summary(pt_BR.UTF-8):   Arquivos de inclusão e bibliotecas estáticas
75 Summary(tr.UTF-8):      başlık dosyaları ve statik kitaplıklar
76 Group:          Development/Libraries
77 Requires:       %{name} = %{epoch}:%{version}-%{release}
78 Requires:       zlib-devel
79 Provides:       libpng(APNG)-devel = 0.10
80 Conflicts:      libpng < 1.0.15
81
82 %description devel
83 The header files are only needed for development of programs using the
84 PNG library.
85
86 %description devel -l de.UTF-8
87 Die Header-Dateien werden nur zur Entwicklung von Programmen mit der
88 PNG-Library benötigt.
89
90 %description devel -l es.UTF-8
91 Archivos de inclusión y bibliotecas estáticas que son necesarios
92 solamente para el desarrollo de programas que usan la biblioteca PNG.
93
94 %description devel -l fr.UTF-8
95 Fichiers d'en-tete et les librairies qui sont requis seulement pour le
96 développement avec la librairie PNG.
97
98 %description devel -l pl.UTF-8
99 W pakiecie tym znajdują się pliki nagłówkowe, przeznaczone dla
100 programistów używających bibliotek PNG.
101
102 %description devel -l pt_BR.UTF-8
103 Arquivos de inclusão e bibliotecas estáticas que são necessários
104 somente para o desenvolvimento de programas que usam a biblioteca PNG.
105
106 %description devel -l tr.UTF-8
107 PNG kitaplığını kullanan programlar geliştirmek için gereken
108 kitaplıklar ve başlık dosyaları.
109
110 %package static
111 Summary:        Static PNG library
112 Summary(de.UTF-8):      Statisch PNG Library
113 Summary(pl.UTF-8):      Biblioteka statyczna PNG
114 Summary(pt_BR.UTF-8):   Bibliotecas estáticas para desenvolvimento com libpng
115 Group:          Development/Libraries
116 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
117 Provides:       libpng(APNG)-static = 0.10
118
119 %description static
120 Static PNG library.
121
122 %description static -l de.UTF-8
123 Statisch PNG Library.
124
125 %description static -l pl.UTF-8
126 Biblioteka statyczna PNG.
127
128 %description static -l pt_BR.UTF-8
129 Bibliotecas estáticas para desenvolvimento com libpng.
130
131 %package progs
132 Summary:        libpng utility programs
133 Summary(pl.UTF-8):      Narzędzia do plików PNG
134 Group:          Applications/Graphics
135 Requires:       %{name} = %{epoch}:%{version}-%{release}
136
137 %description progs
138 This package contains utility programs to convert PNG files to and
139 from PNM files.
140
141 %description progs -l pl.UTF-8
142 Narzędzia do konwersji plików PNG z lub do plików PNM.
143
144 %prep
145 %setup -q
146 %patch0 -p1
147 %patch1 -p1
148
149 %build
150 %configure
151 %{__make}
152
153 %{__make} -C contrib/pngminus -f makefile.std \
154         LIBPATH=%{_libdir} \
155         CC="%{__cc}" \
156         OPT_FLAGS="%{rpmcppflags} %{rpmcflags}"
157
158 %{?with_tests:%{__make} check}
159
160 %install
161 rm -rf $RPM_BUILD_ROOT
162 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
163
164 %{__make} install \
165         DESTDIR=$RPM_BUILD_ROOT
166
167 install contrib/pngminus/{png2pnm,pnm2png} $RPM_BUILD_ROOT%{_bindir}
168 install example.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
169
170 %if %{without default_libpng}
171 %{__rm} $RPM_BUILD_ROOT%{_bindir}/{libpng-config,pn?2pn?} \
172         $RPM_BUILD_ROOT%{_libdir}/libpng.{so,la,a} \
173         $RPM_BUILD_ROOT%{_includedir}/png*.h \
174         $RPM_BUILD_ROOT%{_pkgconfigdir}/libpng.pc \
175         $RPM_BUILD_ROOT%{_mandir}/man[35]/*png*
176 %endif
177
178 %clean
179 rm -rf $RPM_BUILD_ROOT
180
181 %post   -p /sbin/ldconfig
182 %postun -p /sbin/ldconfig
183
184 %files
185 %defattr(644,root,root,755)
186 %doc ANNOUNCE CHANGES LICENSE README TODO
187 %attr(755,root,root) %{_libdir}/libpng16.so.*.*.*
188 %attr(755,root,root) %ghost %{_libdir}/libpng16.so.16
189
190 %files devel
191 %defattr(644,root,root,755)
192 %doc libpng-manual.txt
193 %attr(755,root,root) %{_bindir}/libpng16-config
194 %attr(755,root,root) %{_libdir}/libpng16.so
195 %{_libdir}/libpng16.la
196 %{_includedir}/libpng16
197 %{_pkgconfigdir}/libpng16.pc
198 %{_examplesdir}/%{name}-%{version}
199 %if %{with default_libpng}
200 %attr(755,root,root) %{_bindir}/libpng-config
201 %attr(755,root,root) %{_libdir}/libpng.so
202 %{_libdir}/libpng.la
203 %{_pkgconfigdir}/libpng.pc
204 %{_includedir}/png*.h
205 %{_mandir}/man3/libpng.3*
206 %{_mandir}/man3/libpngpf.3*
207 %{_mandir}/man5/png.5*
208 %endif
209
210 %files static
211 %defattr(644,root,root,755)
212 %{_libdir}/libpng16.a
213 %if %{with default_libpng}
214 %{_libdir}/libpng.a
215 %endif
216
217 %if %{with default_libpng}
218 %files progs
219 %defattr(644,root,root,755)
220 %attr(755,root,root) %{_bindir}/png2pnm
221 %attr(755,root,root) %{_bindir}/pngfix
222 %attr(755,root,root) %{_bindir}/png-fix-itxt
223 %attr(755,root,root) %{_bindir}/pnm2png
224 %endif
This page took 0.102578 seconds and 3 git commands to generate.