]> git.pld-linux.org Git - packages/libpng.git/blob - libpng.spec
- updated to 1.4.2
[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.2
11 Release:        1
12 Epoch:          2
13 License:        distributable
14 Group:          Libraries
15 Source0:        http://downloads.sourceforge.net/libpng/%{name}-%{version}.tar.xz
16 # Source0-md5:  d22ef5878842d918d6d110c0e7cc3afc
17 Patch0:         %{name}-pngminus.patch
18 # http://littlesvr.ca/apng/diff/%{name}-%{version}-apng.patch | dos2unix
19 Patch1:         %{name}-apng.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
145 %build
146 %configure
147 %{__make}
148
149 %{__make} -C contrib/pngminus -f makefile.std \
150         LIBPATH=%{_libdir} \
151         CC="%{__cc}" \
152         OPT_FLAGS="%{rpmcppflags} %{rpmcflags}"
153
154 %{?with_tests:%{__make} check}
155
156 %install
157 rm -rf $RPM_BUILD_ROOT
158 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
159
160 %{__make} install \
161         DESTDIR=$RPM_BUILD_ROOT
162
163 install contrib/pngminus/{png2pnm,pnm2png} $RPM_BUILD_ROOT%{_bindir}
164 install example.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
165
166 %clean
167 rm -rf $RPM_BUILD_ROOT
168
169 %post   -p /sbin/ldconfig
170 %postun -p /sbin/ldconfig
171
172 %files
173 %defattr(644,root,root,755)
174 %doc ANNOUNCE CHANGES LICENSE README TODO
175 %attr(755,root,root) %{_libdir}/libpng14.so.*.*.*
176 %attr(755,root,root) %ghost %{_libdir}/libpng14.so.14
177
178 %files devel
179 %defattr(644,root,root,755)
180 %doc libpng-%{version}.txt
181 %attr(755,root,root) %{_bindir}/libpng14-config
182 %attr(755,root,root) %{_bindir}/libpng-config
183 %attr(755,root,root) %{_libdir}/libpng14.so
184 %attr(755,root,root) %{_libdir}/libpng.so
185 %{_libdir}/libpng14.la
186 %{_libdir}/libpng.la
187 %{_pkgconfigdir}/libpng14.pc
188 %{_pkgconfigdir}/libpng.pc
189 %{_includedir}/libpng14
190 %{_includedir}/png*.h
191 %{_mandir}/man3/libpng.3*
192 %{_mandir}/man3/libpngpf.3*
193 %{_mandir}/man5/png.5*
194 %{_examplesdir}/%{name}-%{version}
195
196 %files static
197 %defattr(644,root,root,755)
198 %{_libdir}/libpng14.a
199 %{_libdir}/libpng.a
200
201 %files progs
202 %defattr(644,root,root,755)
203 %attr(755,root,root) %{_bindir}/png2pnm
204 %attr(755,root,root) %{_bindir}/pnm2png
This page took 0.080941 seconds and 3 git commands to generate.