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