# rpm does not currently pull debuginfo out of mono packages %global debug_package %{nil} Summary: MonoDevelop Database Add-in Name: monodevelop-database Version: 5.7 Release: 5%{?dist} License: MIT Group: Development/Tools Source: http://download.mono-project.com/sources/%{name}/%{name}-%{version}.0.660.tar.bz2 Patch0: monodevelop-database-version.patch # https://github.com/mono/monodevelop/pull/896 Patch1: monodevelop-database-fix-SqlQueryView.patch Patch2: monodevelop-database-unbundle-mysql-data.patch URL: http://www.monodevelop.com BuildRequires: mono-devel >= 3.0.4 BuildRequires: monodevelop-devel >= 5.0 BuildRequires: mono-addins-devel >= 1.0 BuildRequires: intltool BuildRequires: gtk-sharp2-devel BuildRequires: mono-data-sqlite BuildRequires: mysql-connector-net-devel BuildRequires: npgsql-devel Requires: monodevelop >= 5.0 ExclusiveArch: %{mono_arches} #Package Devel %description Database Add-in for MonoDevelop. %package devel Summary: Development files for MonoDevelop Database Add-in Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: pkgconfig %description devel Database Add-in for MonoDevelop. Development package. Contains development files for %{name}. %prep %setup -q sed -i "s#dmcs#mcs#g" configure sed -i "s#dmcs#mcs#g" configure.in sed -i "s#Version=2#Version=4#g" configure sed -i "s#Version 2#Version 4#g" configure sed -i "s#Version=2#Version=4#g" configure.in sed -i "s#Version 2#Version 4#g" configure.in #sed -i "s#Npgsql, Version=4#Npgsql#g" configure #sed -i "s#Npgsql, Version 4#Npgsql#g" configure #sed -i "s#Npgsql, Version=4#Npgsql#g" configure.in #sed -i "s#Npgsql, Version 4#Npgsql#g" configure.in # Delete shipped *.dll files #find -name '*.dll' -exec rm -f {} \; %patch0 -p1 %patch1 -p1 #Temporary fix for connetion to SqlServer using connection string becouse #String build fail in mono 4 see https://bugzilla.xamarin.com/show_bug.cgi?id=29823 sed -i "s#builder.ToString ()#settings.UseConnectionString ? settings.ConnectionString : builder.ToString ()#g" MonoDevelop.Database.Sql.SqlServer/SqlServerConnectionProvider.cs # Unbundle MySql.Data.dll ln -sf %{_prefix}/lib/mono/mysql-connector-net/MySql.Data.dll contrib/MySql/MySql.Data.dll #%patch2 -p1 %build %configure make %install #rm %{buildroot}%{_prefix}/lib/monodevelop/AddIns/MonoDevelop.Database/MySql.Data.dll %make_install find %{buildroot} -type f -o -type l|sed ' s:'"%{buildroot}"':: s:\(.*/lib/monodevelop/AddIns/MonoDevelop.Database/locale/\)\([^/_]\+\)\(.*\.mo$\):%lang(\2) \1\2\3: s:^\([^%].*\):: s:%lang(C) :: /^$/d' > %{name}.lang %files -f %{name}.lang %{_prefix}/lib/monodevelop/AddIns/MonoDevelop.Database %files devel %{_prefix}/lib/pkgconfig/monodevelop-database.pc %changelog * Thu Apr 23 2015 Claudio Rodrigo Pereyra Diaz - 5.7-5 - Patch for fix bug fix https://bugzilla.xamarin.com/show_bug.cgi?id=29823 * Thu Apr 23 2015 Claudio Rodrigo Pereyra Diaz - 5.7-4 - Fix bug in SqlQueryView. https://github.com/mono/monodevelop/pull/896 * Thu Apr 23 2015 Claudio Rodrigo Pereyra Diaz - 5.7-3 - Replace contrib/MySql.Data.dll with symlink to system dll - Add npgsql-devel as buildrequires * Wed Apr 22 2015 Claudio Rodrigo Pereyra Diaz - 5.7-2 - Build for Mono 4 - Do not ship bundle MySql.Data.dll depend on mysql-connector-net - Do not require deprecate mono-data-postgresql * Fri Jan 16 2015 Claudio Rodrigo Pereyra Diaz - 5.7-1 - Update to 5.7 * Mon Oct 20 2014 Claudio Rodrigo Pereyra Diaz - 5.5-1 - Update to 5.5 * Mon Jun 23 2014 Claudio Rodrigo Pereyra Diaz - 5.0.1-1 - Update to 5.0.1 * Tue Jan 28 2014 Claudio Rodrigo Pereyra Diaz - 4.2.2-1 - Update to 4.2.2 * Thu Nov 21 2013 Claudio Rodrigo Pereyra Diaz - 4.2-1 - Update to 4.2 * Fri Oct 14 2011 - Claudio Rodrigo Pereyra Diaz - 2.8.1-1 - Update upstream version * Fri Jun 18 2010 - Claudio Rodrigo Pereyra Diaz - 2.4 - Update upstream version * Thu Mar 04 2010 Paul F. Johnson 2.2-6 - More spec file clean up - Fix for language file * Sat Feb 20 2010 Paul F. Johnson 2.2-5 - More lang file fixes - Spec file cleanup * Sat Feb 13 2010 Paul F. Johnson 2.2-4 - Remove gettext patch - Use fix from anki package * Tue Feb 02 2010 Paul F. Johnson 2.2-3 - Fix gettext problem * Sun Jan 24 2010 Paul F. Johnson 2.2-2 - Fix URL and licence * Sun Jan 03 2010 Paul F. Johnson 2.2-1 - Initial import - Fix the usual fixed points for installs to make it 64 bit happy - Fix the locale files so they're also in the right place