# debug info seem not works with D compiler %global debug_package %{nil} %global gtkd_major 0 %global gtkd_minor 2 %global gtkd_bump 1 Name: gtkd Version: 3.2.1 Release: 57%{?dist} Summary: D binding and OO wrapper of GTK+ License: LGPLv3+ with exceptions URL: https://github.com/gtkd-developers/GtkD/ Source0: https://github.com/gtkd-developers/GtkD/archive/v%{version}.tar.gz BuildRequires: ldc, ldc-phobos-devel, ldc-druntime-devel, gtk3-devel, libcurl-devel # Explicit require since gtkd use dlopen internally so rpm can't detect this. Requires: atk, gtk3, gdk-pixbuf2, pango, cairo, gdk-pixbuf2, glade3-libgladeui, libcurl #Requires: gtkglext3-devel --> should te be packaged https://github.com/tdz/gtkglext Requires: vt291 Requires: mesa-libGL, mesa-libGLU, gtksourceview3 Requires: gstreamer1, gstreamer1-plugins-base, xz # https://github.com/ldc-developers/ldc/issues/613 ExcludeArch: %{arm} %description GTK+ is a highly usable, feature rich toolkit for creating graphical user interfaces which boasts cross platform compatibility and an easy to use API. %description -l fr GTK+ est très utilisable, cet outil contient de nombreuses fonctionnalités permettant de créer des interfaces graphiques multi-plateforme. De plus, gtkd fournit une API facile à utiliser. %package devel Summary: Support for developing gtkd application Group: Development/Tools Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The gtkd-devel package contains header files for developing gtkd applications. %description devel -l fr Le paquet gtkd-devel contient les fichiers d'entêtes pour développer des applications utilisant gtkd. %package geany-tags Summary: Support for enable autocompletion in geany Requires: %{name} = %{version}-%{release} BuildArch: noarch BuildRequires: geany Requires: geany %description geany-tags Enable autocompletion for gtkd library in geany (IDE) %description -l fr geany-tags Active l'autocompletion pour pour la bibliothèque gtkd dans geany (IDE) %prep %setup -q -n GtkD-%{version} # temp geany config directory for allow geany to generate tags mkdir geany_config # sed -i 's/GTKD_VERSION=2.4.1/GTKD_VERSION=2.4.2/g' GNUmakefile %build make %{?_smp_mflags} -f ./GNUmakefile shared-libs DC=ldc2 CC=gcc libdir=%{?_lib} DCFLAGS="%{_d_optflags}" # generate geany tags geany -c geany_config -g gtkd.d.tags $(find src* -name "*.d") # Need to be update to gtk3 %check make %{?_smp_mflags} DC=ldc2 test %install make %{?_smp_mflags} install-shared install-headers DESTDIR=%{buildroot} prefix=%{_prefix} libdir=%{?_lib} datadir=%{_datadir} # geany tags mkdir -p %{buildroot}/%{_datadir}/geany/tags/ install -m0644 gtkd.d.tags %{buildroot}/%{_datadir}/geany/tags/ %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %doc AUTHORS COPYING README %{_libdir}/libgtkd-3.so.%{gtkd_major} %{_libdir}/libgtkd-3.so.%{gtkd_major}.%{gtkd_minor}.%{gtkd_bump} %{_libdir}/libgtkdgl-3.so.%{gtkd_major} %{_libdir}/libgtkdgl-3.so.%{gtkd_major}.%{gtkd_minor}.%{gtkd_bump} %{_libdir}/libgtkdsv-3.so.%{gtkd_major} %{_libdir}/libgtkdsv-3.so.%{gtkd_major}.%{gtkd_minor}.%{gtkd_bump} %files devel %{_d_includedir}/%{name}-3 %{_libdir}/libgtkd-3.so %{_libdir}/libgtkdgl-3.so %{_libdir}/libgtkdsv-3.so %{_datadir}/pkgconfig/gtkd-3.pc %{_datadir}/pkgconfig/gtkdgl-3.pc %{_datadir}/pkgconfig/gtkdsv-3.pc %files geany-tags %{_datadir}/geany/tags/gtkd.d.tags %changelog * Wed Feb 03 2016 Fedora Release Engineering - 3.1.4-53 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Jan 05 2016 Jonathan MERCIER - 3.2.1-57 - Rebuild with latest ldc release * Tue Jan 05 2016 Jonathan MERCIER - 3.2.1-56 - Fix several deprecated requires - update to latest release 3.2.1 * Sun Sep 06 2015 Jonathan MERCIER - 3.1.4-52 - update to latest release * Wed Jun 17 2015 Fedora Release Engineering - 2.4.2-51 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun Feb 01 2015 bioinfornatics - 2.4.2-50 - Update to latest revision * Sat Aug 16 2014 Fedora Release Engineering - 2.3.2-49 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 2.3.2-48 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Mon May 19 2014 jonathan MERCIER - 2.3.2-47 - update to latest rev * Mon Mar 10 2014 jonathan MERCIER - 2.0.0-46.20140301gitaf01da8 - Fix requires * Sun Mar 09 2014 jonathan MERCIER - 2.0.0-45.20140301gitaf01da8 - Update to latest rev * Mon Oct 28 2013 Jonathan MERCIER - 2.0.0-44.20131026git33f6aeb - Update to rev 33f6aeb * Thu Oct 24 2013 Jonathan MERCIER - 2.0.0-43.20131022git3948a30 - Update to rev 3948a30 * Wed Jun 26 2013 Jonathan MERCIER - 2.0.0-42.20130624gitdb5921d - update url * Wed Jun 26 2013 Jonathan MERCIER - 2.0.0-41.20130624gitdb5921d - update url * Mon Jun 24 2013 Jonathan MERCIER - 2.0.0-40.20130624gitdb5921d - Update to rev db5921d * Sun Jun 23 2013 Jonathan MERCIER - 2.0.0-39.20130619git7e95380 - Update to rev 7e95380 * Sun Jun 09 2013 Jonathan MERCIER - 2.0.0-38.20130526git5073a70 - Update to rev 5073a70 * Fri May 24 2013 Jonathan MERCIER - 2.0.0-37.20130519gitc19a533 - Update to rev c19a533 * Sat May 18 2013 Jonathan MERCIER - 2.0.0-36.20130508git516693e - rebuild * Fri May 17 2013 - 2.0.0-35.20130508git516693e - Update to rev 516693e * Thu May 16 2013 - 2.0.0-34.20130508git516693e - Update to rev 516693e * Thu May 09 2013 Jonathan MERCIER - 2.0.0-33.20130508git516693e - Update to rev 516693e * Wed May 08 2013 Jonathan MERCIER - 2.0.0-32.20130508gitd53e7af - Update to rev d53e7af * Tue May 07 2013 Jonathan MERCIER - 2.0.0-31.20130507gitc6f7e92 - Update to rev c6f7e92 * Tue May 07 2013 Jonathan MERCIER - 2.0.0-30.20130506git4c3922d - Update to rev 4c3922d * Wed Oct 03 2012 Jonathan MERCIER - 2.0.0-29.20120815git9ae9181 - rebuild dmdfe 2.060 * Sun Aug 12 2012 Jonathan MERCIER - 2.0.0-28.20120603gitcb35d25 - temprorally disable check section * Sun Aug 12 2012 Jonathan MERCIER - 2.0.0-27.20120603gitcb35d25 - Update to lastest revision cb35d25 * Wed Jun 06 2012 Jonathan MERCIER - 2.0.0-26.20120530gitf45bb5b - update to latest revision - build with dmdfe 2.059 * Sat Mar 17 2012 Jonathan MERCIER - 2.0.0-25.20120227git0c468d2 - fix macro in comment * Thu Mar 15 2012 Jonathan MERCIER - 2.0.0-24.20120227git0c468d2 - latest ldc fix soname issue, the use ldc instead of gcc for this * Mon Feb 27 2012 Jonathan MERCIER - 2.0.0-23.20120227git0c468d2 - add libglade2 as require - update to latest revision 0c468d2 * Thu Feb 23 2012 Jonathan MERCIER - 2.0.0-22.20120219git2cfd194 - Fix license * Mon Feb 20 2012 Jonathan MERCIER - 2.0.0-21.20120219git2cfd194 - source move to github - fix license - update to latest git rev * Tue Feb 14 2012 Jonathan MERCIER - 2.0.0-20.20120208svn933 - Update to latest svn rev 933 * Sun Feb 05 2012 Jonathan MERCIER - 2.0.0-19.20120205svn932 - Update to latest svn rev 932 * Sat Feb 04 2012 Jonathan MERCIER - 2.0.0-18.20120204svn928 - Update to latest svn rev 928 * Fri Feb 03 2012 Jonathan MERCIER - 2.0.0-17.20120201svn927 - update to rev svn 927 * Tue Jan 31 2012 Jonathan MERCIER - 2.0.0-16.20120130svn924 - update to latest svn rev 924 * Sat Jan 28 2012 Jonathan MERCIER - 2.0.0-15.20120113svn920 - Enable shared lib * Thu Jan 19 2012 Jonathan MERCIER - 2.0.0-14.20120113svn920 - Remove %%file devel section * Thu Jan 19 2012 Jonathan MERCIER - 2.0.0-13.20120113svn920 - Do not build as shared lib do not works yet - Remove 'it is a' from Summary - gtkd load shared lib at runtime with dlopen then add corresponding requires - Change gtkd code source for use versioned lib * Mon Jan 16 2012 Jonathan MERCIER 2.0.0-12.20120113svn920 - remove require devel from non devel (sub)package - remove require gtk2-devel from -devel - apply %%post and %%postun on main package * Fri Jan 13 2012 Jonathan MERCIER 2.0.0-11.20120113svn920 - update to latest release who fix a problem around soname * Fri Jan 13 2012 Jonathan MERCIER 2.0.0-10.20120113svn919 - update to latest release who he apply my patch * Tue Jan 10 2012 Jonathan MERCIER 2.0.0-9.20120111svn915 - update to latest release - fix fsf adress - fix soname - add devel package - little change in french description - add geany tag and devhelp supackage to noarch * Sun Jan 8 2012 Jonathan MERCIER 2.0.0-8.201110243svn906 - prefix python script by python command * Sun Dec 11 2011 Jonathan MERCIER 2.0.0-7.201110243svn906 - remove %%defattr and Group section - generate devhelp book in %%build section * Fri Dec 9 2011 Jonathan MERCIER 2.0.0-6.201110243svn906 - Add doc for devhelp - Add tag for geany * Mon Oct 24 2011 Jonathan MERCIER 2.0.0-5.201110243svn906 - Update to release 906 * Mon Sep 19 2011 Jonathan MERCIER 2.0.0-4.20110915svn897 - Update to release 897 * Mon Aug 02 2010 Jonathan MERCIER 2.0.0-3.20100720svn797 - fix gtkd spec * Mon Aug 02 2010 Jonathan MERCIER 2.0.0-2.20100720svn797 - Update to release 797 * Sun Jul 04 2010 Jonathan MERCIER 2.0.0-1.20100407svn796 - Initial release