]> git.pld-linux.org Git - packages/eggdrop.git/blob - eggdrop.spec
- added additional language files.
[packages/eggdrop.git] / eggdrop.spec
1 Summary:        Eggdrop is an IRC bot, written in C
2 Summary(pl):    Eggdrop jest botem IRC napisanym w C
3 Name:           eggdrop
4 Version:        1.6.13
5 Release:        4
6 License:        GPL
7 Group:          Applications/Communications
8 Source0:        ftp://ftp.eggheads.org/pub/eggdrop/source/1.6/%{name}%{version}.tar.gz
9 # In order to unify filenames, following language packs were repackaged. Some files were
10 # renamed, but none modified. Original archives are available at http://www.egghelp.org/
11 Source10:       %{name}%{version}-language-danish.tar.gz
12 Source11:       %{name}%{version}-language-finnish.tar.gz
13 Source12:       %{name}%{version}-language-italian.tar.gz
14 Source13:       %{name}%{version}-language-norwegian.tar.gz
15 Source14:       %{name}%{version}-language-portuguese.tar.gz
16 Source15:       %{name}%{version}-language-portuguese_br.tar.gz
17 Source16:       %{name}%{version}-language-romanian.tar.gz
18 Patch0:         %{name}-FHS.patch
19 # Unofficial IPv6 patch
20 Patch1:         http://www.egghelp.org/files/patches/%{name}%{version}+ipv6.patch.gz
21 Patch2:         %{name}%{version}+ipv6_config.patch
22 URL:            http://www.eggheads.org/
23 Requires:       tcl
24 BuildRequires:  tcl-devel
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 Eggdrop is an IRC bot, written in C. If you don't know what IRC is,
29 this is probably not whatever you're looking for! Eggdrop, being a
30 bot, sits on a channel and takes protective measures: to keep the
31 channel from being taken over (in the few ways that anything CAN), to
32 recognize banished users or sites and reject them, to recognize
33 privileged users and let them gain ops, etc. Eggdrop also contains
34 many modules and scripts, for example for sending files.
35
36 %description -l pl
37 Eggdrop jest IRCowym botem napisanym w C. Eggdrop, bêd±c botem jest na
38 kanale i zajmuje siê jego ochron±: zabezpieczeniem przed przejêciem,
39 nadawaniem odpowiednich przywilejów zarejestrowanym u¿ytkownikom,
40 pilnowanie tzw. banów itp. Eggdrop poza tymi funkcjami posiada tak¿e
41 wiele dodatków, jak przesy³anie plików czy inne skrypty dla rozrywki.
42
43 %prep
44 %setup -q          -n %{name}%{version}
45 # Language packs
46 %setup -q -D -a 10 -n %{name}%{version}
47 %setup -q -D -a 11 -n %{name}%{version}
48 %setup -q -D -a 12 -n %{name}%{version}
49 %setup -q -D -a 13 -n %{name}%{version}
50 %setup -q -D -a 14 -n %{name}%{version}
51 %setup -q -D -a 15 -n %{name}%{version}
52 %setup -q -D -a 16 -n %{name}%{version}
53 %patch0 -p1
54 %patch1 -p1
55 %patch2 -p0
56
57 %build
58 export CFLAGS="%{rpmcflags}"
59 ./configure
60 %{__make} config
61 %{__make}
62
63 %install
64 rm -rf $RPM_BUILD_ROOT
65 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name}/modules,%{_datadir}/%{name},%{_mandir}/man1,%{_datadir}/%{name}/{help,scripts,language},%{_datadir}/doc/%{name}-%{version}}
66
67 %{__make} DESTDIR="$RPM_BUILD_ROOT" install
68
69 cp $RPM_BUILD_ROOT/%{name}-%{version} $RPM_BUILD_ROOT%{_bindir}/%{name}
70
71 find $RPM_BUILD_ROOT/doc -type f | egrep -v "(\.html$|\.htm$)" | xargs gzip -9nf
72 gzip -9nf $RPM_BUILD_ROOT/README $RPM_BUILD_ROOT/%{name}.conf
73
74 cp $RPM_BUILD_ROOT/doc/man1/%{name}.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1.gz
75 rm -r $RPM_BUILD_ROOT/doc/man1
76
77 cp -a $RPM_BUILD_ROOT/README.gz \
78         $RPM_BUILD_ROOT/%{name}.conf.gz \
79         $RPM_BUILD_ROOT/doc/* \
80         $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}/
81
82 cp -a $RPM_BUILD_ROOT/text/* \
83         $RPM_BUILD_ROOT/help/ \
84         $RPM_BUILD_ROOT/scripts/ \
85         $RPM_BUILD_ROOT/language/ \
86         $RPM_BUILD_ROOT%{_datadir}/%{name}/
87
88 cp -a $RPM_BUILD_ROOT/modules/* \
89         $RPM_BUILD_ROOT%{_libdir}/%{name}/modules/
90
91 %clean
92 rm -rf $RPM_BUILD_ROOT
93
94 %files
95 %defattr(644,root,root,755)
96 %doc %{_datadir}/doc/%{name}-%{version}
97 %attr(755,root,root) %{_bindir}/%{name}
98 %dir %{_libdir}/%{name}
99 %dir %{_libdir}/%{name}/modules
100 %attr(755,root,root) %{_libdir}/%{name}/modules/*.so
101 %{_datadir}/%{name}
102 %{_mandir}/man1/%{name}.1*
This page took 0.053081 seconds and 4 git commands to generate.