]> git.pld-linux.org Git - packages/ekg.git/blob - ekg.spec
- massive attack, adding Source-md5
[packages/ekg.git] / ekg.spec
1 #
2 # Conditional build:
3 # _with_ioctl_daemon    - with ioctl_daemon (suid-root!)
4 # _with_python          - with python support
5 # _without_voip         - without voip support
6 #
7 Summary:        A client compatible with Gadu-Gadu
8 Summary(de):    Einen client kompatibel zu Gadu-Gadu
9 Summary(it):    Esperimentale cliente di Gadu-Gadu
10 Summary(pl):    Eksperymentalny Klient Gadu-Gadu
11 Name:           ekg
12 Version:        1.0
13 Release:        3
14 Epoch:          3
15 License:        GPL
16 Group:          Applications/Communications
17 Source0:        http://dev.null.pl/ekg/%{name}-%{version}.tar.gz
18 # Source0-md5: 53b9a686b8df126e3c44df620e05abac
19 Source1:        %{name}.conf
20 URL:            http://dev.null.pl/ekg/
21 BuildRequires:  autoconf
22 BuildRequires:  automake
23 %{?!_without_voip:BuildRequires: libgsm-devel}
24 BuildRequires:  ncurses-devel
25 BuildRequires:  openssl-devel >= 0.9.7
26 BuildRequires:  %{_bindir}/perl
27 %{?_with_python:BuildRequires: python-devel}
28 BuildRequires:  readline-devel
29 BuildRequires:  zlib-devel
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %description
33 A client compatible with Gadu-Gadu.
34
35 %description -l de
36 Einen client kompatibel zu Gadu-Gadu.
37
38 %description -l it
39 Esperimentale cliente di Gadu-Gadu.
40
41 %description -l pl
42 Eksperymentalny Klient Gadu-Gadu.
43
44 %package -n libgadu
45 Summary:        libgadu library
46 Summary(pl):    Biblioteka libgadu
47 Group:          Libraries
48 Obsoletes:      libgg
49 License:        LGPL
50
51 %description -n libgadu
52 libgadu is intended to make it easy to add Gadu-Gadu communication
53 support to your software.
54
55 %description -n libgadu -l de
56 Mit libgadu ist es Ihnen möglich auf einfache Weise Gadu-Gadu
57 Kommunikations-Unterstützung in Ihre Software einzubinden.
58
59 %description -n libgadu -l pl
60 libgadu umo¿liwia ³atwe dodanie do ró¿nych aplikacji komunikacji
61 bazuj±cej na protokole Gadu-Gadu.
62
63 %package -n libgadu-devel
64 Summary:        libgadu library development
65 Summary(pl):    Czê¶æ biblioteki libgadu dla programistów
66 Group:          Development/Libraries
67 Requires:       libgadu = %{version}
68 Obsoletes:      libgg-devel
69 License:        LGPL
70
71 %description -n libgadu-devel
72 The libgadu-devel package contains the header files and some
73 documentation needed to develop application with libgadu.
74
75 %description -n libgadu-devel -l de
76 Das libgadu-devel Paket enthält Header-Files (Kopfzeilenordner) und
77 die Dokumentation die Sie benötigen um mit libgadu Anwendungen zu
78 entwickeln.
79
80 %description -n libgadu-devel -l pl
81 Pakiet libgadu-devel zawiera pliki nag³ówkowe i dokumentacjê,
82 potrzebne do kompilowania aplikacji korzystaj±cych z libgadu.
83
84 %package -n libgadu-static
85 Summary:        Static libgadu Library
86 Summary(pl):    Statyczna biblioteka libgadu
87 Group:          Development/Libraries
88 Requires:       libgadu-devel = %{version}
89 Obsoletes:      libgg-static
90 License:        LGPL
91
92 %description -n libgadu-static
93 Static libgadu library.
94
95 %description -n libgadu-static -l de
96 Statisches libgadu Archiv.
97
98 %description -n libgadu-static -l pl
99 Statyczna biblioteka libgadu.
100
101 %prep
102 %setup -q 
103
104 %build
105 %{__aclocal}
106 %{__autoheader}
107 %{__autoconf}
108 %configure \
109         --enable-shared \
110         --enable-static \
111         --with-pthread \
112         %{?_with_python:--with-python} \
113         %{?_without_voip:--without-libgsm} \
114         %{?!_with_ioctl_daemon:--disable-ioctld}
115 %{__make}
116
117 %if %{?_with_ioctl_daemon:1}0
118 cd src 
119 %{__make} ioctld
120 cd ..
121 %endif
122
123 cd docs/api
124 ./make.pl
125 cd ..
126
127 %install
128 rm -rf $RPM_BUILD_ROOT
129 install -d $RPM_BUILD_ROOT%{_sysconfdir}
130
131 %{__make} install DESTDIR=$RPM_BUILD_ROOT
132
133 # From 20020310 can be replaced by ,,make install-ekl2''
134 install contrib/ekl2.pl $RPM_BUILD_ROOT%{_bindir}
135 install contrib/ekl2.sh $RPM_BUILD_ROOT%{_bindir}
136 install docs/ekl2.man.pl $RPM_BUILD_ROOT%{_mandir}/pl/man1/ekl2.1
137 install docs/ekl2.man.en $RPM_BUILD_ROOT%{_mandir}/man1/ekl2.1
138 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/
139
140 # For libgadu-devel
141
142 rm examples/Makefile examples/Makefile.in examples/.cvsignore
143
144 %if %{?_with_ioctl_daemon:1}%{?!_with_ioctl_daemon:0}
145 install src/ioctld $RPM_BUILD_ROOT%{_bindir}
146 %endif
147
148 cd $RPM_BUILD_ROOT%{_libdir}
149 ln -sf libgadu.so.*.* libgadu.so
150
151 %clean
152 rm -rf $RPM_BUILD_ROOT
153
154 %post   -n libgadu -p /sbin/ldconfig
155 %postun -n libgadu -p /sbin/ldconfig
156
157 %files
158 %defattr(644,root,root,755)
159 %doc docs/{7thguard,dcc,files,gdb,python,sim,themes,ui-ncurses,vars,voip}.txt
160 %doc ChangeLog docs/{FAQ,README,TODO,ULOTKA} docs/emoticons.{ansi,sample}
161 %attr(755,root,root) %{_bindir}/e*
162 %{?_with_ioctl_daemon:%attr(4755,root,root) %{_bindir}/ioctld}
163 %attr(644,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/*.conf
164 %{_datadir}/ekg
165 %{_mandir}/man1/*
166 %lang(pl) %{_mandir}/pl/man1/*
167
168 %files -n libgadu
169 %defattr(644,root,root,755)
170 %attr(755,root,root) %{_libdir}/libgadu.so.*.*
171
172 %files -n libgadu-devel
173 %defattr(644,root,root,755)
174 %doc docs/{7thguard,api,ui,devel-hints,przenosny-kod}.txt docs/protocol.html docs/api/{functions,index,types}.html
175 %doc ChangeLog docs/{README,TODO} examples
176 %{_libdir}/libgadu.so
177 %{_includedir}/libgadu.h
178 %{_includedir}/libgadu-config.h
179 %{_pkgconfigdir}/*
180
181 %files -n libgadu-static
182 %defattr(644,root,root,755)
183 %attr(644,root,root) %{_libdir}/libgadu.a
This page took 0.055106 seconds and 4 git commands to generate.