%define gnomepanel %{nil} %define gnomepanel 0 %if 0%{?rhel}%{?fedora} %if 0%{?rhel} %if 0%{?rhel} <= 6 %define gnomepanel 1 %endif %else %if 0%{?fedora} <= 19 %define gnomepanel 1 %endif %endif %endif %define gnomeprintui %{nil} %define gnomeprintui 0 %if 0%{?rhel}%{?fedora} %if 0%{?rhel} %if 0%{?rhel} <= 7 %define gnomeprintui 1 %endif %else %if 0%{?fedora} <= 23 %define gnomeprintui 1 %endif %endif %else %if 0%{?suse_version} %if 0%{?suse_version} <= 1000 %define gnomeprintui 1 %endif %endif %endif %define doc_license %{nil} %define doc_license 1 %if 0%{?rhel}%{?fedora} %if 0%{?rhel} %if 0%{?rhel} < 7 %define doc_license 0 %endif %else %if 0%{?fedora} < 19 %define doc_license 0 %endif %endif %endif %define license_files COPYING Name: gnome-desktop-sharp Version: 2.26.0 Release: 33%{?dist} Summary: .NET language binding for mono Group: System Environment/Libraries License: LGPLv2 URL: http://www.mono-project.com/GtkSharp Source0: http://ftp.gnome.org/pub/gnome/sources/%{name}/2.26/%{name}-%{version}.tar.bz2 Patch1: %{name}-lib-target.patch BuildRequires: mono-devel, gtk2-devel BuildRequires: librsvg2-devel, vte-devel BuildRequires: libwnck-devel, gtksourceview2-devel BuildRequires: gnome-sharp-devel BuildRequires: gnome-desktop-devel BuildRequires: gtk-sharp2-gapi >= 2.12.0 BuildRequires: gtk-sharp2-devel >= 2.12.0 %if 0%{?gnomepanel} BuildRequires: gnome-panel-devel %endif %if 0%{?gnomeprintui} BuildRequires: libgnomeprintui22-devel %endif %if 0%{?gnomepanel} Requires: gnome-panel %endif %if 0%{?gnomeprintui} Requires: libgnomeprintui22 %endif Provides: gtksourceview2-sharp = 2:%{version}-%{release} Obsoletes: gtksourceview2-sharp < 2:2.20.1-2 # Mono only available on these: ExclusiveArch: %{mono_arches} %description GnomeDesktop is a .NET language binding for assorted GNOME libraries from the desktop release. %package devel Summary: Developing files for gnome-Desktop-sharp Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: pkgconfig Provides: gtksourceview2-sharp-devel = 2:%{version}-%{release} Obsoletes: gtksourceview2-sharp-devel < 2:2.20.1-2 %description devel Package %{name}-devel provides development files for writing %{name} applications. %prep %setup -q %patch1 -p1 -b .target sed -i -e 's!@libdir@!${exec_prefix}/lib/!g' gtksourceview/gtksourceview2-sharp.pc.in # Fix permission chmod 0644 HACKING %build %configure %{__make} %{?_smp_mflags} %install make install DESTDIR="${RPM_BUILD_ROOT}" # Remove libttol archive find "%{buildroot}" -name '*.la' -exec rm -f '{}' ';' find "%{buildroot}" -name '*.a' -exec rm -f '{}' ';' %if 0%{?gnomeprintui} echo "Warning: Keeping obseloted gnome-panel files." %else echo "Warning: Removing obseloted gnome-panel files if they exist." if [[ -e "%{buildroot}%{_prefix}/lib/mono/gac/gnome-panel-sharp" ]]; then rm -rf "%{buildroot}%{_prefix}/lib/mono/gac/gnome-panel-sharp" fi if [[ -e "%{buildroot}%{_prefix}/lib/mono/gnome-panel-sharp-2.24" ]]; then rm -rf "%{buildroot}%{_prefix}/lib/mono/gnome-panel-sharp-2.24" fi if [[ -e "%{buildroot}%{_datadir}/gnome-panel-sharp" ]]; then rm -rf "%{buildroot}%{_datadir}/gnome-panel-sharp" fi %endif %if 0%{?gnomeprintui} echo "Warning: Keeping obseloted gnomeprintui files." %else echo "Warning: Removing obseloted gnomeprintui files if they exist." if [[ -e "%{buildroot}%{_prefix}/lib/mono/gac/gnome-print-sharp" ]]; then rm -rf "%{buildroot}%{_prefix}/lib/mono/gac/gnome-print-sharp" fi if [[ -e "%{buildroot}%{_prefix}/lib/mono/gnome-print-sharp-2.18" ]]; then rm -rf "%{buildroot}%{_prefix}/lib/mono/gnome-print-sharp-2.18" fi if [[ -e "%{buildroot}%{_datadir}/gnome-print-sharp" ]]; then rm -rf "%{buildroot}%{_datadir}/gnome-print-sharp" fi %endif %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %if 0%{?doc_license} %license %{license_files} %else %doc %{license_files} %endif %doc ChangeLog AUTHORS README %{_libdir}/*.so %{_prefix}/lib/mono/gac/gnomedesktop-sharp %if 0%{?gnomepanel} %{_prefix}/lib/mono/gac/gnome-panel-sharp %endif %if 0%{?gnomeprintui} %{_prefix}/lib/mono/gac/gnome-print-sharp %endif %{_prefix}/lib/mono/gac/gtksourceview2-sharp %{_prefix}/lib/mono/gac/rsvg2-sharp %{_prefix}/lib/mono/gac/vte-sharp %{_prefix}/lib/mono/gac/wnck-sharp %{_prefix}/lib/mono/gnomedesktop-sharp-2.20 %if 0%{?gnomepanel} %{_prefix}/lib/mono/gnome-panel-sharp-2.24 %endif %if 0%{?gnomeprintui} %{_prefix}/lib/mono/gnome-print-sharp-2.18 %endif %{_prefix}/lib/mono/gtksourceview2-sharp-2.0 %{_prefix}/lib/mono/rsvg2-sharp-2.0 %{_prefix}/lib/mono/vte-sharp-0.16 %{_prefix}/lib/mono/wnck-sharp-2.20 %{_datadir}/gnomedesktop-sharp %if 0%{?gnomepanel} %{_datadir}/gnome-panel-sharp %endif %if 0%{?gnomeprintui} %{_datadir}/gnome-print-sharp %endif %{_datadir}/gtksourceview2-sharp %{_datadir}/rsvg2-sharp %{_datadir}/vte-sharp %{_datadir}/wnck-sharp %files devel %doc HACKING %{_libdir}/pkgconfig/*.pc %changelog * Tue Nov 07 2017 Tomasz Tomasik - 2.26.0-33 - Small SPEC file cleanups - Use license macro - Update requirements - Fix problem with gnomeprintui - Add support for EL7 - Rebuilt for EL7 * Wed Aug 02 2017 Fedora Release Engineering - 2.26.0-32 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 2.26.0-31 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 2.26.0-30 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Oct 13 2016 Fedora Release Engineering - 2.26.0-29 - mono rebuild for aarch64 support * Wed Feb 03 2016 Fedora Release Engineering - 2.26.0-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Sat Oct 24 2015 Peter Robinson 2.26.0-27 - Drop gnomeprintui * Wed Jun 17 2015 Fedora Release Engineering - 2.26.0-26 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon May 18 2015 Peter Robinson 2.26.0-25 - Rebuild (mono4) * Tue Mar 24 2015 Than Ngo - 2.26.0-24 - use %%mono_arches * Sat Aug 16 2014 Fedora Release Engineering - 2.26.0-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 2.26.0-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat May 24 2014 Brent Baude - 2.26.0-21 - Fix type in macro * Sat May 24 2014 Brent Baude - 2.26.0-20 - Change ppc64 to power64 macro * Sat Aug 03 2013 Fedora Release Engineering - 2.26.0-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Feb 13 2013 Fedora Release Engineering - 2.26.0-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Thu Jul 19 2012 Fedora Release Engineering - 2.26.0-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Jan 13 2012 Fedora Release Engineering - 2.26.0-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Dec 06 2011 Adam Jackson - 2.26.0-15 - Rebuild for new libpng * Sun Oct 23 2011 Christian Krause - 2.26.0-14 - Change paths for mono assemblies according to updated packaging guidelines (http://fedoraproject.org/wiki/Packaging:Mono) * Thu Feb 10 2011 Christian Krause - 2.26.0-13 - Disable gnome-panel bindings * Tue Feb 08 2011 Fedora Release Engineering - 2.26.0-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Tue Dec 21 2010 Dan HorĂ¡k - 2.26.0-11 - updated the supported arch list * Mon Dec 20 2010 Christian Krause - 2.26.0-10 - Rebuilt in rawhide (FTBFS BZ 660867) - Disable gtkhtml3 support as directed in BZ 660867, comment #9 * Sun Oct 31 2010 Christian Krause - 2.26.0-9 - Rebuild again to create correct requires/provides capabilities * Sat Oct 09 2010 Paul F. Johnson 2.26.0-8 - Rebuild * Thu Jun 10 2010 Christian Krause - 2.26.0-7 - Rebuilt in rawhide (FTBFS BZ 600015) * Thu Feb 11 2010 Xavier Lamien - 2.26.0-6 - Fix libgnome-desktop target soname (BZ 563361) * Mon Oct 26 2009 Dennis Gilmore - 2.26.0-5 - Exclude sparc64 * Fri Jul 24 2009 Fedora Release Engineering - 2.26.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Wed Jun 17 2009 Paul F. Johnson - 2.26.0-3 - Add support for ppc64 * Wed Apr 22 2009 Denis Leroy - 2.26.0-2 - Rebuilt without nautilus-cd-burner (obsoleted) * Mon Apr 06 2009 Xavier Lamien - 2.26.0-1 - Update release. * Tue Feb 24 2009 Fedora Release Engineering - 2.24.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Mon Oct 27 2008 Tom "spot" Callaway - 2.24.0-3 - and BR: libgnomeprintui22-devel * Mon Oct 27 2008 Tom "spot" Callaway - 2.24.0-2 - add gnome-sharp-devel as BuildRequires * Thu Oct 16 2008 Dan Winship - 2.24.0-1 - Update to 2.24.0 * Sat Jul 05 2008 Xavier Lamien - 2.20.1-2 - Obsolete standalone package gtksourceview2-sharp. * Sat Jul 05 2008 Xavier Lamien - 2.20.1-1 - Initial RPM Release.