]> git.pld-linux.org Git - packages/libwebp.git/blob - libwebp.spec
- updated to 1.2.1 (security hardening)
[packages/libwebp.git] / libwebp.spec
1 #
2 # Conditional build:
3 %bcond_without  opengl  # OpenGL-based visualizer
4 #
5 Summary:        WebP image codec libraries
6 Summary(pl.UTF-8):      Biblioteki do kodeka obrazów WebP
7 Name:           libwebp
8 Version:        1.2.1
9 Release:        1
10 License:        BSD
11 Group:          Libraries
12 #Source0Download: http://downloads.webmproject.org/releases/webp/index.html
13 Source0:        http://downloads.webmproject.org/releases/webp/%{name}-%{version}.tar.gz
14 # Source0-md5:  f30c738034faa13d6255604ed46b6158
15 Patch0:         %{name}-link.patch
16 URL:            https://developers.google.com/speed/webp/
17 %{?with_opengl:BuildRequires:   OpenGL-devel}
18 %{?with_opengl:BuildRequires:   OpenGL-glut-devel}
19 BuildRequires:  autoconf >= 2.60
20 BuildRequires:  automake
21 BuildRequires:  giflib-devel
22 BuildRequires:  libjpeg-devel
23 BuildRequires:  libpng-devel
24 BuildRequires:  libtiff-devel
25 BuildRequires:  libtool >= 2:2.2
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 WebP image codec libraries.
30
31 %description -l pl.UTF-8
32 Biblioteki do kodeka obrazów WebP.
33
34 %package devel
35 Summary:        Header files for WebP libraries
36 Summary(pl.UTF-8):      Pliki nagłówkowe bibliotek WebP
37 Group:          Development/Libraries
38 Requires:       %{name} = %{version}-%{release}
39
40 %description devel
41 Header files for WebP libraries.
42
43 %description devel -l pl.UTF-8
44 Pliki nagłówkowe bibliotek WebP.
45
46 %package static
47 Summary:        Static WebP libraries
48 Summary(pl.UTF-8):      Statyczne biblioteki WebP
49 Group:          Development/Libraries
50 Requires:       %{name}-devel = %{version}-%{release}
51
52 %description static
53 Static WebP libraries.
54
55 %description static -l pl.UTF-8
56 Statyczne biblioteki WebP.
57
58 %package progs
59 Summary:        WebP image codec tools
60 Summary(pl.UTF-8):      Narzędzia do kodeka obrazów WebP
61 Group:          Applications/Graphics
62 Requires:       %{name} = %{version}-%{release}
63
64 %description progs
65 WebP image codec tools.
66
67 %description progs -l pl.UTF-8
68 Narzędzia do kodeka obrazów WebP.
69
70 %prep
71 %setup -q
72 %patch0 -p1
73
74 %build
75 %{__libtoolize}
76 %{__aclocal} -I m4
77 %{__autoconf}
78 %{__autoheader}
79 %{__automake}
80 %configure \
81         --disable-silent-rules \
82         --enable-libwebpdemux \
83         --enable-libwebpextras \
84         --enable-libwebpmux
85 %{__make}
86
87 %install
88 rm -rf $RPM_BUILD_ROOT
89
90 %{__make} install \
91         DESTDIR=$RPM_BUILD_ROOT
92
93 # obsoleted by pkgconfig
94 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libwebp*.la
95
96 %clean
97 rm -rf $RPM_BUILD_ROOT
98
99 %post   -p /sbin/ldconfig
100 %postun -p /sbin/ldconfig
101
102 %files
103 %defattr(644,root,root,755)
104 %doc AUTHORS COPYING ChangeLog NEWS PATENTS README
105 %attr(755,root,root) %{_libdir}/libwebp.so.*.*.*
106 %attr(755,root,root) %ghost %{_libdir}/libwebp.so.7
107 %attr(755,root,root) %{_libdir}/libwebpdemux.so.*.*.*
108 %attr(755,root,root) %ghost %{_libdir}/libwebpdemux.so.2
109 %attr(755,root,root) %{_libdir}/libwebpmux.so.*.*.*
110 %attr(755,root,root) %ghost %{_libdir}/libwebpmux.so.3
111
112 %files devel
113 %defattr(644,root,root,755)
114 %attr(755,root,root) %{_libdir}/libwebp.so
115 %attr(755,root,root) %{_libdir}/libwebpdemux.so
116 %attr(755,root,root) %{_libdir}/libwebpmux.so
117 %{_includedir}/webp
118 %{_pkgconfigdir}/libwebp.pc
119 %{_pkgconfigdir}/libwebpdemux.pc
120 %{_pkgconfigdir}/libwebpmux.pc
121
122 %files static
123 %defattr(644,root,root,755)
124 %{_libdir}/libwebp.a
125 %{_libdir}/libwebpdemux.a
126 %{_libdir}/libwebpmux.a
127
128 %files progs
129 %defattr(644,root,root,755)
130 %attr(755,root,root) %{_bindir}/cwebp
131 %attr(755,root,root) %{_bindir}/dwebp
132 %attr(755,root,root) %{_bindir}/gif2webp
133 %attr(755,root,root) %{_bindir}/img2webp
134 %{?with_opengl:%attr(755,root,root) %{_bindir}/vwebp}
135 %attr(755,root,root) %{_bindir}/webpinfo
136 %attr(755,root,root) %{_bindir}/webpmux
137 %{_mandir}/man1/cwebp.1*
138 %{_mandir}/man1/dwebp.1*
139 %{_mandir}/man1/gif2webp.1*
140 %{_mandir}/man1/img2webp.1*
141 %{?with_opengl:%{_mandir}/man1/vwebp.1*}
142 %{_mandir}/man1/webpinfo.1*
143 %{_mandir}/man1/webpmux.1*
This page took 0.091059 seconds and 3 git commands to generate.