silc-client: rpm packaging updates
[silc.git] / apps / irssi / silc-client.spec.in
index 41a481198c01502262e7e451fbe93c3b8833a96a..160d080373761750b8d225cd36e460f4293c0191 100644 (file)
@@ -7,18 +7,14 @@ Group: Applications/Communications
 URL: http://silcnet.org/
 Source0: silc-client-%{version}.tar.gz
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
-BuildRequires: silc-toolkit-devel
-Requires: silc-toolkit >= 1.1
+BuildRequires: libsilc-devel
+Requires: libsilc >= 1.1
 
 %description
-SILC (Secure Internet Live Conferencing) is a protocol which provides
-secure conferencing services on the Internet over insecure channel.
-SILC Client is used to connect to SILC server and SILC network.
-
-# Need this because the irssi's configure we run from silc-client
-# configure somehow installs some of the files to location where I don't
-# know how to reach them.
-%define _unpackaged_files_terminate_build 0
+SILC (Secure Internet Live Conferencing) is a modern and secure
+conferencing protocol providing secure private messages, channel
+messages and video and audio conferencing.  SILC Client is a
+command line client used to connect to SILC server in SILC network.
 
 %prep
 %setup -q
@@ -36,21 +32,22 @@ make -j4
 %install
 rm -rf $RPM_BUILD_ROOT
 make DESTDIR=$RPM_BUILD_ROOT install
-rm -f $RPM_BUILD_ROOT/%{_libdir}/perl5/5.6.0/i386-linux/perllocal.pod
-rm -f $RPM_BUILD_ROOT/%{_datadir}/doc/silc-client
+rm -f $RPM_BUILD_ROOT/%{_libdir}/silc/perl5/*/perllocal.pod
+mv $RPM_BUILD_ROOT/%{_datadir}/doc/silc-client \
+  $RPM_BUILD_ROOT/%{_datadir}/doc/silc-client-%version
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
-%defattr (-,root,root,-)
+%defattr (755,root,root,755)
 %{_bindir}/*
 %{_libdir}/silc/perl5
+%defattr (644,root,root,755)
 %{_sysconfdir}/silc.conf
 %{_mandir}/man1/*
 %{_datadir}/silc
-%doc CHANGES COPYING CREDITS README README.PLUGIN TODO doc/FAQ
-%doc apps/irssi/docs/*.txt apps/irssi/docs/*.html
+%doc %{_datadir}/doc
 
 %changelog
 * Sun Jun  3 2007 - Pekka Riikonen <priikone@silcnet.org>