]> git.pld-linux.org Git - packages/gg.git/blob - gg.spec
- release 4.
[packages/gg.git] / gg.spec
1 Summary:        GNU Gadu - free talking
2 Summary(pl):    GNU Gadu - wolne gadanie
3 Name:           gg
4 Version:        0.2.1
5 Release:        4
6 Epoch:          4
7 License:        GPL
8 Group:          Applications/Communications
9 Group(de):      Applikationen/Kommunikation
10 Group(pl):      Aplikacje/Komunikacja
11 Source0:        http://netkrab.slackware.pl/gg/%{name}-%{version}.tar.gz
12 Source2:        %{name}.png
13 Patch0:         %{name}-save-window-size.patch
14 Icon:           gg.xpm
15 URL:            http://netkrab.slackware.pl/gg/
16 BuildRequires:  gtk+-devel > 1.2.8
17 BuildRequires:  esound-devel > 0.2.7
18 BuildRequires:  gnome-libs-devel 
19 BuildRequires:  gnome-core-devel 
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %define         _prefix         /usr/X11R6
23 %define         _mandir         %{_prefix}/man
24 %define         _sysconfdir     /etc/X11/GNOME
25
26 %description
27 Gadu-Gadu client released on GNU/GPL.
28
29 %description -l pl
30 Klient Gadu-Gadu na licencji GNU/GPL.
31
32 %package common
33 Summary:        GNU Gadu - free talking - common files
34 Summary(pl):    GNU Gadu - wolne gadanie - wspólne pliki
35 Group:          Applications/Communications
36 Group(de):      Applikationen/Kommunikation
37 Group(pl):      Aplikacje/Komunikacja
38 Obsoletes:      gg =< 0.2.0
39
40 %description common
41 Gadu-Gadu client released on GNU/GPL.
42
43 %description common -l pl
44 Klient Gadu-Gadu na licencji GNU/GPL.
45
46 %package X11
47 Summary:        GNU Gadu - free talking 
48 Summary(pl):    GNU Gadu - wolne gadanie 
49 Group:          Applications/Communications
50 Group(de):      Applikationen/Kommunikation
51 Group(pl):      Aplikacje/Komunikacja
52 Prereq:         %{name}-common = %{epoch}:%{version}
53 Provides:       gg = %{epoch}:%{version}-%{release}
54
55 %description X11
56 Gadu-Gadu client released on GNU/GPL.
57
58 %description X11 -l pl
59 Klient Gadu-Gadu na licencji GNU/GPL. Wersja dla X11.
60
61 %package gnome
62 Summary:        GNU Gadu - free talking - GNOME version
63 Summary(pl):    GNU Gadu - wolne gadanie - wersja dla GNOME
64 Group:          Applications/Communications
65 Group(de):      Applikationen/Kommunikation
66 Group(pl):      Aplikacje/Komunikacja
67 Prereq:         %{name}-common = %{epoch}:%{version}
68 Provides:       gg = %{epoch}:%{version}-%{release}
69
70 %description gnome
71 Gadu-Gadu client released on GNU/GPL. GNOME version
72
73 %description gnome -l pl
74 Klient Gadu-Gadu na licencji GNU/GPL. Wersja dla GNOME.
75
76 %package gnome-applet
77 Summary:        GNU Gadu - free talking - GNOME dockable version
78 Summary(pl):    GNU Gadu - wolne gadanie - wersja dokowalna dla GNOME
79 Group:          Applications/Communications
80 Group(de):      Applikationen/Kommunikation
81 Group(pl):      Aplikacje/Komunikacja
82 Prereq:         %{name}-common = %{epoch}:%{version}
83 Provides:       gg = %{epoch}:%{version}-%{release}
84
85 %description gnome-applet
86 Gadu-Gadu client released on GNU/GPL. GNOME dockable version
87
88 %description gnome-applet -l pl
89 Klient Gadu-Gadu na licencji GNU/GPL. Wersja dokowalna dla gnome.
90
91 %prep
92 %setup -q -n %{name}-%{version}
93 %patch0 -p1
94
95 %build
96 LDFLAGS=" -L%{_libdir} %{rpmldflags}"
97 %configure \
98         --enable-gnome \
99         --enable-panel
100 %{__make}
101 mv -f src/gg src/gg_applet
102 %{__make} clean
103
104 %configure \
105         --enable-gnome 
106 %{__make}
107 mv -f src/gg src/gg_gnome
108 %{__make} clean
109
110 %configure
111 %{__make}
112
113 %install
114 rm -rf $RPM_BUILD_ROOT
115 install -d $RPM_BUILD_ROOT{%{_applnkdir}/Network/Communications,%{_pixmapsdir},%{_datadir}/applets/Network/}
116
117 %{__make} install DESTDIR=$RPM_BUILD_ROOT
118 install src/gg_applet $RPM_BUILD_ROOT%{_bindir}
119 install src/gg_gnome $RPM_BUILD_ROOT%{_bindir}
120
121 sed -e 's/xpm$/png/' src/GnuGadu.desktop \
122         > $RPM_BUILD_ROOT%{_applnkdir}/Network/Communications/GnuGadu.desktop
123 sed -e 's/xpm$/png/' -e 's/Exec=gg/Exec=gg_applet\ --activate-goad-server=gg/' \
124         src/GnuGadu.desktop > $RPM_BUILD_ROOT%{_datadir}/applets/Network/GnuGadu.desktop
125
126 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
127
128 gzip -9nf README ChangeLog TODO
129
130 %clean
131 rm -rf $RPM_BUILD_ROOT
132
133 %post gnome
134 if [ ! -e /usr/X11R6/bin/gg ]; then
135         ln -sf /usr/X11R6/bin/gg_gnome /usr/X11R6/bin/gg
136 fi
137
138 %post gnome-applet
139 if [ ! -e /usr/X11R6/bin/gg ]; then
140         ln -sf /usr/X11R6/bin/gg_applet /usr/X11R6/bin/gg
141 fi
142
143 %postun
144 if [ -L /usr/X11R6/bin/gg ]; then
145         rm -f /usr/X11R6/bin/gg
146 fi
147
148 %files common
149 %defattr(644,root,root,755)
150 %doc *.gz
151 %{_datadir}/gg
152 %{_pixmapsdir}/*
153
154 %files X11
155 %defattr(644,root,root,755)
156 %{_applnkdir}/Network/Communications/GnuGadu.desktop
157 %attr(755,root,root) %{_bindir}/gg
158
159 %files gnome
160 %defattr(644,root,root,755)
161 %attr(755,root,root) %{_bindir}/gg_gnome
162 %{_applnkdir}/Network/Communications/GnuGadu.desktop
163
164 %files gnome-applet
165 %defattr(644,root,root,755)
166 %attr(755,root,root) %{_bindir}/gg_applet
167 %attr(755,root,root) %{_datadir}/applets/Network/GnuGadu.desktop
168 %attr(755,root,root) %{_sysconfdir}/CORBA/servers/GnuGadu.gnorba
This page took 0.036336 seconds and 4 git commands to generate.