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