[mingw-libjpeg-turbo] Initial import

epienbro epienbro at fedoraproject.org
Fri Jun 3 17:40:58 UTC 2011


commit f69051876195dbe4f25bd033ae97b23e1970c786
Author: Erik van Pienbroek <epienbro at fedoraproject.org>
Date:   Fri Jun 3 19:40:36 2011 +0200

    Initial import

 .gitignore               |    1 +
 mingw-libjpeg-turbo.spec |  133 ++++++++++++++++++++++++++++++++++++++++++++++
 sources                  |    1 +
 3 files changed, 135 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..5a1b1b0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/libjpeg-turbo-1.1.1.tar.gz
diff --git a/mingw-libjpeg-turbo.spec b/mingw-libjpeg-turbo.spec
new file mode 100644
index 0000000..8aa2d49
--- /dev/null
+++ b/mingw-libjpeg-turbo.spec
@@ -0,0 +1,133 @@
+%global __strip %{_mingw32_strip}
+%global __objdump %{_mingw32_objdump}
+%define __debug_install_post %{_mingw32_debug_install_post}
+
+# Build the programs like cjpeg, etc.
+# https://bugzilla.redhat.com/show_bug.cgi?id=467401#c7
+%global build_programs 0
+
+Name:           mingw-libjpeg-turbo
+Version:        1.1.1
+Release:        3%{?dist}
+Summary:        MinGW Windows Libjpeg-turbo library
+
+License:        wxWidgets
+URL:            http://libjpeg-turbo.virtualgl.org/
+Group:          Development/Libraries
+Source0:        http://downloads.sourceforge.net/libjpeg-turbo/libjpeg-turbo-%{version}.tar.gz
+
+BuildArch:      noarch
+
+BuildRequires:  mingw32-filesystem >= 68
+BuildRequires:  mingw32-gcc
+BuildRequires:  mingw32-gcc-c++
+BuildRequires:  mingw32-binutils
+BuildRequires:  mingw32-libpng
+BuildRequires:  mingw32-zlib
+BuildRequires:  nasm
+BuildRequires:  cmake
+
+%description
+MinGW Windows cross compiled Libjpeg-turbo library.
+
+
+%package -n %{_mingw32_pkg_name}
+Summary:        MinGW Windows Libjpeg-turbo library
+Obsoletes:      mingw32-libjpeg < 7-4
+Provides:       mingw32-libjpeg = 7-4
+
+%description -n %{_mingw32_pkg_name}
+MinGW Windows cross compiled Libjpeg-turbo library.
+
+
+%package -n %{_mingw32_pkg_name}-static
+Summary:        Static version of the MinGW Windows Libjpeg-turbo library
+Requires:       mingw32-libjpeg-turbo = %{version}-%{release}
+Obsoletes:      mingw32-libjpeg-static < 7-4
+Provides:       mingw32-libjpeg-static = 7-4
+
+%description -n %{_mingw32_pkg_name}-static
+Static version of the MinGW Windows cross compiled Libjpeg-turbo library.
+
+
+%{?_mingw32_debug_package}
+
+
+%prep
+%setup -q -n libjpeg-turbo-%{version}
+
+
+%build
+%{_mingw32_cmake}
+make %{?_smp_mflags}
+
+
+%install
+make install DESTDIR=$RPM_BUILD_ROOT
+
+# Remove manual pages which duplicate Fedora native.
+rm -rf $RPM_BUILD_ROOT%{_mingw32_mandir}
+
+# The CMake build system also installed some docs
+rm -rf $RPM_BUILD_ROOT%{_mingw32_prefix}/doc
+
+# Remove win32 native binaries if wanted
+%if %build_programs == 0
+rm -f $RPM_BUILD_ROOT%{_mingw32_bindir}/*.exe
+%endif
+
+# Fix perms
+chmod -x README-turbo.txt
+
+
+%files -n %{_mingw32_pkg_name}
+%doc README README-turbo.txt change.log ChangeLog.txt LGPL.txt LICENSE.txt
+%if %build_programs
+%{_mingw32_bindir}/*.exe
+%endif
+%{_mingw32_bindir}/libjpeg-62.dll
+%{_mingw32_bindir}/libturbojpeg.dll
+%{_mingw32_includedir}/jconfig.h
+%{_mingw32_includedir}/jerror.h
+%{_mingw32_includedir}/jmorecfg.h
+%{_mingw32_includedir}/jpeglib.h
+%{_mingw32_includedir}/turbojpeg.h
+%{_mingw32_libdir}/libjpeg.dll.a
+%{_mingw32_libdir}/libturbojpeg.dll.a
+
+%files -n %{_mingw32_pkg_name}-static
+%{_mingw32_libdir}/libjpeg.a
+%{_mingw32_libdir}/libturbojpeg.a
+
+
+%changelog
+* Thu Jun  2 2011 Erik van Pienbroek <epienbro at fedoraproject.org> - 1.1.1-3
+- Moved the obsoletes/provides to the right location
+- Bundle the licence and other %%doc's
+- Fixed a small rpmlint warning
+
+* Thu Jun  2 2011 Erik van Pienbroek <epienbro at fedoraproject.org> - 1.1.1-2
+- Use CMake to build this package as it creates a more mingw-friendly
+  version of the library
+
+* Thu Jun  2 2011 Erik van Pienbroek <epienbro at fedoraproject.org> - 1.1.1-1
+- Update to 1.1.1
+- Temporary made the package compliant to the old guidelines as the new
+  mingw-w64 based toolchain isn't approved for inclusion in Fedora yet
+
+* Fri Apr 15 2011 Erik van Pienbroek <epienbro at fedoraproject.org> - 1.1.0-1
+- Update to 1.1.0
+- Made the package compliant with the new approved packaging guidelines
+
+* Tue Feb 15 2011 Erik van Pienbroek <epienbro at fedoraproject.org> - 1.0.1-3
+- Bumped the obsoletes mingw32-libjpeg
+
+* Wed Jan 19 2011 Erik van Pienbroek <epienbro at fedoraproject.org> - 1.0.1-2
+- Generate per-target RPMs
+
+* Sun Oct  3 2010 Erik van Pienbroek <epienbro at fedoraproject.org> - 1.0.1-1
+- Initial release (based on mingw32-libjpeg)
+- Dropped the BR: mingw32-dlfcn
+- Obsoletes/provides mingw32-libjpeg and mingw32-libjpeg-static
+- Disable SIMD support for now because libtool doesn't recognize nasm
+
diff --git a/sources b/sources
index e69de29..425db53 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+03b9c1406c7bfdc204313c2917ce6962  libjpeg-turbo-1.1.1.tar.gz


More information about the scm-commits mailing list