]> git.pld-linux.org Git - packages/libpng.git/blob - libpng.spec
7ca393ba0ce90e4c3d591b3d242e187c9acda06b
[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.5.13
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:  0b607a685da977f1bfc96e1c47055183
21 Patch0:         %{name}-pngminus.patch
22 Patch1:         http://downloads.sourceforge.net/libpng-apng/%{name}-1.5.12-apng.patch.gz
23 # Patch1-md5:   7f2924b1fe0cca9080e18b8720443716
24 Patch2:         %{name}-apng-fix.patch
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 %patch2 -p1
150
151 %build
152 %configure
153 %{__make}
154
155 %{__make} -C contrib/pngminus -f makefile.std \
156         LIBPATH=%{_libdir} \
157         CC="%{__cc}" \
158         OPT_FLAGS="%{rpmcppflags} %{rpmcflags}"
159
160 %{?with_tests:%{__make} check}
161
162 %install
163 rm -rf $RPM_BUILD_ROOT
164 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
165
166 %{__make} install \
167         DESTDIR=$RPM_BUILD_ROOT
168
169 install contrib/pngminus/{png2pnm,pnm2png} $RPM_BUILD_ROOT%{_bindir}
170 install example.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
171
172 %if %{without default_libpng}
173 %{__rm} $RPM_BUILD_ROOT%{_bindir}/{libpng-config,pn?2pn?} \
174         $RPM_BUILD_ROOT%{_libdir}/libpng.{so,la,a} \
175         $RPM_BUILD_ROOT%{_includedir}/png*.h \
176         $RPM_BUILD_ROOT%{_pkgconfigdir}/libpng.pc \
177         $RPM_BUILD_ROOT%{_mandir}/man[35]/*png*
178 %endif
179
180 %clean
181 rm -rf $RPM_BUILD_ROOT
182
183 %post   -p /sbin/ldconfig
184 %postun -p /sbin/ldconfig
185
186 %files
187 %defattr(644,root,root,755)
188 %doc ANNOUNCE CHANGES LICENSE README TODO
189 %attr(755,root,root) %{_libdir}/libpng15.so.*.*.*
190 %attr(755,root,root) %ghost %{_libdir}/libpng15.so.15
191
192 %files devel
193 %defattr(644,root,root,755)
194 %doc libpng-manual.txt
195 %attr(755,root,root) %{_bindir}/libpng15-config
196 %attr(755,root,root) %{_libdir}/libpng15.so
197 %{_libdir}/libpng15.la
198 %{_includedir}/libpng15
199 %{_pkgconfigdir}/libpng15.pc
200 %{_examplesdir}/%{name}-%{version}
201 %if %{with default_libpng}
202 %attr(755,root,root) %{_bindir}/libpng-config
203 %attr(755,root,root) %{_libdir}/libpng.so
204 %{_libdir}/libpng.la
205 %{_pkgconfigdir}/libpng.pc
206 %{_includedir}/png*.h
207 %{_mandir}/man3/libpng.3*
208 %{_mandir}/man3/libpngpf.3*
209 %{_mandir}/man5/png.5*
210 %endif
211
212 %files static
213 %defattr(644,root,root,755)
214 %{_libdir}/libpng15.a
215 %if %{with default_libpng}
216 %{_libdir}/libpng.a
217 %endif
218
219 %if %{with default_libpng}
220 %files progs
221 %defattr(644,root,root,755)
222 %attr(755,root,root) %{_bindir}/png2pnm
223 %attr(755,root,root) %{_bindir}/pnm2png
224 %endif
This page took 0.184364 seconds and 2 git commands to generate.