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