6 Summary: A MMX/SSE2 accelerated library for manipulating JPEG image files
7 License: BSD License (BSD 3-clause, Historic Permission Notice and Disclaimer, libjpeg License)
8 Group: Graphics & UI Framework/Libraries
9 Url: http://sourceforge.net/projects/libjpeg-turbo
10 Source0: %{name}-%{version}.tar.gz
11 Source1001: libjpeg-turbo.manifest
13 BuildRequires: gcc-c++
14 BuildRequires: libtool
18 The libjpeg-turbo package contains a library of functions for manipulating
25 Summary: The MMX/SSE accelerated JPEG compression/decompression library
26 Group: Graphics & UI Framework/Libraries
28 Provides: libjpeg = %{version}
30 Obsoletes: libjpeg < %{version}
32 %description -n libjpeg
33 This library contains MMX/SSE accelerated functions for manipulating
36 %package -n libjpeg-devel
39 Summary: Development Tools for applications which will use the Libjpeg Library
40 Group: Graphics & UI Framework/Development
42 Provides: libjpeg-turbo-devel
43 Requires: libjpeg = %{version}
44 Provides: libjpeg-devel = %{version}
45 Obsoletes: libjpeg-devel < %{version}
47 %description -n libjpeg-devel
48 The libjpeg-devel package includes the header files and libraries
49 necessary for compiling and linking programs which will manipulate JPEG
50 files using the libjpeg library.
57 %if "%{tizen_profile_name}" == "tv"
58 echo "tizen_product_tv"
59 export CFLAGS="$CFLAGS -D_TIZEN_PRODUCT_TV -D_USE_PRODUCT_TV -DCOLOR_PICKER_ENABLE"
61 %cmake . -DCMAKE_BUILD_TYPE=Release -DENABLE_SHARED=TRUE -DENABLE_STATIC=FALSE -DWITH_JPEG8=TRUE
62 %__make %{?jobs:-j%jobs}
69 # Remove unwanted files
70 rm %{buildroot}%{_bindir}/*
72 # Remove docs, we'll select docs manually
73 rm -rf %{buildroot}%{_datadir}/doc/
75 %post -n libjpeg -p /sbin/ldconfig
77 %postun -n libjpeg -p /sbin/ldconfig
82 %manifest %{name}.manifest
88 %manifest %{name}.manifest
90 %{_libdir}/libturbojpeg.so.*
91 %{_libdir}/libjpeg.so.*
95 %files -n libjpeg-devel
98 %{_libdir}/pkgconfig/libturbojpeg.pc
99 %{_libdir}/pkgconfig/libjpeg.pc
100 %{_libdir}/libturbojpeg.so
101 %{_libdir}/libjpeg.so
102 %doc coderules.txt jconfig.txt libjpeg.txt structure.txt example.txt