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