]> git.pld-linux.org Git - packages/dotnet-gtk-sharp.git/blob - dotnet-gtk-sharp.spec
- new style macros
[packages/dotnet-gtk-sharp.git] / dotnet-gtk-sharp.spec
1 # TODO: split (at least gtk, gnome, gda, gnomedb)
2 #
3 # Conditional build:
4 %bcond_without  gda     # don't build gda binding
5 %bcond_without  gnome   # don't build GNOME (and dependent) bindings
6 #
7 %define         gtkhtml_soversion       %(/bin/ls %{_libdir}/libgtkhtml-3.6.so.* 2>/dev/null | /usr/bin/head -n 1 | /bin/awk '{ split($1,v,"."); print v[4]; }')
8 %define         gtkhtml_version         %(if [ -e /usr/bin/pkg-config ]; then /usr/bin/pkg-config --modversion libgtkhtml-3.6 2>/dev/null || echo 0; else echo 0; fi)
9 %include        /usr/lib/rpm/macros.perl
10 Summary:        .NET language bindings for GTK+ and GNOME
11 Summary(pl):    Wi±zania GTK+ oraz GNOME dla .NET
12 Name:           dotnet-gtk-sharp
13 Version:        1.0.6
14 Release:        4
15 License:        LGPL
16 Group:          Development/Libraries
17 Source0:        http://www.go-mono.com/archive/1.0.6/gtk-sharp-%{version}.tar.gz
18 # Source0-md5:  2651d14fe77174ab20b8af53d150ee11
19 Patch0:         %{name}-gtkhtml31.patch
20 Patch1:         %{name}-destdir.patch
21 Patch2:         %{name}-mint.patch
22 Patch3:         %{name}-pc-libdir.patch
23 URL:            http://gtk-sharp.sf.net/
24 BuildRequires:  autoconf
25 BuildRequires:  automake
26 BuildRequires:  gawk
27 BuildRequires:  libart_lgpl-devel >= 2.2.0
28 %{?with_gda:BuildRequires:      libgda-devel >= 1.0.0}
29 BuildRequires:  libglade2-devel >= 2.0.1
30 BuildRequires:  librsvg-devel >= 2.4.0
31 BuildRequires:  libtool
32 BuildRequires:  libxml2-devel
33 BuildRequires:  mono-csharp >= 1.0.2
34 BuildRequires:  ncurses-devel
35 BuildRequires:  pkgconfig
36 BuildRequires:  rpm-perlprov
37 %if %{with gnome}
38 BuildRequires:  gtkhtml-devel >= 3.6.2
39 BuildRequires:  libgnomecanvas-devel >= 2.4.0
40 %{?with_gda:BuildRequires:      libgnomedb-devel >= 1.0.0}
41 BuildRequires:  libgnomeprintui-devel >= 2.4.0
42 BuildRequires:  libgnomeui-devel >= 2.4.0
43 BuildRequires:  vte-devel >= 0.11.10
44 %endif
45 BuildRequires:  rpmbuild(macros) >= 1.197
46 Requires(post,postun):  /sbin/ldconfig
47 %{?with_gnome:Requires: gtkhtml = %{gtkhtml_version}}
48 Requires:       mono >= 1.0.2
49 Provides:       dotnet-gtk
50 Provides:       gtk-sharp
51 Obsoletes:      dotnet-gtk
52 Obsoletes:      gtk-sharp
53 ExcludeArch:    alpha
54 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
55
56 %description
57 This package provides bindings for .NET to GTK+2 and GNOME2 libraries.
58
59 %description -l pl
60 Pakiet ten dostarcza wi±zania dla .NET do bibliotek z GTK+2 oraz
61 GNOME2.
62
63 %package devel
64 Summary:        Development part of GTK#
65 Summary(pl):    Czê¶æ dla programistów GTK#
66 Group:          Development/Libraries
67 Requires:       %{name} = %{version}-%{release}
68 Provides:       dotnet-gtk-devel
69 Provides:       gtk-sharp-devel
70 Obsoletes:      dotnet-gtk-devel
71 Obsoletes:      gtk-sharp-devel
72
73 %description devel
74 Tools (C source parser and C# code generator) and documentation for
75 developing applications using GTK#.
76
77 %description devel -l pl
78 Narzêdzia (parser kodu C oraz generator kodu C#) i dokumentacja
79 potrzebne przy tworzeniu aplikacji korzystaj±cych z GTK#.
80
81 %package static
82 Summary:        Static gtk-sharp libraries
83 Summary(pl):    Biblioteki statyczne gtk-sharp
84 Group:          Development/Libraries
85 Requires:       %{name}-devel = %{version}-%{release}
86 Provides:       dotnet-gtk-static
87 Provides:       gtk-sharp-static
88 Obsoletes:      dotnet-gtk-static
89 Obsoletes:      gtk-sharp-static
90
91 %description static
92 Static gtk-sharp libraries.
93
94 %description static -l pl
95 Biblioteki statyczne gtk-sharp.
96
97 %prep
98 %setup -q -n gtk-sharp-%{version}
99 %patch0 -p1
100 %patch1 -p1
101 %patch2 -p1
102 %patch3 -p1
103
104 # workaround for variable name
105 echo 'm4_pattern_allow(PKG_PATH)' > acinclude.m4
106
107 %build
108 %{__libtoolize}
109 %{__aclocal}
110 %{__autoheader}
111 %{__automake}
112 %{__autoconf}
113 %configure \
114         GTKHTMLSOVERSION=%{gtkhtml_soversion}
115 %{__make}
116
117 %install
118 rm -rf $RPM_BUILD_ROOT
119 install -d $RPM_BUILD_ROOT{%{perl_vendorlib},%{_examplesdir}/%{name}-%{version}}
120
121 %{__make} install \
122         DESTDIR=$RPM_BUILD_ROOT
123
124 cp -a sample/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
125
126 %clean
127 rm -rf $RPM_BUILD_ROOT
128
129 %post
130 %ldconfig_post
131
132 %postun
133 %ldconfig_postun
134
135 %files
136 %defattr(644,root,root,755)
137 %doc README
138 %attr(755,root,root) %{_bindir}/gconfsharp-schemagen*
139 %attr(755,root,root) %{_libdir}/lib*sharpglue.so
140 %{_libdir}/lib*sharpglue.la
141 %{_libdir}/mono/gac/*
142
143 %files devel
144 %defattr(644,root,root,755)
145 %doc README.generator ChangeLog
146 %attr(755,root,root) %{_bindir}/gapi*
147 %{_datadir}/gapi
148 %{_examplesdir}/%{name}-%{version}
149 %{_pkgconfigdir}/*
150 %{_libdir}/mono/gtk-sharp
151
152 %files static
153 %defattr(644,root,root,755)
154 %{_libdir}/lib*sharpglue.a
This page took 0.068932 seconds and 4 git commands to generate.