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