source: projects/specs/branches/6/lib/libv/libvncserver/libvncserver-vl.spec @ 6208

Revision 6208, 4.0 KB checked in by inagaki, 12 years ago (diff)

update: libcaptury, libfli, libmal, libnova, libotr, libqalculate, libvncserver and pilot-link

Line 
1%define system_minilzo 1
2
3Summary: Library to make writing a vnc server easy
4Summary(ja): VNC サーバを簡単に作成するためのライブラリ
5Name:    libvncserver
6Version: 0.9.7
7Release: 5%{?_dist_release}
8# NOTE: --with-tightvnc-filetransfer => GPLv2
9
10License: GPLv2+
11Group:   System Environment/Libraries
12URL:     http://libvncserver.sourceforge.net/
13
14Source0: http://downloads.sf.net/libvncserver/LibVNCServer-%{version}.tar.gz
15
16Patch1: libvncserver-0.9.7-system_minilzo.patch
17Patch2: libvncserver-0.9.1-multilib.patch
18
19# safer LINUX platform detection (from opensuse)
20Patch50:  libvncserver-LINUX.patch
21
22## upstream patches
23Patch100: libvncserver-0.9.1-close_server_socket.patch
24
25BuildRoot: %{_tmppath}/%{name}-%{version}-root
26BuildRequires: findutils
27BuildRequires: libjpeg-devel
28BuildRequires: zlib-devel
29BuildRequires: lzo-minilzo lzo-devel
30
31# upstream name
32Obsoletes: LibVNCServer < %{version}-%{release}
33Provides:  LibVNCServer = %{version}-%{release}
34
35%description
36LibVNCServer makes writing a VNC server (or more correctly, a program
37exporting a framebuffer via the Remote Frame Buffer protocol) easy.
38
39It hides the programmer from the tedious task of managing clients and
40compression schemata.
41
42%package devel
43Summary: Development files for %{name}
44Summary(ja): %{name} の開発用ライブラリ
45Group: Development/Libraries
46Requires: %{name} = %{version}-%{release}
47# libvncserver-config deps
48Requires: coreutils
49# upstream name
50#Obsoletes: LibVNCServer-devel < %{version}-%{release}
51Provides:  LibVNCServer-devel = %{version}-%{release}
52
53%description devel
54%{summary}.
55
56
57%prep
58%setup -q -n LibVNCServer-%{version}
59
60%if %{system_minilzo}
61%patch1 -p1 -b .system_minilzo
62#nuke bundled minilzo
63find . -name minilzo\* -exec rm -f {} \;
64%endif
65
66%patch2 -p1 -b .multilib
67%patch50 -p0 -b .LINUX
68%patch100 -p1 -b .close_server_socket
69
70# fix encoding
71mv AUTHORS AUTHORS.OLD && \
72iconv -f ISO_8859-1 -t UTF8 AUTHORS.OLD > AUTHORS && \
73touch --reference AUTHORS.OLD AUTHORS
74
75# fix source perms
76find -name "*.c" -o -name "*.h" | xargs chmod 644
77
78
79%build
80%configure \
81  --disable-static \
82  --without-tightvnc-filetransfer
83
84# hack to omit unused-direct-shlib-dependencies
85sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
86
87make \
88%if %{system_minilzo}
89CFLAGS="$RPM_OPT_FLAGS -I %{_includedir}/lzo" LDFLAGS="$LDFLAGS -lminilzo" \
90%endif
91%{?_smp_mflags}
92
93%install
94rm -rf %{buildroot}
95
96make install DESTDIR=%{buildroot}
97
98# unpackaged files
99rm -f %{buildroot}%{_bindir}/LinuxVNC
100rm -f %{buildroot}%{_libdir}/lib*.a
101rm -f %{buildroot}%{_libdir}/lib*.la
102
103
104%clean
105rm -rf %{buildroot}
106
107
108%post -p /sbin/ldconfig
109
110%postun -p /sbin/ldconfig
111
112
113%files
114%defattr(-,root,root,-)
115%doc AUTHORS ChangeLog COPYING NEWS README TODO
116%{_libdir}/libvncclient.so.0*
117%{_libdir}/libvncserver.so.0*
118
119%files devel
120%defattr(-,root,root,-)
121%{_bindir}/*-config
122%{_includedir}/rfb/
123%{_libdir}/libvncclient.so
124%{_libdir}/libvncserver.so
125
126
127%changelog
128* Mon May 21 2012 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.9.7-5
129- rebuild with rpm-4.8.1-3
130- added Japanese summary
131
132* Sun Aug 30 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.9.7-4
133- Initial build for Vine Linux
134
135* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.7-3
136- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
137
138* Sat May 23 2009 Rex Dieter <rdieter@fedoraproject.org> - 0.9.7-3
139- Socket is not closed when disconnecting from server (#501895)
140
141* Mon May 04 2009 Rex Dieter <rdieter@fedoraproject.org> - 0.9.7-2
142- fix detection of LINUX platform/define
143
144* Mon May 04 2009 Rex Dieter <rdieter@fedoraproject.org> - 0.9.7-1
145- LibVNCServer-0.9.7
146
147* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-4
148- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
149
150* Thu Apr 10 2008 Manuel Wolfshant <wolfy@fedoraproject.org> 0.9.1-3
151- do not use bundled copy of minilzo (#439979)
152
153* Sun Jan 27 2008 Rex Dieter <rdieter@fedoraproject.org> 0.9.1-2
154- hack libtool to omit unused shlib dependencies
155- fix AUTHORS encoding
156- fix src perms
157
158* Mon Jan 21 2008 Rex Dieter <rdieter@fedoraproject.org> 0.9.1-1
159- 0.9.1
Note: See TracBrowser for help on using the repository browser.