packages: gexiv2/gexiv2-libtool.patch (NEW), gexiv2/gexiv2.spec (NEW) - Ini...

caleb caleb at pld-linux.org
Mon Aug 2 20:01:02 CEST 2010


Author: caleb                        Date: Mon Aug  2 18:01:02 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- Initial add

---- Files affected:
packages/gexiv2:
   gexiv2-libtool.patch (NONE -> 1.1)  (NEW), gexiv2.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/gexiv2/gexiv2-libtool.patch
diff -u /dev/null packages/gexiv2/gexiv2-libtool.patch:1.1
--- /dev/null	Mon Aug  2 20:01:03 2010
+++ packages/gexiv2/gexiv2-libtool.patch	Mon Aug  2 20:00:57 2010
@@ -0,0 +1,31 @@
+--- Makefile~	2010-06-28 13:00:02.000000000 -0600
++++ Makefile	2010-08-02 13:12:28.000000000 -0600
+@@ -134,7 +134,7 @@
+ .PHONY: install
+ install:
+ 	@mkdir -p $(DESTDIR)$(PREFIX)/$(LIB)
+-	libtool --mode=install $(INSTALL_PROGRAM) $(LIBRARY).la $(DESTDIR)$(PREFIX)/$(LIB)
++	libtool --tag=CC --mode=install $(INSTALL_PROGRAM) $(LIBRARY).la $(DESTDIR)$(PREFIX)/$(LIB)
+ 	@mkdir -p $(DESTDIR)$(PREFIX)/include/$(PKGNAME)
+ 	$(INSTALL_DATA) $(EXPANDED_INSTALLED_HEADER_FILES) $(DESTDIR)$(PREFIX)/include/$(PKGNAME)
+ 	@mkdir -p $(DESTDIR)$(PREFIX)/$(LIB)/pkgconfig
+@@ -147,7 +147,7 @@
+ 	$(INSTALL_DATA) $(VAPI_FILE) $(DESTDIR)$(PREFIX)/share/vala/vapi
+ 
+ uninstall:
+-	libtool --mode=uninstall rm -f $(DESTDIR)$(PREFIX)/$(LIB)/$(LIBRARY).la
++	libtool --tag=CC --mode=uninstall rm -f $(DESTDIR)$(PREFIX)/$(LIB)/$(LIBRARY).la
+ 	rm -rf $(DESTDIR)$(PREFIX)/include/$(PKGNAME)
+ 	rm -f $(DESTDIR)$(PREFIX)/$(LIB)/pkgconfig/$(PKGNAME).pc
+ 	rm -f $(DESTDIR)$(PREFIX)/share/vala/vapi/$(PKGNAME).vapi
+@@ -163,8 +163,8 @@
+ $(EXPANDED_OBJ_FILES): $(BUILD_DIR)/%.o: gexiv2/%.cpp $(EXPANDED_HEADER_FILES) $(CONFIG_IN) Makefile
+ 	@pkg-config --print-errors --exists '$(EXT_PKG_VERSIONS)'
+ 	@mkdir -p $(BUILD_DIR)
+-	libtool --mode=compile $(CXX) -c $(EXT_PKGS_CFLAGS) $(CFLAGS) -I. -o $@ $<
++	libtool --tag=CC --mode=compile $(CXX) -c $(EXT_PKGS_CFLAGS) $(CFLAGS) -I. -o $@ $<
+ 
+ $(LIBRARY_BIN): $(EXPANDED_OBJ_FILES)
+-	libtool --mode=link $(CXX) -rpath $(PREFIX)/$(LIB) $(EXPANDED_LO_FILES) $(EXT_PKGS_LDFLAGS) $(CFLAGS) $(LDFLAGS) -o $(LIBRARY_BIN)
++	libtool --tag=CC --mode=link $(CXX) -rpath $(PREFIX)/$(LIB) $(EXPANDED_LO_FILES) $(EXT_PKGS_LDFLAGS) $(CFLAGS) $(LDFLAGS) -o $(LIBRARY_BIN)
+ 

================================================================
Index: packages/gexiv2/gexiv2.spec
diff -u /dev/null packages/gexiv2/gexiv2.spec:1.1
--- /dev/null	Mon Aug  2 20:01:03 2010
+++ packages/gexiv2/gexiv2.spec	Mon Aug  2 20:00:58 2010
@@ -0,0 +1,83 @@
+# $Revision$, $Date$
+# TODO:
+# - Add bcond for vapi support and subpackage
+
+Summary:	GObject-based wrapper around the  Exiv2 library
+Name:		gexiv2
+Version:	0.1.0
+Release:	1
+License:	GPL
+Group:		Applications/Graphics
+Source0:	http://yorba.org/download/%{name}/0.1/lib%{name}-%{version}.tar.bz2
+# Source0-md5:	efae406dac86aa6db4cfb75569cbb3f9
+URL:		http://libexif.sourceforge.net/
+Patch0:		gexiv2-libtool.patch
+BuildRequires:	exiv2-devel
+BuildRequires:	pkgconfig
+Requires:	exiv2-libs
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+gexiv2 is a GObject-based wrapper around the  Exiv2 library. It makes
+the basic features of Exiv2 available to GNOME applications.
+
+%package devel
+Summary: GObject-based wrapper around the  Exiv2 library
+Requires:	exiv2-devel
+Group:	Development/Libraries
+
+%description devel
+gexiv2 development files
+
+%package static
+Summary: GObject-based wrapper around the  Exiv2 library
+Requires:	exiv2-static
+Group:	Development/Libraries
+
+%description static
+gexiv2 static library
+
+%prep
+%setup -q -n lib%{name}-%{version}
+%patch0 -p0
+
+%build
+%{__libtoolize}
+./configure --prefix=%{_prefix}
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/lib%{name}.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/lib%{name}.so.0
+%attr(755,root,root) %{_libdir}/lib%{name}.so
+
+%files devel
+%defattr(644,root,root,755)
+%{_libdir}/lib%{name}.la
+%{_includedir}/%{name}
+%{_pkgconfigdir}/%{name}.pc
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/lib%{name}.a
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2010/08/02 18:00:58  caleb
+- Initial add
+
================================================================


More information about the pld-cvs-commit mailing list