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