forked from pool/libwebp
93 lines
2.5 KiB
RPMSpec
93 lines
2.5 KiB
RPMSpec
|
|
||
|
Name: libwebp
|
||
|
%define lname libwebp0
|
||
|
Version: 0.1.2
|
||
|
Release: 0
|
||
|
Group: System/Libraries
|
||
|
URL: http://webmproject.org/
|
||
|
Summary: Library and tools for the WebP graphics format
|
||
|
License: BSD3c
|
||
|
|
||
|
#Source: http://webp.googlecode.com/files/libwebp-0.1.tar.gz
|
||
|
Source: %name-%version.tar.xz
|
||
|
BuildRoot: %_tmppath/%name-%version-build
|
||
|
BuildRequires: libjpeg-devel, libpng-devel, 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 -qn %name
|
||
|
|
||
|
%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
|