~ubuntu-branches/ubuntu/vivid/gtk-vnc/vivid-proposed

« back to all changes in this revision

Viewing changes to mingw32-gtk-vnc.spec.in

  • Committer: Package Import Robot
  • Author(s): Laurent Léonard
  • Date: 2012-07-24 00:49:55 UTC
  • mfrom: (1.2.5)
  • Revision ID: package-import@ubuntu.com-20120724004955-6711f7ontxvn9yzy
Tags: 0.5.1-1
* [e2591bf] Imported Upstream version 0.5.1
* [a0f6408] Drop patch
  - Allow-Unix-domain-sockets-in-gvncviewer.patch - fixed upstream
* [c031b94] Bump Standards-Version to 3.9.3
* [61e5796] Set build directories for dh_auto_clean
* [7fde78d] Drop patch
  - Look-for-generated-enums-in-srcdir.patch
* [fada5be] Add dh_auto_test override
* [d7567f1] Update symbols
* [6189676] Enable dpkg-buildflags

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
%define __strip %{_mingw32_strip}
2
 
%define __objdump %{_mingw32_objdump}
3
 
%define _use_internal_dependency_generator 0
4
 
%define __find_requires %{_mingw32_findrequires}
5
 
%define __find_provides %{_mingw32_findprovides}
6
 
 
7
 
%define with_gtk3 0
8
 
%if 0%{?fedora} >= 15
9
 
%define with_gtk3 1
10
 
%endif
11
 
 
12
 
Name: mingw32-gtk-vnc
13
 
Version: @VERSION@
14
 
Release: 1%{?dist}%{?extra_release}
15
 
Summary: MinGW Windows port of VNC client GTK widget
16
 
 
17
 
License: LGPLv2+
18
 
Group: Development/Libraries
19
 
Source: http://ftp.gnome.org/pub/GNOME/sources/gtk-vnc/0.4/gtk-vnc-%{version}.tar.gz
20
 
URL: http://live.gnome.org/gtk-vnc
21
 
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
22
 
 
23
 
BuildArch: noarch
24
 
 
25
 
BuildRequires: mingw32-filesystem >= 40
26
 
BuildRequires: mingw32-gcc
27
 
BuildRequires: mingw32-binutils
28
 
 
29
 
BuildRequires: mingw32-cairo
30
 
BuildRequires: mingw32-dlfcn
31
 
BuildRequires: mingw32-gettext
32
 
BuildRequires: mingw32-iconv
33
 
BuildRequires: mingw32-gnutls
34
 
BuildRequires: mingw32-gtk2
35
 
BuildRequires: pkgconfig
36
 
BuildRequires: intltool
37
 
%if %{with_gtk3}
38
 
BuildRequires: mingw32-gtk3
39
 
%endif
40
 
 
41
 
Requires: pkgconfig
42
 
 
43
 
%package -n mingw32-gvnc
44
 
Summary: MinGW Windows port of VNC GObject
45
 
 
46
 
%package -n mingw32-gvnc-tools
47
 
Summary: Command line VNC tools
48
 
Group: Applications/Internet
49
 
 
50
 
%if %{with_gtk3}
51
 
%package -n mingw32-gtk-vnc2
52
 
Summary: A GTK3 widget for VNC clients
53
 
Group: Development/Libraries
54
 
 
55
 
Requires: pkgconfig
56
 
%endif
57
 
 
58
 
%description
59
 
gtk-vnc is a VNC viewer widget for GTK. It is built using coroutines
60
 
allowing it to be completely asynchronous while remaining single threaded.
61
 
 
62
 
%description -n mingw32-gvnc
63
 
gvnc is a GObject for managing a VNC connection. It provides all the
64
 
infrastructure required to build a VNC client without having to deal
65
 
with the raw protocol itself.
66
 
 
67
 
%description -n mingw32-gvnc-tools
68
 
Provides useful command line utilities for interacting with
69
 
VNC servers. Includes the gvnccapture program for capturing
70
 
screenshots of a VNC desktop
71
 
 
72
 
%if %{with_gtk3}
73
 
%description -n mingw32-gtk-vnc2
74
 
gtk-vnc is a VNC viewer widget for GTK. It is built using coroutines
75
 
allowing it to be completely asynchronous while remaining single threaded.
76
 
%endif
77
 
 
78
 
%prep
79
 
%setup -q -n gtk-vnc-%{version} -c
80
 
%if %{with_gtk3}
81
 
cp -a gtk-vnc-%{version} gtk-vnc2-%{version}
82
 
%endif
83
 
 
84
 
%build
85
 
cd gtk-vnc-%{version}
86
 
%{_mingw32_configure} --without-python --with-examples --without-sasl --with-gtk=2.0
87
 
%__make %{?_smp_mflags} V=1
88
 
cd ..
89
 
 
90
 
%if %{with_gtk3}
91
 
cd gtk-vnc2-%{version}
92
 
%{_mingw32_configure} --without-python --without-examples --without-sasl --with-gtk=3.0
93
 
%__make %{?_smp_mflags} V=1
94
 
cd ..
95
 
%endif
96
 
 
97
 
 
98
 
%install
99
 
rm -rf $RPM_BUILD_ROOT
100
 
cd gtk-vnc-%{version}
101
 
make DESTDIR=$RPM_BUILD_ROOT install
102
 
cd ..
103
 
%if %{with_gtk3}
104
 
cd gtk-vnc2-%{version}
105
 
make DESTDIR=$RPM_BUILD_ROOT install
106
 
cd ..
107
 
%endif
108
 
 
109
 
# Remove static libraries but DON'T remove *.dll.a files.
110
 
rm -f $RPM_BUILD_ROOT%{_mingw32_libdir}/libgtk-vnc-1.0.a
111
 
rm -f $RPM_BUILD_ROOT%{_mingw32_libdir}/libgtk-vnc-2.0.a
112
 
rm -f $RPM_BUILD_ROOT%{_mingw32_libdir}/libgvnc-1.0.a
113
 
rm -f $RPM_BUILD_ROOT%{_mingw32_mandir}/man1/gvnccapture.1*
114
 
 
115
 
%find_lang gtk-vnc
116
 
 
117
 
%clean
118
 
rm -rf $RPM_BUILD_ROOT
119
 
 
120
 
 
121
 
%files -f gtk-vnc.lang
122
 
%defattr(-,root,root)
123
 
%{_mingw32_bindir}/gvncviewer.exe
124
 
%{_mingw32_bindir}/libgtk-vnc-1.0-0.dll
125
 
%{_mingw32_libdir}/libgtk-vnc-1.0.dll.a
126
 
%{_mingw32_libdir}/libgtk-vnc-1.0.la
127
 
%{_mingw32_libdir}/pkgconfig/gtk-vnc-1.0.pc
128
 
%{_mingw32_includedir}/gtk-vnc-1.0
129
 
 
130
 
%files -n mingw32-gvnc
131
 
%defattr(-,root,root)
132
 
%doc gtk-vnc-%{version}/AUTHORS
133
 
%doc gtk-vnc-%{version}/ChangeLog
134
 
%doc gtk-vnc-%{version}/ChangeLog-old
135
 
%doc gtk-vnc-%{version}/NEWS
136
 
%doc gtk-vnc-%{version}/README
137
 
%doc gtk-vnc-%{version}/COPYING.LIB
138
 
%{_mingw32_bindir}/libgvnc-1.0-0.dll
139
 
%{_mingw32_libdir}/libgvnc-1.0.dll.a
140
 
%{_mingw32_libdir}/libgvnc-1.0.la
141
 
%{_mingw32_libdir}/pkgconfig/gvnc-1.0.pc
142
 
%{_mingw32_includedir}/gvnc-1.0
143
 
 
144
 
%files -n mingw32-gtk-vnc2
145
 
%{_mingw32_bindir}/libgtk-vnc-2.0-0.dll
146
 
%{_mingw32_libdir}/libgtk-vnc-2.0.dll.a
147
 
%{_mingw32_libdir}/libgtk-vnc-2.0.la
148
 
%{_mingw32_libdir}/pkgconfig/gtk-vnc-2.0.pc
149
 
%{_mingw32_includedir}/gtk-vnc-2.0
150
 
 
151
 
%files -n mingw32-gvnc-tools
152
 
%defattr(-,root,root)
153
 
%{_mingw32_bindir}/gvnccapture.exe
154
 
 
155
 
%changelog
156
 
* Sun Dec  7 2008 Daniel P. Berrange <berrange@redhat.com> - 0.3.7-1
157
 
- Initial packaging