[mingw-gtkspell3] Initial import
Sandro Mani
smani at fedoraproject.org
Mon May 20 23:47:42 UTC 2013
commit 02faa696b77dbc9216f1061992be4dcc5a5e5443
Author: Sandro Mani <manisandro at gmail.com>
Date: Tue May 21 01:47:42 2013 +0200
Initial import
.gitignore | 1 +
mingw-gtkspell3.spec | 125 ++++++++++++++++++++++++++++++++++++
mingw-gtkspell3_no-undefined.patch | 56 ++++++++++++++++
sources | 1 +
4 files changed, 183 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..68517b1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/gtkspell3-3.0.2.tar.gz
diff --git a/mingw-gtkspell3.spec b/mingw-gtkspell3.spec
new file mode 100644
index 0000000..1a73d72
--- /dev/null
+++ b/mingw-gtkspell3.spec
@@ -0,0 +1,125 @@
+%{?mingw_package_header}
+
+%global pkgname gtkspell3
+
+Name: mingw-%{pkgname}
+Version: 3.0.2
+Release: 3%{?dist}
+Summary: MinGW Windows GtkSpell3 library
+License: GPLv2+
+Group: Development/Libraries
+BuildArch: noarch
+URL: http://gtkspell.sourceforge.net/
+Source0: http://downloads.sourceforge.net/gtkspell/%{pkgname}-%{version}.tar.gz
+# Add -no-undefined to linker flags
+Patch0: mingw-gtkspell3_no-undefined.patch
+
+# Until new upstream version is release with Patch0
+BuildRequires: autoconf automake libtool
+
+BuildRequires: intltool
+
+BuildRequires: mingw32-filesystem >= 95
+BuildRequires: mingw32-gcc
+BuildRequires: mingw32-enchant
+BuildRequires: mingw32-gettext
+BuildRequires: mingw32-gtk3
+
+BuildRequires: mingw64-filesystem >= 95
+BuildRequires: mingw64-gcc
+BuildRequires: mingw64-enchant
+BuildRequires: mingw64-gettext
+BuildRequires: mingw64-gtk3
+
+
+%description
+MinGW Windows GtkSpell3 library.
+
+
+%package -n mingw32-%{pkgname}
+Summary: MinGW Windows GtkSpell3 library
+
+%description -n mingw32-%{pkgname}
+MinGW Windows GtkSpell3 library.
+
+
+%package -n mingw32-%{pkgname}-static
+Summary: Static version of the MinGW Windows GtkSpell3 library
+Requires: mingw32-%{pkgname} = %{version}-%{release}
+
+%description -n mingw32-%{pkgname}-static
+Static version of the MinGW Windows GtkSpell3 library.
+
+
+%package -n mingw64-%{pkgname}
+Summary: MinGW Windows GtkSpell3 library
+
+%description -n mingw64-%{pkgname}
+MinGW Windows GtkSpell3 library.
+
+
+%package -n mingw64-%{pkgname}-static
+Summary: Static version of the MinGW Windows GtkSpell3 library
+Requires: mingw64-%{pkgname} = %{version}-%{release}
+
+%description -n mingw64-%{pkgname}-static
+Static version of the MinGW Windows GtkSpell3 library.
+
+
+%{?mingw_debug_package}
+
+
+%prep
+%setup -q -n %{pkgname}-%{version}
+%patch0 -p1
+
+
+%build
+# Needed for Patch0
+autoreconf -i
+
+%mingw_configure
+%mingw_make %{?_smp_mflags}
+
+
+%install
+%mingw_make DESTDIR=%{buildroot} install
+
+# Delete *.la files
+find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
+
+
+%mingw_find_lang %{pkgname}
+
+
+%files -n mingw32-%{pkgname} -f mingw32-%{pkgname}.lang
+%doc AUTHORS COPYING README
+%{mingw32_bindir}/libgtkspell3-3-0.dll
+%{mingw32_includedir}/gtkspell-3.0/
+%{mingw32_libdir}/libgtkspell3-3.dll.a
+%{mingw32_libdir}/pkgconfig/gtkspell3-3.0.pc
+
+%files -n mingw32-%{pkgname}-static
+%{mingw32_libdir}/libgtkspell3-3.a
+
+%files -n mingw64-%{pkgname} -f mingw64-%{pkgname}.lang
+%doc AUTHORS COPYING README
+%{mingw64_bindir}/libgtkspell3-3-0.dll
+%{mingw64_includedir}/gtkspell-3.0/
+%{mingw64_libdir}/libgtkspell3-3.dll.a
+%{mingw64_libdir}/pkgconfig/gtkspell3-3.0.pc
+
+%files -n mingw64-%{pkgname}-static
+%{mingw64_libdir}/libgtkspell3-3.a
+
+
+%changelog
+* Tue May 21 2013 Sandro Mani <manisandro at gmail.com> - 3.0.2-3
+- Fix source url
+
+* Sun May 19 2013 Sandro Mani <manisandro at gmail.com> - 3.0.2-2
+- Remove mingw_build_win32/64 macros
+- Properly version mingw32-filesystem BuildRequires
+
+* Wed May 08 2013 Sandro Mani <manisandro at gmail.com> - 3.0.2-1
+- Initial package
diff --git a/mingw-gtkspell3_no-undefined.patch b/mingw-gtkspell3_no-undefined.patch
new file mode 100644
index 0000000..48fd8df
--- /dev/null
+++ b/mingw-gtkspell3_no-undefined.patch
@@ -0,0 +1,56 @@
+diff -r 02f08e6f218d configure.ac
+--- a/configure.ac Tue Apr 02 20:58:11 2013 +0200
++++ b/configure.ac Sat May 04 01:12:11 2013 +0200
+@@ -90,6 +90,20 @@
+ AM_CONDITIONAL([ENABLE_GTK_DOC], false)
+ ])
+
++dnl ****************************** Detect Win32 *******************************
++AC_MSG_CHECKING([for some Win32 platform])
++case "$host" in
++ *-*-mingw*|*-*-cygwin*)
++ platform_win32=yes
++ ;;
++ *)
++ platform_win32=no
++ ;;
++esac
++AC_MSG_RESULT([$platform_win32])
++AM_CONDITIONAL(PLATFORM_WIN32, test "$platform_win32" = "yes")
++
++
+ AC_SUBST(GTK_SPELL_VERSION_MINOR)
+ AC_SUBST(GTK_SPELL_VERSION_MICRO)
+ AC_SUBST(SPEC_ENABLE_GTK_DOC)
+diff -r 02f08e6f218d gtkspell/Makefile.am
+--- a/gtkspell/Makefile.am Tue Apr 02 20:58:11 2013 +0200
++++ b/gtkspell/Makefile.am Sat May 04 01:12:11 2013 +0200
+@@ -4,6 +4,10 @@
+ pkgconfigdir = $(libdir)/pkgconfig
+ pkgconfig_DATA =
+
++if PLATFORM_WIN32
++no_undefined = -no-undefined
++endif
++
+ if ENABLE_GTK3
+ lib_LTLIBRARIES += libgtkspell3-3.la
+ libgtkspell3_3_la_CPPFLAGS = -DPACKAGE_LOCALE_DIR=\""$(localedir)"\" @GTK_SPELL3_CFLAGS@
+@@ -12,7 +16,7 @@
+
+ libgtkspell3_3_la_SOURCES = gtkspell.c gtkspell.h
+ libgtkspell3_3_la_LIBADD = @GTK_SPELL3_LIBS@
+-libgtkspell3_3_la_LDFLAGS = -version-info $(GTK_SPELL_SO_VERSION)
++libgtkspell3_3_la_LDFLAGS = -version-info $(GTK_SPELL_SO_VERSION) $(no_undefined)
+
+ pkgconfig_DATA += gtkspell3-3.0.pc
+ endif
+@@ -25,7 +29,7 @@
+
+ libgtkspell3_2_la_SOURCES = gtkspell.c gtkspell.h
+ libgtkspell3_2_la_LIBADD = @GTK_SPELL2_LIBS@
+-libgtkspell3_2_la_LDFLAGS = -version-info $(GTK_SPELL_SO_VERSION)
++libgtkspell3_2_la_LDFLAGS = -version-info $(GTK_SPELL_SO_VERSION) $(no_undefined)
+
+ pkgconfig_DATA += gtkspell3-2.0.pc
+ endif
diff --git a/sources b/sources
index e69de29..4350248 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+5db501ead123ffbe8aad7d5f76c44c71 gtkspell3-3.0.2.tar.gz
More information about the scm-commits
mailing list