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