# # spec file for package libwebp # # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: libwebp %define lname libwebp2 Version: 0.1.3 Release: 1 Group: System/Libraries Url: http://webmproject.org/ Summary: Library and tools for the WebP graphics format License: BSD3c Source0: http://webp.googlecode.com/files/%{name}-%{version}.tar.gz Source1: baselibs.conf BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: libjpeg-devel libpng-devel libtool xz %define debug_package_requires %lname = %version-%release %description WebP is an image format that does lossy compression of digital photographic images. WebP consists of a codec based on VP8, and a container based on RIFF. Webmasters, web developers and browser developers can use WebP to compress, archive and distribute digital images more efficiently. %package -n webp-tools Group: Productivity/Archiving/Compression Summary: The WebP command line tools %description -n webp-tools WebP is an image format that does lossy compression of digital photographic images. WebP consists of a codec based on VP8, and a container based on RIFF. Webmasters, web developers and browser developers can use WebP to compress, archive and distribute digital images more efficiently. %package -n %lname Group: System/Libraries Summary: Library for the WebP graphics format %description -n %lname WebP is an image format that does lossy compression of digital photographic images. WebP consists of a codec based on VP8, and a container based on RIFF. Webmasters, web developers and browser developers can use WebP to compress, archive and distribute digital images more efficiently. %package devel Group: Development/Libraries/C and C++ Summary: Development files for libwebp, a library for the WebP format Requires: %lname = %version %description devel WebP is an image format that does lossy compression of digital photographic images. WebP consists of a codec based on VP8, and a container based on RIFF. Webmasters, web developers and browser developers can use WebP to compress, archive and distribute digital images more efficiently. %prep %setup -q %build mkdir -p m4 ./autogen.sh %configure --disable-static make %{?_smp_mflags} %install b="%buildroot"; make install DESTDIR="$b"; find "$b/%_libdir" -type f -name "*.la" -delete; %post -n %lname -p /sbin/ldconfig %postun -n %lname -p /sbin/ldconfig %files -n webp-tools %defattr(-,root,root) %_bindir/* %_mandir/man*/* %files -n %lname %defattr(-,root,root) %_libdir/%{name}*.so.* %files devel %defattr(-,root,root) %_libdir/%{name}*.so %_includedir/* %_libdir/pkgconfig/* %changelog