Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > 8b6e069f44076cc804b7b0f3b8887670 > files > 5

libexif-0.6.16-6mdv2009.0.src.rpm

%define libname		%mklibname exif 12
%define develname	%mklibname exif -d
%define langname	libexif-12

Summary:	Library to access EXIF files (extended JPEG files)
Name:		libexif
Version:	0.6.16
Release:	%mkrel 6
License:	LGPLv2.1
Group:		Graphics
Url:		http://sourceforge.net/projects/libexif/
Source:		http://belnet.dl.sourceforge.net/sourceforge/libexif/libexif-%{version}.tar.bz2
Patch0:		libexif-0.6.13-pkgconfig-fix.patch
Patch1:		CVE-2007-6351.patch
Patch2:		CVE-2007-6352.patch
Provides:	libexif
BuildRequires:	doxygen
BuildRequires:	gettext-devel
BuildRequires:	libtool
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
Most digital cameras produce EXIF files, which are JPEG files with
extra tags that contain information about the image. The EXIF library
allows you to parse an EXIF file and read the data from those tags.

%package -n %{libname}
Summary:	Library to access EXIF files (extended JPEG files)
Provides:	libexif
Group:		Graphics

%description -n %{libname}
Most digital cameras produce EXIF files, which are JPEG files with
extra tags that contain information about the image. The EXIF library
allows you to parse an EXIF file and read the data from those tags.

%package -n %{develname}
Summary: 	Headers and links to compile against the "%{libname}" library
Requires: 	%{libname} = %{version}
Provides:	%{name}-devel = %{version}-%{release}
Obsoletes:	%{mklibname exif 12 -d}
Group:		Development/C

%description -n %{develname}
This package contains all files which one needs to compile programs using
the "%{libname}" library.


##### PREP #####

%prep
%setup -q
%patch0 -p2 -b .includedir
%patch1 -p1
%patch2 -p1

# Fix broken libexif/exif-utils.c
perl -p -i -e 's:^(\s*)static\s*(ExifSShort):$1$2:' libexif/exif-utils.c

##### BUILD #####

%build
#sh ./autogen.sh
libtoolize --copy --force; aclocal -I auto-m4 -I m4m; autoconf; automake

%configure2_5x
%make

##### INSTALL #####

%install
rm -rf %buildroot
%makeinstall
%find_lang %{langname}

##### PRE/POST INSTALL SCRIPTS #####

%if %mdkversion < 200900
%post -n %{libname} -p /sbin/ldconfig
%endif
%if %mdkversion < 200900
%postun -n %{libname} -p /sbin/ldconfig
%endif

%clean
rm -rf %buildroot

##### FILE LISTS FOR ALL BINARY PACKAGES #####

##### libexif
%files -n %libname
%defattr(-,root,root)
%{_libdir}/*.so.*

##### libexif-devel
%files -n %{develname} -f %{langname}.lang
%defattr(-,root,root)
%doc ABOUT-NLS COPYING ChangeLog README
%{_libdir}/*.so
%{_libdir}/*.la
%{_libdir}/*.a
%{_libdir}/pkgconfig/*
%{_includedir}/*
%{_docdir}/libexif



%changelog
* Sat Jun 28 2008 Oden Eriksson <oeriksson@mandriva.com> 0.6.16-6mdv2009.0
+ Revision: 229910
- fix build

  + Thierry Vignaud <tvignaud@mandriva.com>
    - rebuild
    - fix spacing at top of description

  + Pixel <pixel@mandriva.com>
    - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers

* Fri Jan 25 2008 Marcelo Ricardo Leitner <mrl@mandriva.com> 0.6.16-4mdv2008.1
+ Revision: 157942
- Added patches for CVE-2007-6351 and CVE-2007-6352. Closes: #36620

* Sun Jan 13 2008 Thierry Vignaud <tvignaud@mandriva.com> 0.6.16-3mdv2008.1
+ Revision: 150557
- rebuild
- kill re-definition of %%buildroot on Pixel's request

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

* Tue Jul 31 2007 Adam Williamson <awilliamson@mandriva.com> 0.6.16-2mdv2008.0
+ Revision: 57206
- fix files - move all non-library files to the -devel package (#31077)
- new devel policy
- specify license LGPLv2.1
- spec clean

* Thu Jun 21 2007 Marcelo Ricardo Leitner <mrl@mandriva.com> 0.6.16-1mdv2008.0
+ Revision: 42327
- New upstream: 0.6.16

* Wed May 16 2007 Marcelo Ricardo Leitner <mrl@mandriva.com> 0.6.14-1mdv2008.0
+ Revision: 27432
- New upstream: 0.6.14
- Use -p switch for post scripts that only runs ldconfig
- Specfile cleanup
- Improved i18n handling.


* Mon Jan 15 2007 Marcelo Ricardo Leitner <mrl@mandriva.com> 0.6.13-4mdv2007.0
+ Revision: 109120
- Fixed devel group. Closes: #28141

  + Oden Eriksson <oeriksson@mandriva.com>
    - bzip2 cleanup

* Thu Oct 12 2006 Oden Eriksson <oeriksson@mandriva.com> 0.6.13-3mdv2007.1
+ Revision: 63431
- fix the spec file
- bunzip patches
- Import libexif

* Mon Jun 26 2006 Christiaan Welvaart <cjw@daneel.dyndns.org> 0.6.13-2
- patch0: fix include dir in pkgconfig file

* Wed May 17 2006 Till Kamppeter <till@mandriva.com> 0.6.13-1mdk
- Updated to version 0.6.12.
- Removed patch 1 (merged upstream).
- Added API documentation to -devel package.
- Introduced %%{1}mdv2007.1.

* Sun Jan 01 2006 Mandriva Linux Team <http://www.mandrivaexpert.com/> 0.6.12-3mdk
- Rebuild

* Sat Aug 13 2005 Austin Acton <austin@mandriva.org> 0.6.12-2mdk
- try to fix gimp crashes (bug #16618)
- configure 2.5

* Tue Jun 28 2005 Till Kamppeter <till@mandrakesoft.com> 0.6.12-1mdk
- Updated to version 0.6.12.
- Removed Patch0 (merged upstream).

* Fri Apr 01 2005 Till Kamppeter <till@mandrakesoft.com> 0.6.11-2mdk
- SECURITY FIX: Fixed MDKSA-2005:064 (bug 15139).

* Sat Nov 27 2004 Till Kamppeter <till@mandrakesoft.com> 0.6.11-1mdk
- Updated to version 0.6.11.