1%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
2
3Name: @PACKAGE@
4Version: @VERSION@
5Release: 1%{?dist}
6Summary: IPTC tag library
7
8Group: Development/Libraries
9License: LGPLv2+
10URL: http://libiptcdata.sourceforge.net/
11Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
12BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
13BuildRequires: gettext
14BuildRequires: libtool
15BuildRequires: gtk-doc
16
17%description
18libiptcdata is a library for parsing, editing, and saving IPTC data
19stored inside images.  IPTC is a standard for encoding metadata such
20as captions, titles, locations, etc. in the headers of an image file.
21libiptcdata also includes a command-line utility for modifying the
22metadata.
23
24%package devel
25Summary: Headers and libraries for libiptcdata application development
26Group: Development/Libraries
27Requires: %{name} = %{version}-%{release}
28Requires: pkgconfig
29Requires: gtk-doc
30
31%description devel
32The libiptcdata-devel package contains the libraries and include files
33that you can use to develop libiptcdata applications.
34
35%package python
36Summary: Python bindings for libiptcdata
37Group: Development/Libraries
38Requires: %{name} = %{version}-%{release}
39BuildRequires: python-devel
40
41%description python
42The libiptcdata-python package contains a Python module that allows Python
43applications to use the libiptcdata API for reading and writing IPTC
44metadata in images.
45
46%prep
47%setup -q
48
49%build
50%configure --enable-gtk-doc --enable-python --disable-static
51make %{?_smp_mflags}
52
53%install
54rm -rf $RPM_BUILD_ROOT
55make DESTDIR=%{buildroot} INSTALL="%{__install} -c -p" install
56rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}.la
57rm -f $RPM_BUILD_ROOT%{python_sitearch}/iptcdata.la
58
59%clean
60rm -rf $RPM_BUILD_ROOT
61
62%post -p /sbin/ldconfig
63
64%postun -p /sbin/ldconfig
65
66%files
67%defattr(-,root,root)
68%doc AUTHORS COPYING ChangeLog NEWS README TODO
69%{_bindir}/*
70%{_libdir}/lib*.so.*
71%{_datadir}/locale/*/LC_MESSAGES/*.mo
72
73%files devel
74%defattr(-,root,root)
75%{_libdir}/lib*.so
76%{_libdir}/pkgconfig/*.pc
77%{_includedir}/libiptcdata
78%{_datadir}/gtk-doc/html/libiptcdata
79
80%files python
81%defattr(-,root,root)
82%doc python/README
83%doc python/examples/*
84%{python_sitearch}/*.so
85
86%changelog
87* Sun Apr 12 2009 David Moore <dcm@acm.org> 1.0.3-3
88- Added 'BuildRequires: gtk-doc'
89
90* Sun Apr 12 2009 David Moore <dcm@acm.org> 1.0.3-2
91- Added 'Requires: gtk-doc' and 'BuildRequires: libtool' and gettext
92
93* Sun Apr 12 2009 David Moore <dcm@acm.org> 1.0.3-1
94- New upstream version
95- Added translation to file list
96
97* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-5
98- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
99
100* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.0.2-4
101- Rebuild for Python 2.6
102
103* Thu May 29 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.0.2-3
104- fix license tag
105
106* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.0.2-2
107- Autorebuild for GCC 4.3
108
109* Tue May 15 2007 David Moore <dcm@acm.org> 1.0.2-1
110- New upstream version
111
112* Fri Mar 23 2007 David Moore <dcm@acm.org> 1.0.1-1
113- New upstream version
114
115* Thu Mar 22 2007 David Moore <dcm@acm.org> 1.0.0-2
116- Fixed URL, removed INSTALL file, fixed python path and timestamps
117
118* Wed Mar 21 2007 David Moore <dcm@acm.org> 1.0.0-1
119- Updated spec file to better match Fedora guidelines
120
121* Sun Jan 28 2007 David Moore <dcm@acm.org>
122- Added libiptcdata-python package
123
124* Wed Apr 12 2006 David Moore <dcm@acm.org>
125- Removed *.mo from spec file since there are no translations yet
126
127* Mon Feb 28 2005 David Moore <dcm@acm.org>
128- Initial version
129