]> git.pld-linux.org Git - packages/gg.git/blob - gg.spec
- updated to 0.2.1pre5
[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:        1.pre5
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}pre5.tar.gz
12 Source2:        %{name}.png
13 Patch0:         %{name}-bug.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
41 %description common
42 Gadu-Gadu client released on GNU/GPL.
43
44 %description -l pl common
45 Klient Gadu-Gadu na licencji GNU/GPL.
46
47 %package X11
48 Summary:        GNU Gadu - free talking 
49 Summary(pl):    GNU Gadu - wolne gadanie 
50 Group:          Applications/Communications
51 Group(de):      Applikationen/Kommunikation
52 Group(pl):      Aplikacje/Komunikacja
53 Prereq:         %{name}-common = %{epoch}:%{version}
54 Provides:       gg = %{epoch}:%{version}-%{release}
55
56 %description X11
57 Gadu-Gadu client released on GNU/GPL.
58
59 %description -l pl X11
60 Klient Gadu-Gadu na licencji GNU/GPL. Wersja dla X11.
61
62 %package gnome
63 Summary:        GNU Gadu - free talking - GNOME version
64 Summary(pl):    GNU Gadu - wolne gadanie - wersja dla GNOME
65 Group:          Applications/Communications
66 Group(de):      Applikationen/Kommunikation
67 Group(pl):      Aplikacje/Komunikacja
68 Prereq:         %{name}-common = %{epoch}:%{version}
69 Provides:       gg = %{epoch}:%{version}-%{release}
70
71 %description gnome
72 Gadu-Gadu client released on GNU/GPL. GNOME version
73
74 %description -l pl gnome
75 Klient Gadu-Gadu na licencji GNU/GPL. Wersja dla GNOME.
76
77 %package gnome-applet
78 Summary:        GNU Gadu - free talking - GNOME dockable version
79 Summary(pl):    GNU Gadu - wolne gadanie - wersja dokowalna dla GNOME
80 Group:          Applications/Communications
81 Group(de):      Applikationen/Kommunikation
82 Group(pl):      Aplikacje/Komunikacja
83 Prereq:         %{name}-common = %{epoch}:%{version}
84 Provides:       gg = %{epoch}:%{version}-%{release}
85
86 %description gnome-applet
87 Gadu-Gadu client released on GNU/GPL. GNOME dockable version
88
89 %description -l pl gnome-applet
90 Klient Gadu-Gadu na licencji GNU/GPL. Wersja dokowalna dla gnome.
91
92 %prep
93 %setup  -q -n %{name}-%{version}pre5
94 %patch0 -p1
95
96 %build
97 LDFLAGS=" -L%{_libdir} %{rpmldflags}"
98 %configure \
99         --enable-gnome \
100         --enable-panel
101 %{__make}
102 mv src/gg src/gg_applet
103 %{__make} clean
104
105 %configure \
106         --enable-gnome 
107 %{__make}
108 mv src/gg src/gg_gnome
109 %{__make} clean
110
111 %configure
112 %{__make}
113
114 %install
115 rm -rf $RPM_BUILD_ROOT
116 install -d $RPM_BUILD_ROOT{%{_applnkdir}/Network/Communications,%{_pixmapsdir},%{_datadir}/applets/Network/}
117
118 %{__make} install DESTDIR=$RPM_BUILD_ROOT
119 install src/gg_applet $RPM_BUILD_ROOT%{_bindir}
120 install src/gg_gnome $RPM_BUILD_ROOT%{_bindir}
121
122 cat src/GnuGadu.desktop | sed -e 's/xpm$/png/' > $RPM_BUILD_ROOT%{_applnkdir}/Network/Communications/GnuGadu.desktop
123 cat src/GnuGadu.desktop | sed -e 's/xpm$/png/' | sed -e 's/Exec=gg/Exec=gg_applet\ --activate-goad-server=gg/' > $RPM_BUILD_ROOT%{_datadir}/applets/Network/GnuGadu.desktop
124
125 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
126
127 gzip -9nf README ChangeLog TODO
128
129 %clean
130 #rm -rf $RPM_BUILD_ROOT
131
132 %post gnome
133 if [ ! -e /usr/X11R6/bin/gg ]; then
134       ln -s /usr/X11R6/bin/gg_gnome /usr/X11R6/bin/gg
135 fi
136
137 %post gnome-applet
138 if [ ! -e /usr/X11R6/bin/gg ]; then
139       ln -s /usr/X11R6/bin/gg_applet /usr/X11R6/bin/gg
140 fi
141
142
143 %postun
144 if [ -L /usr/X11R6/bin/gg ]; then
145       rm -f /usr/X11R6/bin/gg
146 fi
147
148
149 %files common
150 %defattr(644,root,root,755)
151 %doc *.gz
152 %{_datadir}/gg
153 %{_pixmapsdir}/*
154
155 %files X11
156 %defattr(644,root,root,755)
157 %{_applnkdir}/Network/Communications/GnuGadu.desktop
158 %attr(755,root,root) %{_bindir}/gg
159
160 %files gnome
161 %defattr(644,root,root,755)
162 %attr(755,root,root) %{_bindir}/gg_gnome
163 %{_applnkdir}/Network/Communications/GnuGadu.desktop
164
165 %files gnome-applet
166 %defattr(644,root,root,755)
167 %attr(755,root,root) %{_bindir}/gg_applet
168 %attr(755,root,root) %{_datadir}/applets/Network/GnuGadu.desktop
169 %attr(755,root,root) %{_sysconfdir}/CORBA/servers/GnuGadu.gnorba
This page took 0.041646 seconds and 3 git commands to generate.