1 | %define mono_dir %(/usr/bin/monodir) |
---|
2 | %define _name gtk-sharp |
---|
3 | Name: gtk-sharp2 |
---|
4 | Version: 2.12.27 |
---|
5 | Release: 1%{?_dist_release} |
---|
6 | Summary: GTK+ bindings for Mono |
---|
7 | Summary(ja): Mono 用 GTK+ バインディング |
---|
8 | |
---|
9 | Group: System Environment/Libraries |
---|
10 | License: LGPLv2 |
---|
11 | URL: http://www.mono-project.com/docs/gui/gtksharp/ |
---|
12 | |
---|
13 | Source: https://github.com/mono/gtk-sharp/archive/%{_name}-%{version}.tar.gz |
---|
14 | |
---|
15 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
16 | BuildRequires: mono-devel |
---|
17 | BuildRequires: monodoc |
---|
18 | BuildRequires: glib2-devel >= 2.12.0 |
---|
19 | BuildRequires: pango-devel |
---|
20 | BuildRequires: atk-devel |
---|
21 | BuildRequires: gtk2-devel >= 2.12.0 |
---|
22 | BuildRequires: libglade2-devel |
---|
23 | BuildRequires: automake, libtool |
---|
24 | |
---|
25 | BuildRequires: nkf |
---|
26 | |
---|
27 | # Mono only availible on these: |
---|
28 | ExclusiveArch: %{ix86} x86_64 ppc ia64 armv4l sparc s390 s390x |
---|
29 | |
---|
30 | Vendor: Project Vine |
---|
31 | Distribution: Vine Linux |
---|
32 | |
---|
33 | %description |
---|
34 | This package provides a library that allows you to build |
---|
35 | fully native graphical GNOME applications using Mono. Gtk# |
---|
36 | is a binding to GTK+, the cross platform user interface |
---|
37 | toolkit used in GNOME. It includes bindings for Gtk, Atk, |
---|
38 | Pango, Gdk, libgnome, libgnomeui and libgnomecanvas. Gtk# |
---|
39 | 2.12.x binds GTK+ 2.12. |
---|
40 | |
---|
41 | %package gapi |
---|
42 | Summary: Glib and GObject C source parser and C generator for the creation and maintenance of managed bindings for Mono and .NET |
---|
43 | Group: Development/Tools |
---|
44 | Requires: perl-XML-LibXML-Common |
---|
45 | Requires: perl-XML-LibXML |
---|
46 | Requires: perl-XML-SAX |
---|
47 | |
---|
48 | %description gapi |
---|
49 | This package provides developer tools for the creation and |
---|
50 | maintenance of managed bindings to native libraries which utilize |
---|
51 | glib and GObject. Some examples of libraries currently bound using |
---|
52 | the GAPI tools and found in Gtk# include Gtk, Atk, Pango, Gdk. |
---|
53 | |
---|
54 | %package devel |
---|
55 | Summary: Files needed for developing with gtk-sharp2 |
---|
56 | Group: Development/Libraries |
---|
57 | Requires: %{name} = %{version}-%{release} |
---|
58 | Requires: pkgconfig |
---|
59 | |
---|
60 | %description devel |
---|
61 | This package provides the necessary development libraries and headers |
---|
62 | for writing gtk-sharp2 applications. |
---|
63 | |
---|
64 | %package doc |
---|
65 | Summary: Gtk# documentation |
---|
66 | Group: Documentation |
---|
67 | Requires: %{name} = %{version}-%{release} |
---|
68 | Requires: monodoc |
---|
69 | |
---|
70 | %description doc |
---|
71 | This package provides the Gtk# documentation for monodoc. |
---|
72 | |
---|
73 | |
---|
74 | %prep |
---|
75 | # name duplication may be bug... |
---|
76 | %setup -q -n %{_name}-%{_name}-%{version} |
---|
77 | ./bootstrap-2.12 |
---|
78 | |
---|
79 | |
---|
80 | %build |
---|
81 | export MONO_SHARED_DIR=%{_builddir}/%{?buildsubdir} |
---|
82 | %configure --enable-silent-rules |
---|
83 | make |
---|
84 | |
---|
85 | %install |
---|
86 | %{__rm} -rf $RPM_BUILD_ROOT |
---|
87 | export MONO_SHARED_DIR=%{_builddir}/%{?buildsubdir} |
---|
88 | make install DESTDIR=$RPM_BUILD_ROOT GACUTIL_FLAGS="/package gtk-sharp /gacdir %{_prefix}/lib /root ${RPM_BUILD_ROOT}%{_prefix}/lib" |
---|
89 | |
---|
90 | ## remove unused files |
---|
91 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.a |
---|
92 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
93 | |
---|
94 | mv $RPM_BUILD_ROOT%{mono_dir}/gtk-sharp $RPM_BUILD_ROOT%{mono_dir}/gtk-sharp-2.0 |
---|
95 | |
---|
96 | for file in $RPM_BUILD_ROOT%{_bindir}/gapi2-codegen $RPM_BUILD_ROOT%{_bindir}/gapi2-fixup $RPM_BUILD_ROOT%{_bindir}/gapi2-parser $RPM_BUILD_ROOT%{_prefix}/lib/gtk-sharp-2.0/gapi2xml.pl $RPM_BUILD_ROOT%{_prefix}/lib/gtk-sharp-2.0/gapi_pp.pl |
---|
97 | do |
---|
98 | mv $file $file.orig |
---|
99 | nkf -w --unix $file.orig > $file |
---|
100 | chmod 755 $file |
---|
101 | rm $file.orig |
---|
102 | done |
---|
103 | |
---|
104 | |
---|
105 | %clean |
---|
106 | %{__rm} -rf $RPM_BUILD_ROOT |
---|
107 | |
---|
108 | |
---|
109 | %files |
---|
110 | %defattr(-,root,root,-) |
---|
111 | %doc COPYING ChangeLog README |
---|
112 | %{_libdir}/libatksharpglue-2.so |
---|
113 | %{_libdir}/libgdksharpglue-2.so |
---|
114 | %{_libdir}/libgladesharpglue-2.so |
---|
115 | %{_libdir}/libglibsharpglue-2.so |
---|
116 | %{_libdir}/libgtksharpglue-2.so |
---|
117 | %{_libdir}/libpangosharpglue-2.so |
---|
118 | %dir %{_prefix}/lib/gtk-sharp-2.0 |
---|
119 | %{mono_dir}/gac/atk-sharp |
---|
120 | %{mono_dir}/gac/gdk-sharp |
---|
121 | %{mono_dir}/gac/glade-sharp |
---|
122 | %{mono_dir}/gac/glib-sharp |
---|
123 | %{mono_dir}/gac/gtk-dotnet |
---|
124 | %{mono_dir}/gac/gtk-sharp |
---|
125 | %{mono_dir}/gac/pango-sharp |
---|
126 | %{mono_dir}/gac/policy.2.10.* |
---|
127 | %{mono_dir}/gac/policy.2.4.* |
---|
128 | %{mono_dir}/gac/policy.2.6.* |
---|
129 | %{mono_dir}/gac/policy.2.8.* |
---|
130 | %{mono_dir}/gtk-sharp-2.0 |
---|
131 | |
---|
132 | %files gapi |
---|
133 | %defattr(-,root,root,-) |
---|
134 | %{_bindir}/gapi2-codegen |
---|
135 | %{_bindir}/gapi2-fixup |
---|
136 | %{_bindir}/gapi2-parser |
---|
137 | %{_prefix}/lib/gtk-sharp-2.0/gapi-fixup.exe |
---|
138 | %{_prefix}/lib/gtk-sharp-2.0/gapi-parser.exe |
---|
139 | %{_prefix}/lib/gtk-sharp-2.0/gapi_codegen.exe |
---|
140 | %{_prefix}/lib/gtk-sharp-2.0/gapi2xml.pl |
---|
141 | %{_prefix}/lib/gtk-sharp-2.0/gapi_pp.pl |
---|
142 | %{_libdir}/pkgconfig/gapi-2.0.pc |
---|
143 | %{_prefix}/share/gapi-2.0 |
---|
144 | |
---|
145 | %files devel |
---|
146 | %defattr(-,root,root,-) |
---|
147 | %{_libdir}/pkgconfig/*-sharp-2.0.pc |
---|
148 | %{_libdir}/pkgconfig/gtk-dotnet-2.0.pc |
---|
149 | |
---|
150 | %files doc |
---|
151 | %defattr(-,root,root,-) |
---|
152 | %{_prefix}/lib/monodoc/sources/* |
---|
153 | |
---|
154 | |
---|
155 | %changelog |
---|
156 | * Mon Nov 3 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 2.12.27-1 |
---|
157 | - updated to 2.12.27 |
---|
158 | - split devel and doc subpackage |
---|
159 | - fixed gapi2xml.pl and gapi_pp.pl encoding |
---|
160 | |
---|
161 | * Sun Dec 29 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.12.21-1 |
---|
162 | - update to 2.12.21 |
---|
163 | |
---|
164 | * Mon Apr 25 2011 Shu KONNO <owa@bg.wakwak.com> 2.12.10-6 |
---|
165 | - rebuilt with mono-2.10.1-3 |
---|
166 | |
---|
167 | * Sun Apr 03 2011 Shu KONNO <owa@bg.wakwak.com> 2.12.10-5 |
---|
168 | - rebuilt with mono-2.10.1 |
---|
169 | |
---|
170 | * Fri Oct 08 2010 Shu KONNO <owa@bg.wakwak.com> 2.12.10-4 |
---|
171 | - rebuilt with mono-2.8 |
---|
172 | |
---|
173 | * Wed Sep 22 2010 IWAI, Masaharu <iwai@alib.jp> 2.12.10-3 |
---|
174 | - build with rpm-4.8.1-1 for pkg-config file |
---|
175 | |
---|
176 | * Wed Apr 14 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.12.10-2 |
---|
177 | - updated build dependencies |
---|
178 | |
---|
179 | * Thu Apr 08 2010 Shu KONNO <owa@bg.wakwak.com> 2.12.10-1 |
---|
180 | - updated gtk-sharp to 2.12.10 |
---|
181 | |
---|
182 | * Sun Dec 27 2009 Shu KONNO <owa@bg.wakwak.com> 2.12.9-2 |
---|
183 | - rebuilt with mono-2.6.1 |
---|
184 | |
---|
185 | * Wed Jul 08 2009 Shu KONNO <owa@bg.wakwak.com> 2.12.9-1 |
---|
186 | - updated gtk-sharp to 2.12.9 |
---|
187 | - built with latest rpm to update mono-dependencies |
---|
188 | |
---|
189 | * Sun Apr 05 2009 Shu KONNO <owa@bg.wakwak.com> 2.12.8-1vl5 |
---|
190 | - updated gtk-sharp to 2.12.8 |
---|
191 | |
---|
192 | * Mon Dec 29 2008 Shu KONNO <owa@bg.wakwak.com> 2.12.5-1vl5 |
---|
193 | - updated gtk-sharp to 2.12.5 |
---|
194 | |
---|
195 | * Wed Sep 17 2008 Shu KONNO <owa@bg.wakwak.com> 2.12.3-1vl5 |
---|
196 | - updated gtk-sharp to 2.12.3 |
---|
197 | - dropt gtk-sharp2-vtelibs.patch |
---|
198 | - built with mono-2.0 |
---|
199 | |
---|
200 | * Wed Aug 27 2008 Shu KONNO <owa@bg.wakwak.com> 2.8.2-2vl5 |
---|
201 | - applied new versioning policy, spec in utf-8 |
---|
202 | - use automake-1.7 |
---|
203 | |
---|
204 | * Sun Apr 2 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.8.2-1vl1 |
---|
205 | - rebuilt for Vine Linux |
---|
206 | |
---|
207 | * Fri Mar 3 2006 Christopher Aillon <caillon@redhat.com> - 2.8.2-1 |
---|
208 | - Update to 2.8.2 to fix an issue with marshalling on x86-64 |
---|
209 | |
---|
210 | * Fri Feb 10 2006 Christopher Aillon <caillon@redhat.com> - 2.8.1-1 |
---|
211 | - Update to 2.8.1 |
---|
212 | |
---|
213 | * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 2.8.0-1.1 |
---|
214 | - rebuilt for new gcc4.1 snapshot and glibc changes |
---|
215 | |
---|
216 | * Tue Jan 31 2006 Christopher Aillon <caillon@redhat.com> 2.8.0-1 |
---|
217 | - Update to 2.8.0 |
---|
218 | |
---|
219 | * Thu Jan 19 2006 Alexander Larsson <alexl@redhat.com> 2.4.0-3 |
---|
220 | - Mono now builds on s390x |
---|
221 | |
---|
222 | * Mon Jan 9 2006 Alexander Larsson <alexl@redhat.com> - 2.4.0-2 |
---|
223 | - Fix vte build |
---|
224 | |
---|
225 | * Tue Nov 15 2005 Alexander Larsson <alexl@redhat.com> - 2.4.0-1 |
---|
226 | - Initial version |
---|