2011-08-11 12:12:12 +02:00
|
|
|
#
|
|
|
|
# spec file for package libwebp
|
|
|
|
#
|
2012-02-10 17:17:40 +01:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-08-11 12:12:12 +02:00
|
|
|
#
|
|
|
|
# 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
|
2011-11-14 13:16:46 +01:00
|
|
|
%define lname libwebp2
|
|
|
|
Version: 0.1.3
|
2012-02-10 17:17:40 +01:00
|
|
|
Release: 0
|
2011-08-11 12:12:12 +02:00
|
|
|
Url: http://webmproject.org/
|
|
|
|
Summary: Library and tools for the WebP graphics format
|
2012-02-10 17:17:40 +01:00
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: System/Libraries
|
2011-08-11 12:11:59 +02:00
|
|
|
|
2011-09-20 09:34:31 +02:00
|
|
|
Source0: http://webp.googlecode.com/files/%{name}-%{version}.tar.gz
|
|
|
|
Source1: baselibs.conf
|
2011-08-11 12:12:12 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-02-10 17:17:40 +01:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: libpng-devel
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: xz
|
2011-08-11 12:11:59 +02:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2012-02-10 17:17:40 +01:00
|
|
|
%package tools
|
2011-08-11 12:12:12 +02:00
|
|
|
Summary: The WebP command line tools
|
2012-02-10 17:17:40 +01:00
|
|
|
Group: Productivity/Archiving/Compression
|
|
|
|
#O/P added in 12.2
|
|
|
|
Obsoletes: webp-tools < %version-%release
|
|
|
|
Provides: webp-tools = %version-%release
|
2011-08-11 12:11:59 +02:00
|
|
|
|
2012-02-10 17:17:40 +01:00
|
|
|
%description tools
|
2011-08-11 12:11:59 +02:00
|
|
|
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
|
2011-08-11 12:12:12 +02:00
|
|
|
Summary: Library for the WebP graphics format
|
2012-02-10 17:17:40 +01:00
|
|
|
Group: System/Libraries
|
2011-08-11 12:11:59 +02:00
|
|
|
|
|
|
|
%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
|
2011-08-11 12:12:12 +02:00
|
|
|
Summary: Development files for libwebp, a library for the WebP format
|
2012-02-10 17:17:40 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2011-08-11 12:12:12 +02:00
|
|
|
Requires: %lname = %version
|
2011-08-11 12:11:59 +02:00
|
|
|
|
|
|
|
%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
|
2011-09-20 09:34:31 +02:00
|
|
|
%setup -q
|
2011-08-11 12:11:59 +02:00
|
|
|
|
|
|
|
%build
|
2011-09-20 09:34:31 +02:00
|
|
|
mkdir -p m4
|
|
|
|
./autogen.sh
|
2011-08-11 12:11:59 +02:00
|
|
|
%configure --disable-static
|
2011-09-20 09:34:31 +02:00
|
|
|
make %{?_smp_mflags}
|
2011-08-11 12:11:59 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
b="%buildroot";
|
|
|
|
make install DESTDIR="$b";
|
2012-02-10 17:17:40 +01:00
|
|
|
rm -f "%buildroot/%_libdir"/*.la;
|
2011-08-11 12:11:59 +02:00
|
|
|
|
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
|
2012-02-10 17:17:40 +01:00
|
|
|
%files -n libwebp-tools
|
2011-08-11 12:11:59 +02:00
|
|
|
%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
|