~ubuntu-branches/ubuntu/maverick/xchat/maverick

« back to all changes in this revision

Viewing changes to xchat.spec

  • Committer: Bazaar Package Importer
  • Author(s): Lorenzo De Liso
  • Date: 2010-06-21 22:47:10 UTC
  • mfrom: (2.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100621224710-9t1iyiglri330pss
Tags: 2.8.8-1ubuntu1
* Merge from debian unstable (LP: #597042), remaining changes:
  - debian/patches:
    + series: Refreshed.
    + 01_serverlist.patch: Numerous changes to default serverlist.
    + 02_ubuntu_default_server.patch: select "Ubuntu servers" by default.
    + 37_lpi.patch: Add launchpad integration.
    + 38_autoconf.patch: Autoconf modifications for launchpad integration.
    + 45_brand_ctcp_version.patch: Add Ubuntu brand to CTCP version response.
    + 70_notification_strings_shorten.patch: Shorten notification strings.
  - debian/control:
    + Build-depend on libgtk2.0-dev (>= 2.10.0).
    + Build-depend on liblaunchpad-integration-dev.
    + Remove conflict/replaces on xchat-gnome.
    + Updated Maintainer field to match Ubuntu Developers.
  - debian/rules:
    + Make build independent of the python version.
  - debian/patches/45_ctcp_version_less_information.dpatch: 
    + Renamed to debian/patches/45_brand_ctcp_version.patch
    + Added short description.
* Converted all patches to quilt, as in debian quilt has been
  adopted, all old dpatch patches have been renamed with the 
  *.patch extension.
* Dropped changes:
  - 71_notification_icon_change.patch: can't be applied

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
## RPM spec file designed for Fedora Core 8,9 ##
2
 
 
3
 
Summary: Graphical IRC (chat) client
4
 
Summary(fr): Client IRC (chat) avec interface graphique
5
 
Summary(de): IRC-Client (Chat) mit grafischer Oberfläche
6
 
Name: xchat
7
 
Version: 2.8.6
8
 
Release: 0
9
 
Epoch: 1
10
 
Group: Applications/Internet
11
 
License: GPL
12
 
URL: http://xchat.org
13
 
Source: http://xchat.org/files/source/2.8/xchat-%{version}.tar.bz2
14
 
Buildroot: %{_tmppath}/%{name}-%{version}-root
15
 
Requires: gtk2 openssl
16
 
BuildRequires: gettext openssl-devel gtk2-devel dbus-devel
17
 
 
18
 
%description
19
 
A GUI IRC client with DCC file transfers, C plugin interface, Perl
20
 
and Python scripting capability, mIRC color, shaded transparency,
21
 
tabbed channels and more.
22
 
 
23
 
%package perl
24
 
Summary: XChat Perl plugin
25
 
Group: Applications/Internet
26
 
Requires: xchat >= 2.0.9
 
1
%define _default_patch_fuzz 2
 
2
%define gconf_version 2.14
 
3
 
 
4
Summary:   A popular and easy to use graphical IRC (chat) client
 
5
Name:      xchat
 
6
Version:   2.8.8
 
7
Release:   0%{?dist}
 
8
Epoch:     1
 
9
Group:     Applications/Internet
 
10
License:   GPLv2+
 
11
URL:       http://www.xchat.org
 
12
Source:    http://www.xchat.org/files/source/2.8/xchat-%{version}.tar.bz2
 
13
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
14
 
 
15
# Patches 0-9 reserved for official xchat.org patches
 
16
 
 
17
BuildRequires: perl perl(ExtUtils::Embed) python-devel openssl-devel pkgconfig, tcl-devel
 
18
BuildRequires: GConf2-devel
 
19
BuildRequires: dbus-devel >= 0.60, dbus-glib-devel >= 0.60
 
20
BuildRequires: glib2-devel >= 2.10.0, gtk2-devel >= 2.10.0, bison >= 1.35
 
21
BuildRequires: gettext /bin/sed
 
22
BuildRequires: libtool
 
23
BuildRequires: libsexy-devel
 
24
BuildRequires: desktop-file-utils >= 0.10
 
25
# For gconftool-2:
 
26
Requires(post): GConf2 >= %{gconf_version}
 
27
Requires(preun): GConf2 >= %{gconf_version}
 
28
 
27
29
# Ensure that a compatible libperl is installed
28
30
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
29
 
%description perl
30
 
Provides Perl scripting capability to XChat.
31
 
 
32
 
%package python
33
 
Summary: XChat Python plugin
34
 
Group: Applications/Internet
35
 
Requires: xchat >= 2.0.9
36
 
Requires: python >= 2.3.0
37
 
%description python
38
 
Provides Python scripting capability to XChat.
 
31
 
 
32
Provides: xchat-perl = %{epoch}:%{version}-%{release}
 
33
Obsoletes: xchat-perl < %{epoch}:%{version}-%{release}
 
34
Provides: xchat-python = %{epoch}:%{version}-%{release}
 
35
Obsoletes: xchat-python < %{epoch}:%{version}-%{release}
 
36
 
 
37
%description
 
38
X-Chat is an easy to use graphical IRC chat client for the X Window System.
 
39
It allows you to join multiple IRC channels (chat rooms) at the same time, 
 
40
talk publicly, private one-on-one conversations etc. Even file transfers
 
41
are possible.
 
42
 
 
43
This includes the plugins to run the Perl and Python scripts.
39
44
 
40
45
%package tcl
41
 
Summary: XChat TCL plugin
 
46
Summary: Tcl script plugin for X-Chat
42
47
Group: Applications/Internet
43
 
Requires: xchat >= 2.0.0
44
 
Requires: tcl
 
48
Requires: %{name} = %{epoch}:%{version}-%{release}
45
49
%description tcl
46
 
Provides TCL scripting capability to XChat.
 
50
This package contains the X-Chat plugin providing the Tcl scripting interface.
47
51
 
48
52
%prep
49
53
%setup -q
50
54
 
51
55
%build
52
 
%configure --disable-dependency-tracking
53
 
make
 
56
# Remove CVS files from source dirs so they're not installed into doc dirs.
 
57
find . -name CVS -type d | xargs rm -rf
 
58
 
 
59
export CFLAGS="$RPM_OPT_FLAGS $(perl -MExtUtils::Embed -e ccopts)"
 
60
export LDFLAGS=$(perl -MExtUtils::Embed -e ldopts)
 
61
 
 
62
%configure --disable-textfe \
 
63
           --enable-gtkfe \
 
64
           --enable-openssl \
 
65
           --enable-python \
 
66
           --enable-tcl=%{_libdir} \
 
67
           --enable-ipv6 \
 
68
           --enable-spell=libsexy \
 
69
           --enable-shm
 
70
 
 
71
# gtkspell breaks Input Method commit with ENTER
 
72
 
 
73
make %{?_smp_mflags}
 
74
 
54
75
 
55
76
%install
56
 
rm -rf $RPM_BUILD_ROOT
57
 
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT%{_datadir}/pixmaps $RPM_BUILD_ROOT%{_libdir}/xchat/plugins
58
 
%makeinstall
59
 
%{__mkdir_p} $RPM_BUILD_ROOT%{_libdir}/xchat/plugins
60
 
strip -R .note -R .comment $RPM_BUILD_ROOT%{_libdir}/perl.so
61
 
strip -R .note -R .comment $RPM_BUILD_ROOT%{_libdir}/python.so
62
 
strip -R .note -R .comment $RPM_BUILD_ROOT%{_libdir}/tcl.so
63
 
mv $RPM_BUILD_ROOT%{_libdir}/perl.so $RPM_BUILD_ROOT%{_libdir}/xchat/plugins
64
 
mv $RPM_BUILD_ROOT%{_libdir}/python.so $RPM_BUILD_ROOT%{_libdir}/xchat/plugins
65
 
mv $RPM_BUILD_ROOT%{_libdir}/tcl.so $RPM_BUILD_ROOT%{_libdir}/xchat/plugins
66
 
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
67
 
 
68
 
%find_lang %name
 
77
%{__rm} -rf $RPM_BUILD_ROOT
 
78
%{__make} install DESTDIR=$RPM_BUILD_ROOT GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
 
79
 
 
80
# Get rid of libtool archives
 
81
%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/xchat/plugins/*.la
 
82
 
 
83
# Install the .desktop file properly
 
84
%{__rm} -f $RPM_BUILD_ROOT%{_datadir}/applications/xchat.desktop
 
85
desktop-file-install --vendor="" \
 
86
  --dir $RPM_BUILD_ROOT%{_datadir}/applications \
 
87
  --add-category=IRCClient \
 
88
  --add-category=GTK xchat.desktop
 
89
 
 
90
%find_lang %{name}
 
91
 
 
92
# do not Provide plugins .so
 
93
%define _use_internal_dependency_generator 0
 
94
%{__cat} << \EOF > %{name}.prov
 
95
#!%{_buildshell}
 
96
%{__grep} -v %{_docdir} - | %{__find_provides} $* \
 
97
        | %{__sed} '/\.so\(()(64bit)\)\?$/d'
 
98
EOF
 
99
%define __find_provides %{_builddir}/%{name}-%{version}/%{name}.prov
 
100
%{__chmod} +x %{__find_provides}
 
101
 
69
102
 
70
103
%post
71
104
# Install schema
72
105
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
73
 
SCHEMAS="apps_xchat_url_handler.schemas"
74
 
for S in $SCHEMAS; do
75
 
  gconftool-2 --makefile-install-rule /etc/gconf/schemas/$S > /dev/null
76
 
done
77
 
unset GCONF_CONFIG_SOURCE
 
106
gconftool-2 --makefile-install-rule /etc/gconf/schemas/apps_xchat_url_handler.schemas >& /dev/null || :
 
107
 
 
108
 
 
109
%pre
 
110
if [ "$1" -gt 1 ]; then
 
111
  export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
 
112
  gconftool-2 --makefile-uninstall-rule /etc/gconf/schemas/apps_xchat_url_handler.schemas >& /dev/null || :
 
113
fi
 
114
 
 
115
%preun
 
116
if [ "$1" -eq 0 ]; then
 
117
  export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
 
118
  gconftool-2 --makefile-uninstall-rule /etc/gconf/schemas/apps_xchat_url_handler.schemas >& /dev/null || :
 
119
fi
 
120
 
 
121
%clean
 
122
%{__rm} -rf $RPM_BUILD_ROOT
78
123
 
79
124
%files -f %{name}.lang
80
125
%defattr(-,root,root)
81
 
%doc README ChangeLog faq.html plugins/plugin20.html plugins/perl/xchat2-perldocs.html
 
126
%doc README ChangeLog
 
127
%doc plugins/plugin20.html plugins/perl/xchat2-perl.html
82
128
%{_bindir}/xchat
 
129
%dir %{_libdir}/xchat
 
130
%dir %{_libdir}/xchat/plugins
 
131
%{_libdir}/xchat/plugins/perl.so
 
132
%{_libdir}/xchat/plugins/python.so
83
133
%{_datadir}/applications/xchat.desktop
84
 
%{_datadir}/pixmaps/xchat.png
 
134
%{_datadir}/pixmaps/*
85
135
%{_sysconfdir}/gconf/schemas/apps_xchat_url_handler.schemas
86
 
 
87
 
%files perl
88
 
%{_libdir}/xchat/plugins/perl.so
89
 
 
90
 
%files python
91
 
%{_libdir}/xchat/plugins/python.so
 
136
%{_datadir}/dbus-1/services/org.xchat.service.service
92
137
 
93
138
%files tcl
 
139
%defattr(-,root,root)
94
140
%{_libdir}/xchat/plugins/tcl.so
95
141
 
96
 
%clean
97
 
rm -rf $RPM_BUILD_ROOT