]> git.pld-linux.org Git - packages/ircii.git/blob - ircii.spec
cc1ae8eae7ed584316a3e7b9712a07e6d693153c
[packages/ircii.git] / ircii.spec
1 Summary:        Popular Unix Irc client
2 Summary(de.UTF-8):      Beliebter Unix-IRC-Client
3 Summary(fr.UTF-8):      Client irc UNIX populaire
4 Summary(pl.UTF-8):      Popularny uniksowy klient IRC
5 Summary(tr.UTF-8):      Yaygın Unix Irc istemcisi
6 Name:           ircii
7 Version:        20111115
8 Release:        2
9 License:        BSD
10 Group:          Applications/Networking
11 Vendor:         IRCII Bugs <ircii-bugs@ircii.eterna.com.au>
12 Source0:        ftp://ircii.warped.com/pub/ircII/%{name}-%{version}.tar.gz
13 # Source0-md5:  8e38ba5828c02fa44289ae3dcbccd04c
14 Source1:        %{name}.desktop
15 Patch0:         %{name}-config.patch
16 URL:            http://www.eterna.com.au/ircii/
17 BuildRequires:  autoconf
18 BuildRequires:  ncompress
19 BuildRequires:  ncurses-devel >= 5.1
20 Requires:       ncompress
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Obsoletes:      ircii-help
23
24 %description
25 This is a popular Internet Relay Chat (IRC) client. It is a program
26 used to connect to IRC servers around the globe so that the user can
27 ``chat'' with others.
28
29 %description -l de.UTF-8
30 Dies ist ein beliebter IRC-Client (Internet Relay Chat). Sie können
31 eine Verbindung zu einem beliebigen IRC-Server aufbauen und mit
32 anderen Benutzern 'chatten'.
33
34 %description -l fr.UTF-8
35 Le très poulaire client Internet Relay Chat (IRC). C'est un programme
36 utilisé pour se connecter aux serveurs IRC à travers le monde entier
37 et ``bavarder'' avec les autres.
38
39 %description -l pl.UTF-8
40 Ircii to popularny klient IRC (Internet Relay Chat). Służy do łączenia
41 się z serwerami IRC dookoła globu tak, by użytkownicy mogli ze sobą
42 rozmawiać.
43
44 %description -l tr.UTF-8
45 Bu, yaygın kullanılan bir IRC (Internet Relay Chat) istemcisidir.
46 Dünya üzerinde herhangi bir IRC sunucusuna bağlantı sağlar; bağlantı
47 sağlandıktan sonra kullanıcı diğer insanlarla sohbet edebilir.
48
49 %prep
50 %setup  -q
51 %patch0 -p1
52
53 %build
54 %configure2_13 \
55         --with-paranoid \
56         --enable-ipv6 \
57         --with-default-server="irc.pld-linux.org poznan.irc.pl wroclaw.irc.pl warszawa.irc.pl krakow.irc.pl lublin.irc.pl" \
58         --with-cast
59 %{__make}
60
61 %install
62 rm -rf $RPM_BUILD_ROOT
63 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/irc,%{_desktopdir}}
64
65 %{__make} -j1 install \
66         DESTDIR=$RPM_BUILD_ROOT
67
68 mv -f $RPM_BUILD_ROOT%{_bindir}/irc-%{version} $RPM_BUILD_ROOT%{_bindir}/ircii
69 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
70 chmod -R a=rX,u=rwX $RPM_BUILD_ROOT%{_datadir}/irc
71
72 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/irc.1
73 echo ".so ircII.1" > $RPM_BUILD_ROOT%{_mandir}/man1/irc.1
74
75
76 %post
77 if [ ! -f /etc/irc/ircII.servers ]; then
78         if [ ! -d /etc/irc ]; then
79                 install -d /etc/irc
80                 chmod 755 /etc/irc
81         fi
82 cat  << EOF > /etc/irc/ircII.servers
83 irc.pld-linux.org:6667
84 warszawa.irc.pl:6667
85 lublin.irc.pl:6667
86 krakow.irc.pl:6667
87 poznan.irc.pl:6667
88 wroclaw.irc.pl:6667
89 EOF
90         chown root:root /etc/irc/ircII.servers
91         chmod 644 /etc/irc/ircII.servers
92 fi
93
94 %clean
95 rm -rf $RPM_BUILD_ROOT
96
97 %files
98 %defattr(644,root,root,755)
99 %doc NEWS README ChangeLog
100 %attr(755,root,root) %{_bindir}/*ircii
101 %attr(755,root,root) %dir %{_sysconfdir}/irc
102 %attr( - ,root,root) %{_datadir}/irc
103 %{_desktopdir}/*.desktop
104 %{_mandir}/man*/*
This page took 0.07826 seconds and 2 git commands to generate.