# Upstream: Summary: experimental .NET bindings for Gtk+ Name: ngtk Version: @VERSION@ Release: 1 License: LGPL Group: Development/Libraries URL: http://www.atoker.com/ngtk/ Packager: Alp Toker Vendor: atoker.com Source: http://www.atoker.com/ngtk/release/ngtk-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root #runtime #BuildRequires: mono-core, mono-devel #core BuildRequires: glib2-devel, gtk2-devel >= @GTK_REQUIRED_VERSION@ #extra BuildRequires: libglade2-devel, vte-devel, libart_lgpl-devel, librsvg2-devel, libwnck-devel %description A C source parser and C# code generator to produce .Net assemblies which bind to GObject based libraries. The Gtk+-2.0 libraries are included along with several GNOME platform libraries. %package gapi Summary: C source parser and C generator Group: Development/Libraries Requires: perl-XML-LibXML-Common, perl-XML-LibXML, perl-XML-NamespaceSupport Requires: perl-XML-SAX, ngtk = %{version}-%{release} %description gapi The ngtk-gapi package includes the parser and code generator used by the Gtk if you want to bind GObject-based libraries, or need to compile a project that uses it to bind such a library. %package devel Summary: Header files, libraries and development documentation for %{name} Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel This package contains the header files, static libraries and development documentation for %{name}. If you like to develop programs using %{name}, you will need to install %{name}-devel. %prep %setup %build %configure %{__make} %{?_smp_mflags} %{__make} -C ngtk %{?_smp_mflags} \ DESTDIR="%{buildroot}" \ prefix="%{_prefix}" \ %install %{__rm} -rf %{buildroot} %{__make} install \ DESTDIR="%{buildroot}" \ GACUTIL_FLAGS="/root %{buildroot}%{_libdir}" %{__make} -C ngtk install \ DESTDIR="%{buildroot}" \ prefix="%{_prefix}" \ #no ldconfig, late binding doesn't need it %clean %{__rm} -rf %{buildroot} %files %defattr(-, root, root, 0755) %doc ChangeLog COPYING README %{_bindir}/* %exclude %{_bindir}/gapi* %{_libdir}/mono/ %{_libdir}/*.so %{_libdir}/pkgconfig/ngtk-2.0.pc %files gapi %defattr(-, root, root, 0755) %{_bindir}/gapi* %{_libdir}/pkgconfig/gapi-2.0.pc %{_libdir}/ngtk-2.0/ %{_datadir}/ngapi-2.0/ %files devel %defattr(-, root, root, 0755) %doc README.generator %{_libdir}/pkgconfig/*.pc %exclude %{_libdir}/pkgconfig/gapi-2.0.pc