diff options
author | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2011-01-18 23:09:30 +0100 |
---|---|---|
committer | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2011-01-18 23:09:30 +0100 |
commit | e0f8250ecc4240e9d85feda8d7ad7692cd8a2620 (patch) | |
tree | 52fa630ae7a1e19380330565fc276465a7206559 | |
download | libgaiagraphics-package-e0f8250ecc4240e9d85feda8d7ad7692cd8a2620.tar.gz libgaiagraphics-package-e0f8250ecc4240e9d85feda8d7ad7692cd8a2620.tar.xz libgaiagraphics-package-e0f8250ecc4240e9d85feda8d7ad7692cd8a2620.zip |
libgaiagraphics-0.4-1.fc13.src.rpm
-rw-r--r-- | .gitmodules | 3 | ||||
l--------- | GNUmakefile | 1 | ||||
m--------- | git-rpm | 0 | ||||
-rw-r--r-- | libgaiagraphics.spec | 85 | ||||
-rw-r--r-- | libgaiagraphics_libgeotiff.patch | 52 |
5 files changed, 141 insertions, 0 deletions
diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..0ccfef1 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "git-rpm"] + path = git-rpm + url = git://fedorapeople.org/~ndim/git-rpm.git diff --git a/GNUmakefile b/GNUmakefile new file mode 120000 index 0000000..9acf7e6 --- /dev/null +++ b/GNUmakefile @@ -0,0 +1 @@ +git-rpm/GNUmakefile
\ No newline at end of file diff --git a/git-rpm b/git-rpm new file mode 160000 +Subproject 90dbc1b65548a1693c091df6c23ca0f06d2b38c diff --git a/libgaiagraphics.spec b/libgaiagraphics.spec new file mode 100644 index 0000000..3974f94 --- /dev/null +++ b/libgaiagraphics.spec @@ -0,0 +1,85 @@ +Name: libgaiagraphics +Version: 0.4 +Release: 1%{?dist} +Summary: Graphics canvas for GIS rendering + +Group: System Environment/Libraries +License: GPLv3+ +URL: http://www.gaia-gis.it/spatialite-2.4.0-4 +Source0: http://www.gaia-gis.it/spatialite-2.4.0-4/libgaiagraphics-0.4.tar.gz +Patch0: libgaiagraphics_libgeotiff.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: libgeotiff-devel +BuildRequires: libjpeg-devel libpng-devel +BuildRequires: zlib-devel +BuildRequires: proj-devel +BuildRequires: cairo-devel +BuildRequires: autoconf + +%description +Libgaigraphics wraps raster- and vector graphics, to implement a reasonably +abstract and platform independent graphics canvas for GIS rendering. + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + + +%prep +%setup -q + +#TODO: Warning autoconf + +# Our libgeotiff ships with pkgconfig. configure.ac and Makefile.ini +# are patched, hence the need to run autoconf. +# Since that is not standard, informing upstream is not useful +%patch0 -p1 -b .libgeotiff + +%build +autoconf +%configure --disable-static + +# Remove links to unused libraries +sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool + + +make %{?_smp_mflags} + + +%install +rm -rf %{buildroot} +make install DESTDIR=%{buildroot} + +# Delete libtool archives, because we don't ship them. +find %{buildroot} -name '*.la' -exec rm -f {} ';' + + +%clean +rm -rf %{buildroot} + + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + + +%files +%defattr(-,root,root,-) +%doc AUTHORS COPYING +%{_libdir}/*.so.* + +%files devel +%defattr(-,root,root,-) +%{_includedir}/* +%{_libdir}/*.so +%{_libdir}/pkgconfig/* + +%changelog +* Tue Jan 18 2011 Volker Fröhlich <volker27@gmx.at> - 0.4-1 +- Initial packaging diff --git a/libgaiagraphics_libgeotiff.patch b/libgaiagraphics_libgeotiff.patch new file mode 100644 index 0000000..63737b0 --- /dev/null +++ b/libgaiagraphics_libgeotiff.patch @@ -0,0 +1,52 @@ +--- libgaiagraphics-0.4/configure.ac 2010-11-12 15:08:31.000000000 +0100 ++++ libgaiagraphics-0.4_libgeotiff/configure.ac 2010-12-26 02:02:10.651546399 +0100 +@@ -23,11 +23,11 @@ + AC_CHECK_HEADERS(unistd.h,, [AC_MSG_ERROR([cannot find unistd.h, bailing out])]) + AC_CHECK_HEADERS(jpeglib.h,, [AC_MSG_ERROR([cannot find jpeglib.h, bailing out])]) + AC_CHECK_HEADERS(jerror.h,, [AC_MSG_ERROR([cannot find jerror.h, bailing out])]) +-AC_CHECK_HEADERS(geotiff.h,, [AC_MSG_ERROR([cannot find geotiff.h, bailing out])]) +-AC_CHECK_HEADERS(xtiffio.h,, [AC_MSG_ERROR([cannot find xtiffio.h, bailing out])]) +-AC_CHECK_HEADERS(geo_tiffp.h,, [AC_MSG_ERROR([cannot find geo_tiffp.h, bailing out])]) +-AC_CHECK_HEADERS(geovalues.h,, [AC_MSG_ERROR([cannot find geovalues.h, bailing out])]) +-AC_CHECK_HEADERS(geo_normalize.h,, [AC_MSG_ERROR([cannot find geo_normalize.h, bailing out])]) ++AC_CHECK_HEADERS(libgeotiff/geotiff.h,, [AC_MSG_ERROR([cannot find geotiff.h, bailing out])]) ++AC_CHECK_HEADERS(libgeotiff/xtiffio.h,, [AC_MSG_ERROR([cannot find xtiffio.h, bailing out])]) ++AC_CHECK_HEADERS(libgeotiff/geo_tiffp.h,, [AC_MSG_ERROR([cannot find geo_tiffp.h, bailing out])]) ++AC_CHECK_HEADERS(libgeotiff/geovalues.h,, [AC_MSG_ERROR([cannot find geovalues.h, bailing out])]) ++AC_CHECK_HEADERS(libgeotiff/geo_normalize.h,, [AC_MSG_ERROR([cannot find geo_normalize.h, bailing out])]) + + # Checks for programs. + AC_PROG_CXX +@@ -70,6 +70,10 @@ + AC_SUBST(LIBCAIRO_CFLAGS) + AC_SUBST(LIBCAIRO_LIBS) + ++PKG_CHECK_MODULES([LIBGEOTIFF], [libgeotiff], , AC_MSG_ERROR(['libgeotiff' is required but it doesn't seems to be installed on this system.])) ++AC_SUBST(LIBGEOTIFF_CFLAGS) ++AC_SUBST(LIBGEOTIFF_LIBS) ++ + AC_CONFIG_FILES([Makefile \ + headers/Makefile \ + src/Makefile \ +--- libgaiagraphics-0.4/Makefile.in 2010-11-12 15:12:54.000000000 +0100 ++++ libgaiagraphics-0.4_libgeotiff/Makefile.in 2010-12-26 02:10:30.014563710 +0100 +@@ -121,6 +121,8 @@ + LIBOBJS = @LIBOBJS@ + LIBPNG_CFLAGS = @LIBPNG_CFLAGS@ + LIBPNG_LIBS = @LIBPNG_LIBS@ ++LIBGEOTIFF_CFLAGS = @LIBGEOTIFF_CFLAGS@ ++LIBGEOTIFF_LIBS = @LIBGEOTIFF_LIBS@ + LIBS = @LIBS@ + LIBTOOL = @LIBTOOL@ + LN_S = @LN_S@ +--- libgaiagraphics-0.4/src/Makefile.in 2010-11-12 15:12:54.000000000 +0100 ++++ libgaiagraphics-0.4_nochnichtok/src/Makefile.in 2010-12-26 03:38:53.007688314 +0100 +@@ -195,7 +195,7 @@ + top_builddir = @top_builddir@ + top_srcdir = @top_srcdir@ + AM_CFLAGS = -D_LARGE_FILE=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 \ +- @LIBPNG_CFLAGS@ @LIBCAIRO_CFLAGS@ ++ @LIBPNG_CFLAGS@ @LIBCAIRO_CFLAGS@ @LIBGEOTIFF_CFLAGS@ + + INCLUDES = @CFLAGS@ -I$(top_srcdir)/headers + lib_LTLIBRARIES = libgaiagraphics.la |