]>
Commit | Line | Data |
---|---|---|
6b37c1cc JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without opengl # OpenGL-based visualizer | |
4 | # | |
8a63738c JB |
5 | Summary: WebP image codec libraries |
6 | Summary(pl.UTF-8): Biblioteki do kodeka obrazów WebP | |
dcf19e58 | 7 | Name: libwebp |
17e02b2a | 8 | Version: 1.2.4 |
aa12ef56 | 9 | Release: 1 |
dcf19e58 JB |
10 | License: BSD |
11 | Group: Libraries | |
aa12ef56 | 12 | #Source0Download: http://downloads.webmproject.org/releases/webp/index.html |
2120c5db | 13 | Source0: http://downloads.webmproject.org/releases/webp/%{name}-%{version}.tar.gz |
17e02b2a | 14 | # Source0-md5: a80a95461a751118bb7d457b1afca50d |
1d6d2eb3 | 15 | Patch0: %{name}-link.patch |
f160fa9d | 16 | URL: https://developers.google.com/speed/webp/ |
6b37c1cc JB |
17 | %{?with_opengl:BuildRequires: OpenGL-devel} |
18 | %{?with_opengl:BuildRequires: OpenGL-glut-devel} | |
7fd568cf | 19 | BuildRequires: autoconf >= 2.60 |
dcf19e58 | 20 | BuildRequires: automake |
8a63738c | 21 | BuildRequires: giflib-devel |
dcf19e58 JB |
22 | BuildRequires: libjpeg-devel |
23 | BuildRequires: libpng-devel | |
d324e5da | 24 | BuildRequires: libtiff-devel |
4a93dd2d | 25 | BuildRequires: libtool >= 2:2.2 |
dcf19e58 JB |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
28 | %description | |
8a63738c | 29 | WebP image codec libraries. |
dcf19e58 JB |
30 | |
31 | %description -l pl.UTF-8 | |
8a63738c | 32 | Biblioteki do kodeka obrazów WebP. |
dcf19e58 JB |
33 | |
34 | %package devel | |
8a63738c JB |
35 | Summary: Header files for WebP libraries |
36 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek WebP | |
dcf19e58 JB |
37 | Group: Development/Libraries |
38 | Requires: %{name} = %{version}-%{release} | |
39 | ||
40 | %description devel | |
8a63738c | 41 | Header files for WebP libraries. |
dcf19e58 JB |
42 | |
43 | %description devel -l pl.UTF-8 | |
8a63738c | 44 | Pliki nagłówkowe bibliotek WebP. |
dcf19e58 JB |
45 | |
46 | %package static | |
8a63738c JB |
47 | Summary: Static WebP libraries |
48 | Summary(pl.UTF-8): Statyczne biblioteki WebP | |
dcf19e58 JB |
49 | Group: Development/Libraries |
50 | Requires: %{name}-devel = %{version}-%{release} | |
51 | ||
52 | %description static | |
8a63738c | 53 | Static WebP libraries. |
dcf19e58 JB |
54 | |
55 | %description static -l pl.UTF-8 | |
8a63738c JB |
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. | |
dcf19e58 JB |
69 | |
70 | %prep | |
71 | %setup -q | |
1d6d2eb3 | 72 | %patch0 -p1 |
dcf19e58 JB |
73 | |
74 | %build | |
75 | %{__libtoolize} | |
f160fa9d | 76 | %{__aclocal} -I m4 |
dcf19e58 JB |
77 | %{__autoconf} |
78 | %{__autoheader} | |
79 | %{__automake} | |
8a63738c JB |
80 | %configure \ |
81 | --disable-silent-rules \ | |
82 | --enable-libwebpdemux \ | |
859bd922 | 83 | --enable-libwebpextras \ |
8a63738c | 84 | --enable-libwebpmux |
dcf19e58 JB |
85 | %{__make} |
86 | ||
87 | %install | |
88 | rm -rf $RPM_BUILD_ROOT | |
dcf19e58 JB |
89 | |
90 | %{__make} install \ | |
91 | DESTDIR=$RPM_BUILD_ROOT | |
92 | ||
93 | # obsoleted by pkgconfig | |
8a63738c | 94 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libwebp*.la |
dcf19e58 JB |
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) | |
c11e2562 | 104 | %doc AUTHORS COPYING ChangeLog NEWS PATENTS README.md |
dcf19e58 | 105 | %attr(755,root,root) %{_libdir}/libwebp.so.*.*.* |
ceea32b7 | 106 | %attr(755,root,root) %ghost %{_libdir}/libwebp.so.7 |
8a63738c | 107 | %attr(755,root,root) %{_libdir}/libwebpdemux.so.*.*.* |
859bd922 | 108 | %attr(755,root,root) %ghost %{_libdir}/libwebpdemux.so.2 |
8a63738c | 109 | %attr(755,root,root) %{_libdir}/libwebpmux.so.*.*.* |
ceea32b7 | 110 | %attr(755,root,root) %ghost %{_libdir}/libwebpmux.so.3 |
dcf19e58 JB |
111 | |
112 | %files devel | |
113 | %defattr(644,root,root,755) | |
114 | %attr(755,root,root) %{_libdir}/libwebp.so | |
8a63738c JB |
115 | %attr(755,root,root) %{_libdir}/libwebpdemux.so |
116 | %attr(755,root,root) %{_libdir}/libwebpmux.so | |
dcf19e58 JB |
117 | %{_includedir}/webp |
118 | %{_pkgconfigdir}/libwebp.pc | |
8a63738c JB |
119 | %{_pkgconfigdir}/libwebpdemux.pc |
120 | %{_pkgconfigdir}/libwebpmux.pc | |
dcf19e58 JB |
121 | |
122 | %files static | |
123 | %defattr(644,root,root,755) | |
124 | %{_libdir}/libwebp.a | |
8a63738c JB |
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 | |
ceea32b7 | 133 | %attr(755,root,root) %{_bindir}/img2webp |
6b37c1cc | 134 | %{?with_opengl:%attr(755,root,root) %{_bindir}/vwebp} |
02f1cd28 | 135 | %attr(755,root,root) %{_bindir}/webpinfo |
8a63738c JB |
136 | %attr(755,root,root) %{_bindir}/webpmux |
137 | %{_mandir}/man1/cwebp.1* | |
138 | %{_mandir}/man1/dwebp.1* | |
139 | %{_mandir}/man1/gif2webp.1* | |
98850201 | 140 | %{_mandir}/man1/img2webp.1* |
7fd568cf | 141 | %{?with_opengl:%{_mandir}/man1/vwebp.1*} |
02f1cd28 | 142 | %{_mandir}/man1/webpinfo.1* |
8a63738c | 143 | %{_mandir}/man1/webpmux.1* |