diff --git a/.cvsignore b/.cvsignore index e69de29..0154590 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +exiv2-0.9.1.tar.gz diff --git a/exiv2-0.9.1-deps.patch b/exiv2-0.9.1-deps.patch new file mode 100644 index 0000000..3460dba --- /dev/null +++ b/exiv2-0.9.1-deps.patch @@ -0,0 +1,13 @@ +--- exiv2-0.9.1/src/Makefile.deps 2006-01-20 02:45:59.000000000 -0600 ++++ exiv2-0.9.1/src/Makefile 2006-05-18 09:10:11.000000000 -0500 +@@ -156,6 +156,10 @@ + @$(LIBTOOL) --mode=compile $(COMPILE.cc) -o $@ $< + @$(MAKEDEPEND) + @$(POSTDEPEND) ++# The dependancies here are wrong. It generates .lo output, ++# so things are rebuilt *every* time 'make' is called. ++# Let's try a quick-n-dirty hack -- Rex ++ touch $@ + + $(COBJ): %.o: %.c + @$(LIBTOOL) --mode=compile $(COMPILE.c) -o $@ $< diff --git a/exiv2-0.9.1-no_rpath.patch b/exiv2-0.9.1-no_rpath.patch new file mode 100644 index 0000000..ffae839 --- /dev/null +++ b/exiv2-0.9.1-no_rpath.patch @@ -0,0 +1,20 @@ +--- exiv2-0.9.1/src/Makefile.no_rpath 2006-05-18 08:41:02.000000000 -0500 ++++ exiv2-0.9.1/src/Makefile 2006-05-18 09:10:11.000000000 -0500 +@@ -148,7 +148,7 @@ + # Compilation shortcuts + COMPILE.cc = $(CXX) $(CXXFLAGS) $(CXXDEFS) $(CXXINCS) -c + COMPILE.c = $(CC) $(CFLAGS) $(DEFS) $(INCS) -c +-LINK.cc = $(CXX) $(CXXFLAGS) $(LDLIBS) $(LDFLAGS) -rpath $(libdir) ++LINK.cc = $(CXX) $(CXXFLAGS) $(LDLIBS) $(LDFLAGS) #-rpath $(libdir) + + # ****************************************************************************** + # Rules +@@ -203,7 +203,7 @@ + bin: lib $(BINARY) $(EXIV2BIN) $(MCBIN) path-test + + lib: $(OBJ) +- $(LIBTOOL) --mode=link $(CXX) $(LDFLAGS) $(LOBJ) -o $(LIBRARY) -rpath $(libdir) -release $(EXIV2_VERSION) ++ $(LIBTOOL) --mode=link $(CXX) $(LDFLAGS) $(LOBJ) -o $(LIBRARY) -release $(EXIV2_VERSION) -rpath $(libdir) + @touch lib + + path-test: path-test.o utils.o diff --git a/exiv2.spec b/exiv2.spec new file mode 100644 index 0000000..9aff7eb --- /dev/null +++ b/exiv2.spec @@ -0,0 +1,102 @@ + +Summary: Exif and Iptc metadata manipulation library and tools +Name: exiv2 +Version: 0.9.1 +Release: 3%{?dist} + +License: GPL +Group: Applications/Multimedia +URL: http://home.arcor.de/ahuggel/exiv2/ +Source: http://home.arcor.de/ahuggel/exiv2/exiv2-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +Patch1: exiv2-0.9.1-no_rpath.patch +Patch2: exiv2-0.9.1-deps.patch + + + +%description +Exiv2 comprises of a C++ library and a command line utility to access image +metadata. Exiv2 supports full read and write access to the Exif and Iptc +metadata, Exif MakerNote support, extract and delete methods for Exif +thumbnails, classes to access Ifd and so on. +The command line utility allows you to: +* print the Exif metadata of Jpeg images as summary info, interpreted values, + or the plain data for each tag +* print the Iptc metadata of Jpeg images +* print the Jpeg comment of Jpeg images +* set, add and delete Exif and Iptc metadata of Jpeg images +* adjust the Exif timestamp (that's how it all started...) +* rename Exif image files according to the Exif timestamp +* extract, insert and delete Exif metadata (including thumbnails), + Iptc metadata and Jpeg comments + +%package devel +Summary: Header files, libraries and development documentation for %{name} +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +%description devel +%{summary}. + + +%prep +%setup -q + +%patch1 -p1 -b .no_rpath +%patch2 -p1 -b .deps + + +%build +%configure --disable-static + +make -C src %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT + +make -C src install DESTDIR=$RPM_BUILD_ROOT + +# Unpackaged files +rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la + +# set eXecute bit on installed lib +chmod a+x $RPM_BUILD_ROOT%{_libdir}/libexiv2-*.so + + +%clean +rm -rf $FPM_BUILD_ROOT + + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + + +%files +%defattr(-,root,root,-) +%doc COPYING README +%{_bindir}/exiv2 +%{_libdir}/libexiv2-*.so +%{_mandir}/man1/* + +%files devel +%defattr(-,root,root,-) +%doc doc/html +%{_bindir}/exiv2-config +%{_includedir}/exiv2/ +%{_libdir}/libexiv2.so + + +%changelog +* Wed May 17 2006 Rex Dieter 0.9.1-3 +- cleanup %%description +- set eXecute bit on installed lib. +- no_rpath patch +- deps patch (items get (re)compiled on *every* call to 'make') + +* Wed May 17 2006 Rex Dieter 0.9.1-2 +- %%post/%%postun: /sbin/ldconfig + +* Tue May 16 2006 Rex Dieter 0.9.1-1 +- first try diff --git a/sources b/sources index e69de29..2d8fd7e 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +4c6593751368f5e9235d85e0d4058e67 exiv2-0.9.1.tar.gz