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