[mingw-libwebp] Initial import (#906765).
pfor
pfor at fedoraproject.org
Mon Apr 1 15:09:15 UTC 2013
commit ddefcbedf1474a698229b10d884c689de4b0f2f9
Author: Paweł Forysiuk <tuxator at o2.pl>
Date: Mon Apr 1 17:08:57 2013 +0200
Initial import (#906765).
.gitignore | 1 +
mingw-libwebp.spec | 127 ++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 129 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..7ff89b0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/libwebp-0.2.1.tar.gz
diff --git a/mingw-libwebp.spec b/mingw-libwebp.spec
new file mode 100644
index 0000000..f410f71
--- /dev/null
+++ b/mingw-libwebp.spec
@@ -0,0 +1,127 @@
+%?mingw_package_header
+
+Name: mingw-libwebp
+Version: 0.2.1
+Release: 2%{?dist}
+Summary: MinGW compilation of Library and tools for the WebP format
+
+License: BSD
+Group: Development/Libraries
+URL: http://webmproject.org
+Source0: http://webp.googlecode.com/files/libwebp-%{version}.tar.gz
+
+BuildArch: noarch
+
+BuildRequires: mingw32-filesystem >= 95
+BuildRequires: mingw32-gcc
+BuildRequires: mingw32-binutils
+BuildRequires: mingw32-libpng
+BuildRequires: mingw32-libjpeg
+
+BuildRequires: mingw64-filesystem >= 95
+BuildRequires: mingw64-gcc
+BuildRequires: mingw64-binutils
+BuildRequires: mingw32-libpng
+BuildRequires: mingw32-libjpeg
+
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: libtool
+
+
+%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.
+
+# Win32
+%package -n mingw32-libwebp
+Summary: MinGW compilation of Library and tools for the WebP format
+
+
+%description -n mingw32-libwebp
+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.
+
+
+# Win64
+%package -n mingw64-libwebp
+Summary: MinGW compilation of Library and tools for the WebP format
+
+%description -n mingw64-libwebp
+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.
+
+%?mingw_debug_package
+
+
+%prep
+%setup -q -n libwebp-%{version}
+./autogen.sh
+
+
+%build
+%mingw_configure \
+ --enable-shared --disable-static \
+
+%mingw_make %{?_smp_mflags}
+
+
+%install
+%mingw_make DESTDIR=$RPM_BUILD_ROOT install
+
+#drop unneeded files
+rm -fr $RPM_BUILD_ROOT%{mingw32_libdir}/libwebp.la
+rm -fr $RPM_BUILD_ROOT%{mingw64_libdir}/libwebp.la
+rm -fr $RPM_BUILD_ROOT%{mingw32_mandir}
+rm -fr $RPM_BUILD_ROOT%{mingw64_mandir}
+
+#rename exe files
+mv $RPM_BUILD_ROOT%{mingw32_bindir}/i686-w64-mingw32-cwebp.exe \
+ $RPM_BUILD_ROOT%{mingw32_bindir}/cwebp.exe
+mv $RPM_BUILD_ROOT%{mingw32_bindir}/i686-w64-mingw32-dwebp.exe \
+ $RPM_BUILD_ROOT%{mingw32_bindir}/dwebp.exe
+mv $RPM_BUILD_ROOT%{mingw64_bindir}/x86_64-w64-mingw32-cwebp.exe \
+ $RPM_BUILD_ROOT%{mingw64_bindir}/cwebp.exe
+mv $RPM_BUILD_ROOT%{mingw64_bindir}/x86_64-w64-mingw32-dwebp.exe \
+ $RPM_BUILD_ROOT%{mingw64_bindir}/dwebp.exe
+
+# Win32
+%files -n mingw32-libwebp
+%doc PATENTS COPYING
+
+%{mingw32_bindir}/cwebp.exe
+%{mingw32_bindir}/dwebp.exe
+%{mingw32_bindir}/libwebp-4.dll
+%{mingw32_includedir}/webp
+%{mingw32_libdir}/pkgconfig/libwebp.pc
+%{mingw32_libdir}/libwebp.dll.a
+
+# Win64
+%files -n mingw64-libwebp
+%doc PATENTS COPYING
+
+%{mingw64_bindir}/cwebp.exe
+%{mingw64_bindir}/dwebp.exe
+%{mingw64_bindir}/libwebp-4.dll
+%{mingw64_includedir}/webp
+%{mingw64_libdir}/pkgconfig/libwebp.pc
+%{mingw64_libdir}/libwebp.dll.a
+
+%changelog
+* Mon Mar 25 2013 Paweł Forysiuk <tuxator at o2.pl> - 0.2.1-2
+- Fix Buildrequires
+- Add COPYING files
+
+* Sun Dec 30 2012 Paweł Forysiuk <tuxator at o2.pl> - 0.2.1-1
+- Initial packaging
+
diff --git a/sources b/sources
index e69de29..8936203 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+dc9b26f16bd5221414dbab95f13d4453 libwebp-0.2.1.tar.gz
More information about the scm-commits
mailing list