8549a86
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
8549a86
8549a86
Name: libiptcdata
8549a86
Version: 1.0.1
8549a86
Release: 1%{?dist}
8549a86
Summary: IPTC tag library
8549a86
8549a86
Group: Development/Libraries
8549a86
License: LGPL
8549a86
URL: http://libiptcdata.sourceforge.net/
8549a86
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
8549a86
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
8549a86
8549a86
%description
8549a86
libiptcdata is a library for parsing, editing, and saving IPTC data
8549a86
stored inside images.  IPTC is a standard for encoding metadata such
8549a86
as captions, titles, locations, etc. in the headers of an image file.
8549a86
libiptcdata also includes a command-line utility for modifying the
8549a86
metadata.
8549a86
8549a86
%package devel
8549a86
Summary: Headers and libraries for libiptcdata application development
8549a86
Group: Development/Libraries
8549a86
Requires: %{name} = %{version}-%{release}
8549a86
Requires: pkgconfig
8549a86
8549a86
%description devel
8549a86
The libiptcdata-devel package contains the libraries and include files
8549a86
that you can use to develop libiptcdata applications.
8549a86
8549a86
%package python
8549a86
Summary: Python bindings for libiptcdata
8549a86
Group: Development/Libraries
8549a86
Requires: %{name} = %{version}-%{release}
8549a86
BuildRequires: python-devel
8549a86
8549a86
%description python
8549a86
The libiptcdata-python package contains a Python module that allows Python
8549a86
applications to use the libiptcdata API for reading and writing IPTC
8549a86
metadata in images.
8549a86
8549a86
%prep
8549a86
%setup -q
8549a86
8549a86
%build
8549a86
%configure --enable-gtk-doc --enable-python --disable-static
8549a86
make %{?_smp_mflags}
8549a86
8549a86
%install
8549a86
rm -rf $RPM_BUILD_ROOT
8549a86
make DESTDIR=%{buildroot} INSTALL="%{__install} -c -p" install
8549a86
rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}.la
8549a86
rm -f $RPM_BUILD_ROOT%{python_sitearch}/iptcdata.la
8549a86
8549a86
%clean
8549a86
rm -rf $RPM_BUILD_ROOT
8549a86
8549a86
%post -p /sbin/ldconfig
8549a86
8549a86
%postun -p /sbin/ldconfig
8549a86
8549a86
%files
8549a86
%defattr(-,root,root)
8549a86
%doc AUTHORS COPYING ChangeLog NEWS README TODO
8549a86
%{_bindir}/*
8549a86
%{_libdir}/lib*.so.*
8549a86
# %{_datadir}/locale/*/LC_MESSAGES/*.mo
8549a86
8549a86
%files devel
8549a86
%defattr(-,root,root)
8549a86
%{_libdir}/lib*.so
8549a86
%{_libdir}/pkgconfig/*.pc
8549a86
%{_includedir}/libiptcdata
8549a86
%{_datadir}/gtk-doc/html/libiptcdata
8549a86
8549a86
%files python
8549a86
%defattr(-,root,root)
8549a86
%doc python/README
8549a86
%doc python/examples/*
8549a86
%{python_sitearch}/*.so
8549a86
8549a86
%changelog
8549a86
* Fri Mar 23 2007 David Moore <dcm@acm.org> 1.0.1-1
8549a86
- New upstream version
8549a86
8549a86
* Thu Mar 22 2007 David Moore <dcm@acm.org> 1.0.0-2
8549a86
- Fixed URL, removed INSTALL file, fixed python path and timestamps
8549a86
8549a86
* Wed Mar 21 2007 David Moore <dcm@acm.org> 1.0.0-1
8549a86
- Updated spec file to better match Fedora guidelines
8549a86
8549a86
* Sun Jan 28 2007 David Moore <dcm@acm.org>
8549a86
- Added libiptcdata-python package
8549a86
8549a86
* Wed Apr 12 2006 David Moore <dcm@acm.org>
8549a86
- Removed *.mo from spec file since there are no translations yet
8549a86
8549a86
* Mon Feb 28 2005 David Moore <dcm@acm.org>
8549a86
- Initial version