diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a605ce9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +webkit-sharp-0.3.tar.bz2 +/webkit-sharp-0.3.tar.bz2 diff --git a/dead.package b/dead.package deleted file mode 100644 index 5204a84..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -Orphaned for 6+ weeks diff --git a/sources b/sources new file mode 100644 index 0000000..9742e50 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +21482f9d5eafb0ef4acc6e790482f934 webkit-sharp-0.3.tar.bz2 diff --git a/webkit-sharp-0.3-dllmap.patch b/webkit-sharp-0.3-dllmap.patch new file mode 100644 index 0000000..7ff5dde --- /dev/null +++ b/webkit-sharp-0.3-dllmap.patch @@ -0,0 +1,8 @@ +diff -up webkit-sharp-0.3/sources/webkit-sharp.dll.config.in.version webkit-sharp-0.3/sources/webkit-sharp.dll.config.in +--- webkit-sharp-0.3/sources/webkit-sharp.dll.config.in.version 2010-11-28 10:27:36.000000000 +0100 ++++ webkit-sharp-0.3/sources/webkit-sharp.dll.config.in 2010-11-28 10:27:47.000000000 +0100 +@@ -1,3 +1,3 @@ + +- ++ + diff --git a/webkit-sharp-0.3-libdir.patch b/webkit-sharp-0.3-libdir.patch new file mode 100644 index 0000000..0433c37 --- /dev/null +++ b/webkit-sharp-0.3-libdir.patch @@ -0,0 +1,48 @@ +# SourceFucker.pl: Fix hardcoded references to libdir +diff -uraN webkit-sharp-0.3.orig/configure webkit-sharp-0.3/configure +--- webkit-sharp-0.3.orig/configure 2009-10-21 21:54:34.000000000 +0200 ++++ webkit-sharp-0.3/configure 2009-12-17 14:45:29.025582798 +0100 +@@ -3266,7 +3266,7 @@ + { (exit 1); exit 1; }; } + fi + +-GACUTIL_FLAGS="/package $ASSEMBLY_NAME /root "'$(DESTDIR)$(prefix)/lib' ++GACUTIL_FLAGS="/package $ASSEMBLY_NAME /root "'$(DESTDIR)$(libdir)' + + + +diff -uraN webkit-sharp-0.3.orig/configure.ac webkit-sharp-0.3/configure.ac +--- webkit-sharp-0.3.orig/configure.ac 2009-10-21 21:54:23.000000000 +0200 ++++ webkit-sharp-0.3/configure.ac 2009-12-17 14:45:28.830582747 +0100 +@@ -76,7 +76,7 @@ + AC_MSG_ERROR([No gacutil tool found]) + fi + +-GACUTIL_FLAGS="/package $ASSEMBLY_NAME /root "'$(DESTDIR)$(prefix)/lib' ++GACUTIL_FLAGS="/package $ASSEMBLY_NAME /root "'$(DESTDIR)$(libdir)' + + AC_SUBST(RUNTIME) + AC_SUBST(CSC) +diff -uraN webkit-sharp-0.3.orig/doc/Makefile.am webkit-sharp-0.3/doc/Makefile.am +--- webkit-sharp-0.3.orig/doc/Makefile.am 2009-10-21 21:54:23.000000000 +0200 ++++ webkit-sharp-0.3/doc/Makefile.am 2009-12-17 14:45:28.796583031 +0100 +@@ -1,6 +1,6 @@ + if ENABLE_MONODOC + TARGETS = $(ASSEMBLY_NAME)-docs.source $(ASSEMBLY_NAME)-docs.zip $(ASSEMBLY_NAME)-docs.tree +-docsdir = $(prefix)/lib/monodoc/sources ++docsdir = $(libdir)/monodoc/sources + docs_DATA = $(TARGETS) + else + TARGETS = +diff -uraN webkit-sharp-0.3.orig/doc/Makefile.in webkit-sharp-0.3/doc/Makefile.in +--- webkit-sharp-0.3.orig/doc/Makefile.in 2009-10-21 21:54:35.000000000 +0200 ++++ webkit-sharp-0.3/doc/Makefile.in 2009-12-17 14:45:28.795583126 +0100 +@@ -186,7 +186,7 @@ + @ENABLE_MONODOC_FALSE@TARGETS = + @ENABLE_MONODOC_TRUE@TARGETS = $(ASSEMBLY_NAME)-docs.source $(ASSEMBLY_NAME)-docs.zip $(ASSEMBLY_NAME)-docs.tree + @ENABLE_MONODOC_FALSE@docsdir = $(datadir) +-@ENABLE_MONODOC_TRUE@docsdir = $(prefix)/lib/monodoc/sources ++@ENABLE_MONODOC_TRUE@docsdir = $(libdir)/monodoc/sources + @ENABLE_MONODOC_FALSE@docs_DATA = + @ENABLE_MONODOC_TRUE@docs_DATA = $(TARGETS) + ASSEMBLIES = ../sources/$(ASSEMBLY_NAME).dll diff --git a/webkit-sharp.spec b/webkit-sharp.spec new file mode 100644 index 0000000..86329b2 --- /dev/null +++ b/webkit-sharp.spec @@ -0,0 +1,101 @@ +%define debug_package %{nil} + +Name: webkit-sharp +Version: 0.3 +Release: 7%{?dist} +Summary: .NET bindings for WebKit +Group: Development/Languages +License: MIT +URL: http://ftp.novell.com/pub/mono/sources/webkit-sharp/ +Source0: http://ftp.novell.com/pub/mono/sources/webkit-sharp/%{name}-%{version}.tar.bz2 +Patch0: webkit-sharp-0.3-libdir.patch +# https://bugzilla.redhat.com/show_bug.cgi?id=658502 +Patch1: webkit-sharp-0.3-dllmap.patch +Requires: webkitgtk +BuildRequires: webkitgtk-devel +BuildRequires: mono-devel +BuildRequires: gtk-sharp2-devel +BuildRequires: gtk-sharp2-gapi +BuildRequires: monodoc-devel + +ExclusiveArch: %ix86 x86_64 ppc ppc64 ia64 %{arm} sparcv9 alpha s390x + +%description +WebKit-sharp is .NET bindings for the WebKit rendering engine. + +%package devel +Summary: Development files for WebKit-sharp +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: pkgconfig + +%description devel +Development files for WebKit-sharp + +%prep +%setup -q + +# patch for libdir madness +%patch0 -p1 -b .libdir +# update for new webkit library name +%patch1 -p1 -b .dllmap + +%build +%configure +# parallel build fails in mock +make + +%install +make DESTDIR=%{buildroot} install + +%files +%defattr(-,root,root,-) +%doc COPYING README +%{_libdir}/mono/ + +%files devel +%defattr(-,root,root,-) +%{_libdir}/pkgconfig/webkit-sharp-1.0.pc +%{_libdir}/monodoc/sources/webkit-sharp* + +%changelog +* Fri Jun 03 2011 Paul Whalen - 0.3-7 +- Added arm macro to ExclusiveArch + +* Mon Mar 28 2011 Christian Krause - 0.3-6 +- Rebuilt against mono 2.10 +- Minor spec file cleanup + +* Mon Feb 07 2011 Fedora Release Engineering - 0.3-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Sat Nov 27 2010 Dan HorĂ¡k - 0.3-4 +- update dll mapping for new webkitgtk (#658502) +- sync ExclusiveArch list with mono + +* Sun Oct 31 2010 Christian Krause - 0.3-3 +- Rebuild again to create correct requires/provides capabilities + +* Sat Oct 09 2010 Paul F. Johnson 0.3-2 +- Rebuild for mono-2.8 + +* Thu Dec 17 2009 Paul Lange - 0.3-1 +- Update to version 0.3 + +* Mon Oct 26 2009 Dennis Gilmore - 0.2-6 +- build for sparcv9 s390 s390x + +* Mon Jul 27 2009 Fedora Release Engineering - 0.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Sun Jun 21 2009 Paul Lange - 0.2-4 +- Fix supported archs + +* Sun Jun 14 2009 Paul Lange - 0.2-3 +- Fix wrong webkitgtk link and missing dependency (#500654) + +* Mon May 25 2009 Xavier Lamien - 0.2-2 +- Build arch ppc64. + +* Sat Feb 21 2009 David Nielsen - 0.2-1 +- Initial package