File libiptcdata.spec of Package libiptcdata

#
# spec file for package libiptcdata (Version 1.0.2)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           libiptcdata
Version:        1.0.2
Release:        1
Url:            http://libiptcdata.sourceforge.net/
Group:          System/Libraries
License:        LGPL v2.1 or later
Summary:        IPTC Metadata Tag Manipulation Library
Source:         %{name}-%{version}.tar.bz2
AutoReqProv:    on
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       libiptcdata0

%description
libiptcdata is a library for parsing, editing, and saving IPTC data.

libiptcdata is a library for manipulating the International Press
Telecommunications Council (IPTC) metadata stored within multimedia
files such as images. This metadata can include captions and keywords,
often used by popular photo management applications. The library
provides routines for parsing, viewing, modifying, and saving this
metadata. The libiptcdata package also includes a command line utility,
iptc, for editing IPTC data in JPEG files. The library implements the
IPTC Information Interchange Model according to its specification.



Authors:
--------
    David Moore <dcm@acm.org>
    Luka Renko <luka.renko@gmail.com>

%package -n libiptcdata0
Group:          System/Libraries
Summary:        IPTC Metadata Tag Manipulation Library
Requires:       %{name} = %{version}

%description -n libiptcdata0
libiptcdata is a library for parsing, editing, and saving IPTC data.

libiptcdata is a library for manipulating the International Press
Telecommunications Council (IPTC) metadata stored within multimedia
files such as images. This metadata can include captions and keywords,
often used by popular photo management applications. The library
provides routines for parsing, viewing, modifying, and saving this
metadata. The libiptcdata package also includes a command line utility,
iptc, for editing IPTC data in JPEG files. The library implements the
IPTC Information Interchange Model according to its specification.



Authors:
--------
    David Moore <dcm@acm.org>
    Luka Renko <luka.renko@gmail.com>

%package devel
Group:          System/Libraries
Summary:        IPTC Metadata Tag Manipulation Library
Requires:       %{name} = %{version}

%description devel
libiptcdata is a library for parsing, editing, and saving IPTC data.

libiptcdata is a library for manipulating the International Press
Telecommunications Council (IPTC) metadata stored within multimedia
files such as images. This metadata can include captions and keywords,
often used by popular photo management applications. The library
provides routines for parsing, viewing, modifying, and saving this
metadata. The libiptcdata package also includes a command-line utility,
iptc, for editing IPTC data in JPEG files.

The library implements the IPTC Information Interchange Model according
to its specification.



Authors:
--------
    David Moore <dcm@acm.org>
    Luka Renko <luka.renko@gmail.com>

%package doc
Group:          System/Libraries
Summary:        IPTC Metadata Tag Manipulation Library

%description doc
libiptcdata is a library for parsing, editing, and saving IPTC data.

libiptcdata is a library for manipulating the International Press
Telecommunications Council (IPTC) metadata stored within multimedia
files such as images. This metadata can include captions and keywords,
often used by popular photo management applications. The library
provides routines for parsing, viewing, modifying, and saving this
metadata. The libiptcdata package also includes a command-line utility,
iptc, for editing IPTC data in JPEG files.

The library implements the IPTC Information Interchange Model according
to its specification.



Authors:
--------
    David Moore <dcm@acm.org>
    Luka Renko <luka.renko@gmail.com>

%prep
%setup

%build
export CFLAGS="$RPM_OPT_FLAGS"
./configure\
	--prefix=%{_prefix} \
	--libdir=%{_libdir}
make %{?jobs:-j%jobs}

%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install

%clean
rm -rf $RPM_BUILD_ROOT

%post -n libiptcdata0
/sbin/ldconfig

%postun -n libiptcdata0
/sbin/ldconfig

%files
%defattr (-, root, root)
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README TODO
%{_bindir}/*

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

%files devel
%defattr (-, root, root)
%{_libdir}/*.so
%{_libdir}/*.*a
%{_libdir}/pkgconfig/*.pc
%{_prefix}/include/*

%files doc
%defattr (-, root, root)
%dir %{_datadir}/gtk-doc
%dir %{_datadir}/gtk-doc/html
%{_datadir}/gtk-doc/html/*

%changelog
* Fri Feb 01 2008 rodrigo@suse.de
- Update to version 1.0.2:
  * Compatibility improvements for Picasa: The IPTC version and
  encoding are no longer stored by default in saved IPTC output
  because these fields confuse Picasa
  * APP13 data block is stored closer to the beginning of the file
  * Minor Python compile fix
* Mon Oct 08 2007 maw@suse.de
- Split off a libiptcdata0 subpackage
- s#%%run_ldconfig#/sbin/ldconfig# in %%post and %%postun.
* Wed Jan 31 2007 ro@suse.de
- GNOME moved to /usr
* Tue Jan 23 2007 ro@suse.de
- drop requires for gnome-filesystem
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Jan 18 2006 sbrabec@suse.cz
- New SuSE package, version 0.2.1.