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