diff --git a/.agg.metadata b/.agg.metadata new file mode 100644 index 0000000..7b5a12d --- /dev/null +++ b/.agg.metadata @@ -0,0 +1 @@ +ce2a4981ff50c00bbfc86799c99de59b33946ea2 SOURCES/agg-free-2.5.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 0e7897f..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 - -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/agg-2.4-depends.patch b/SOURCES/agg-2.4-depends.patch new file mode 100644 index 0000000..9d4f6e3 --- /dev/null +++ b/SOURCES/agg-2.4-depends.patch @@ -0,0 +1,48 @@ +--- agg-2.4.orig/font_freetype/Makefile.am 2005-10-18 11:45:40.000000000 +0100 ++++ agg-2.4/font_freetype/Makefile.am 2006-07-10 15:11:55.000000000 +0100 +@@ -4,8 +4,9 @@ + agginclude_HEADERS = agg_font_freetype.h + lib_LTLIBRARIES = libaggfontfreetype.la + +-libaggfontfreetype_la_LDFLAGS = -version-info @AGG_LIB_VERSION@ @FREETYPE_LIBS@ ++libaggfontfreetype_la_LDFLAGS = -version-info @AGG_LIB_VERSION@ + libaggfontfreetype_la_SOURCES = agg_font_freetype.cpp + libaggfontfreetype_la_CXXFLAGS = -I$(top_srcdir)/include @FREETYPE_CFLAGS@ ++libaggfontfreetype_la_LIBADD = ../src/libagg.la @FREETYPE_LIBS@ + endif + +--- agg-2.4.orig/src/platform/sdl/Makefile.am 2005-10-17 23:49:35.000000000 +0100 ++++ agg-2.4/src/platform/sdl/Makefile.am 2006-07-10 15:11:55.000000000 +0100 +@@ -5,6 +5,6 @@ + libaggplatformsdl_la_LDFLAGS = -version-info @AGG_LIB_VERSION@ + libaggplatformsdl_la_SOURCES = agg_platform_support.cpp + libaggplatformsdl_la_CXXFLAGS = -I$(top_srcdir)/include @SDL_CFLAGS@ +-libaggplatformsdl_la_LIBADD = @SDL_LIBS@ ++libaggplatformsdl_la_LIBADD = ../../libagg.la @SDL_LIBS@ + endif + +--- agg-2.5.orig/configure.in 2006-10-09 05:06:36.000000000 +0100 ++++ agg-2.5/configure.in 2007-01-07 14:07:39.000000000 +0000 +@@ -122,7 +122,8 @@ + fi + AM_CONDITIONAL(ENABLE_X11,[test x$no_x = x -a xno != x$enable_platform -a x$win32_host != xyes]) + AC_SUBST(x_includes) +-AC_SUBST(x_libraries) ++test -n "$x_libraries" && X_LDFLAGS="-L$x_libraries" ++AC_SUBST(X_LDFLAGS) + dnl ############################################### + + dnl Settung up library version +--- agg-2.5.orig/src/platform/X11/Makefile.am 2006-12-11 00:59:45.000000000 +0000 ++++ agg-2.5/src/platform/X11/Makefile.am 2007-01-07 14:07:39.000000000 +0000 +@@ -1,8 +1,8 @@ + if ENABLE_X11 + lib_LTLIBRARIES = libaggplatformX11.la + +-libaggplatformX11_la_LDFLAGS = -version-info @AGG_LIB_VERSION@ -L@x_libraries@ ++libaggplatformX11_la_LDFLAGS = -version-info @AGG_LIB_VERSION@ @X_LDFLAGS@ + libaggplatformX11_la_SOURCES = agg_platform_support.cpp + libaggplatformX11_la_CXXFLAGS = -I$(top_srcdir)/include -I@x_includes@ +-libaggplatformX11_la_LIBADD = -lX11 ++libaggplatformX11_la_LIBADD = ../../libagg.la -lX11 + endif diff --git a/SOURCES/agg-2.5-autotools.patch b/SOURCES/agg-2.5-autotools.patch new file mode 100644 index 0000000..b273477 --- /dev/null +++ b/SOURCES/agg-2.5-autotools.patch @@ -0,0 +1,11 @@ +--- configure.in~ 2013-02-22 09:30:00.000000000 -0600 ++++ configure.in 2013-02-22 09:30:49.030777571 -0600 +@@ -8,7 +8,7 @@ + AC_PROG_CC + AC_PROG_CXX + AC_ISC_POSIX +-AM_C_PROTOTYPES ++#AM_C_PROTOTYPES + if test "x$U" != "x"; then + AC_MSG_ERROR(Compiler not ANSI compliant) + fi diff --git a/SOURCES/agg-2.5-pkgconfig.patch b/SOURCES/agg-2.5-pkgconfig.patch new file mode 100644 index 0000000..a303bfb --- /dev/null +++ b/SOURCES/agg-2.5-pkgconfig.patch @@ -0,0 +1,10 @@ +--- agg-2.5/libagg.pc.in.orig 2007-01-07 13:58:28.000000000 +0000 ++++ agg-2.5/libagg.pc.in 2007-01-07 14:02:40.000000000 +0000 +@@ -6,5 +6,6 @@ + Name: libagg + Description: Anti Grain Geometry - A High Quality Rendering Engine for C++ + Version: @VERSION@ +-Libs: -L${libdir} -Wl,-rpath,${exec_prefix}/lib -lagg ++Requires.private: freetype2 ++Libs: -L${libdir} -lagg + Cflags: -I${includedir} diff --git a/SOURCES/agg-generate-tarball.sh b/SOURCES/agg-generate-tarball.sh new file mode 100644 index 0000000..c6f2ebd --- /dev/null +++ b/SOURCES/agg-generate-tarball.sh @@ -0,0 +1,19 @@ +#! /bin/sh + +version=$1 + +[ -z $version ] && exit 1 + +dir=agg-${version} +file=agg-${version}.tar.gz +result=agg-free-${version}.tar.gz + +rm -rf agg-${version} +tar xzf $file +for file in copying.txt VERSIONS.TXT gpc.c gpc.h; do + rm agg-${version}/gpc/$file +done +rm agg-${version}/include/agg_conv_gpc.h +sed -i -e 's/agg_conv_gpc\.h/ /g' agg-${version}/include/Makefile.am +rm -f $result +tar czf $result $dir diff --git a/SPECS/agg.spec b/SPECS/agg.spec new file mode 100644 index 0000000..5ad1337 --- /dev/null +++ b/SPECS/agg.spec @@ -0,0 +1,167 @@ +Summary: Anti-Grain Geometry graphical rendering engine +Name: agg +Version: 2.5 +Release: 16%{?dist} +Group: System Environment/Libraries +URL: http://www.antigrain.com +License: GPLv2+ +#Source0: http://www.antigrain.com/%{name}-%{version}.tar.gz +Source0: %{name}-free-%{version}.tar.gz +# agg contains gpc.c, 'free for non-commercial use', we cannot ship. +# We use this script to remove the non-free code before shipping it. +# Download the upstream tarball and invoke this script while in the +# tarball's directory: +# sh agg-generate-tarball.sh 2.5 +Source1: agg-generate-tarball.sh + +Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root +BuildRequires: automake, libtool, libX11-devel, freetype-devel, SDL-devel + +Patch0: agg-2.4-depends.patch +Patch1: agg-2.5-pkgconfig.patch +Patch2: agg-2.5-autotools.patch + +%description +A High Quality Rendering Engine for C++. + +%package devel +Summary: Support files necessary to compile applications with agg +Group: Development/Libraries +Requires: agg = %{version}-%{release}, freetype-devel +# for _datadir/automake ownership +Requires: automake + +%description devel +Libraries, headers, and support files necessary to compile applications +using agg. + +%prep +%setup -q +%patch0 -p1 -b .depends +%patch1 -p1 -b .pkgconfig +%patch2 -p0 -b .autotools +aclocal +autoheader +autoconf +libtoolize --force +automake --foreign --add-missing --ignore-deps + +%build +%configure --disable-static --disable-gpc +# parallel build fails in examples/ because the .la is in _LDFLAGS instead of +# _LIBADD +make #%%{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make DESTDIR=$RPM_BUILD_ROOT install INSTALL='install -p' +rm $RPM_BUILD_ROOT/%{_libdir}/*.la + +rm -rf __dist_examples __clean_examples +cp -a examples __clean_examples +make -C __clean_examples distclean +rm -rf __clean_examples/Makefile.am __clean_examples/{win32*,macosx*,BeOS} +mkdir __dist_examples +mv __clean_examples __dist_examples/examples + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root,-) +%doc authors copying readme news +%{_libdir}/lib*.so.* + +%files devel +%defattr(-,root,root,-) +%doc __dist_examples/examples +%{_libdir}/*.so +%{_libdir}/pkgconfig/libagg.pc +%{_includedir}/agg2/ +%{_datadir}/aclocal/libagg.m4 + +%clean +rm -rf $RPM_BUILD_ROOT + +%changelog +* Fri Feb 22 2013 Jon Ciesla - 2.5-16 +- Fix FTBFS, BZ 913873. + +* Wed Feb 13 2013 Fedora Release Engineering - 2.5-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Fri Jul 27 2012 Fedora Release Engineering - 2.5-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Thu Jan 12 2012 Fedora Release Engineering - 2.5-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Wed Oct 26 2011 Fedora Release Engineering - 2.5-12 +- Rebuilt for glibc bug#747377 + +* Wed Oct 26 2011 Fedora Release Engineering - 2.5-11 +- Rebuilt for glibc bug#747377 + +* Mon Feb 07 2011 Fedora Release Engineering - 2.5-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Fri Jan 29 2010 Kevin Kofler - 2.5-9 +- also remove include/agg_conv_gpc.h as it also carries a copy of the non-Free + GPC license (upstream also recommends removing that file under + http://www.antigrain.com/license/index.html#toc0005) (#559611) + +* Fri Jul 24 2009 Fedora Release Engineering - 2.5-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Mon Feb 23 2009 Fedora Release Engineering - 2.5-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Tue Feb 5 2008 Patrice Dumas - 2.5-6 +- remove non free files +- minor cleanups +- parallel build fails + +* Fri Aug 03 2007 Caolan McNamara - 2.5-4 +- clarify license +- source upstream silently changed even though version remained + unchanged + +* Tue Jun 26 2007 Caolan McNamara - 2.5-3 +- Resolves: rhbz#245650 -devel Require: freetype-devel + +* Mon Apr 23 2007 Caolan McNamara - 2.5-2 +- Resolves: rhbz#237493 misapplied patch + +* Sat Jan 06 2007 Caolan McNamara - 2.5-1 +- bump to 2.5 + +* Fri Nov 10 2006 Caolan McNamara - 2.4-3 +- Resolves: rhbz#214970 rebuild with new 2.4 sources + +* Wed Jul 12 2006 Jesse Keating - 2.4-2.1 +- rebuild + +* Mon Jul 10 2006 Caolan McNamara - 2.4-2 +- rh#198174# add extra links from libs to their runtime requirements + +* Wed May 10 2006 Caolan McNamara - 2.4-1 +- next version + +* Fri Feb 17 2006 Karsten Hopp 2.3-4 +- add BuildRequires freetype-devel for ft2build.h + +* Mon Feb 13 2006 Caolan McNamara - 2.3-3 +- BuildRequires + +* Fri Feb 10 2006 Jesse Keating - 2.3-2.1 +- bump again for double-long bug on ppc(64) + +* Wed Feb 08 2006 Caolan McNamara - 2.3-2 +- rh#180341# BuildRequires + +* Tue Feb 07 2006 Jesse Keating - 2.3-1.1 +- rebuilt for new gcc4.1 snapshot and glibc changes + +* Wed Nov 23 2005 Caolan McNamara 2.3-1 +- initial import