Группа :: Сети/IRC
Пакет: kvirc
Главная Изменения Спек Патчи Загрузить Bugs and FR
%undefine __libtoolize
%define qtdir /usr/lib/qt3/
%define _optlevel s
Name: kvirc
%define major 3
%define minor 2
%define bugfix 6
%define rlz alt0.M24.1
%define beta %nil
Version: %major.%minor.%bugfix
%if "%beta" == "%nil"
Release: %rlz
%else
Release: %rlz.%beta
%endif
Group: Networking/IRC
Summary: KDE Enhanced Visual IRC Client
Url: http://www.kvirc.net/
License: GPL
Requires: kdelibs >= %{get_version kdelibs}
Requires: url_handler
%if "%beta" == "%nil"
Source0: %name-%version.tar.bz2
%else
Source0: %name-%version-%beta.tar.bz2
%endif
Patch1: kvirc-3.2.1-alt-browser.patch
#
Patch3: kvirc-3.2.1-alt-fix-linking.patch
Patch4: kvirc-3.2.1-alt-disable-rpath.patch
Patch5: kvirc-3.2.2-click-dock-show-minimized.patch
# Automatically added by buildreq on Sun Aug 28 2005
#BuildRequires: XFree86-devel XFree86-libs fontconfig freetype2 gcc-c++ glib2 kdelibs-devel libarts-devel libaudiofile-devel libqt3-devel libssl-devel libstdc++-devel perl-devel
BuildRequires: XFree86-devel gcc-c++
BuildRequires: glib2 kdelibs-devel libarts-devel libaudiofile-devel libqt3-devel
BuildRequires: libssl-devel libstdc++-devel perl-devel libgsm-devel
%description
KVIrc is an enchanced visual irc client. Features:
- MDI interface
- CTCP's
- DCC CHAT SEND/GET
- Individual queries
- Scripting
- Aliases
- Events (remote)
- Complete color,background and behavior configuration
- IPv6 support
%package devel
Summary: Header files for KVirc library
Group: Development/KDE and QT
Requires: %name = %version-%release
%description devel
Header files for KVirc library.
%prep
%set_verify_elf_method rpath=relaxed
%if "%beta" == "%nil"
%setup -q -n %name-%version
%else
%setup -q -n %name-%version-%beta
%endif
#%patch1 -p1
#
%patch3 -p1
%patch4 -p1
#%patch5 -p1
#%__subst "s/\(Wl,--no-undefined\)/-Wl,--warn-unresolved-symbols \1/g" admin/acinclude.m4.in
#%__subst "s/\-lkdeui/-lkdeui -lpthread/g" admin/acinclude.m4.in
#%__subst "s/\-lkdecore/-lkdecore -lpthread/g" admin/acinclude.m4.in
#%__subst "s/\-lkdefx/-lkdefx -lpthread/g" admin/acinclude.m4.in
#%__subst 's,\.la,\.so,' admin/acinclude.m4.in
#%make -f admin/Makefile.common cvs
#./autogen.sh --bundled-libtool
%build
export QTDIR=%qtdir
#export LDFLAGS="-L%qtdir/lib -L%_x11libdir"
%configure \
--disable-rpath \
--disable-static \
--enable-shared \
--enable-dependency-tracking \
--enable-optimisation=%_optlevel \
%ifarch %ix86
--with-ix86-asm \
%endif
--enable-perl \
--with-x \
--with-kde-library-dir=%_libdir
%make_build
%install
%make install \
DESTDIR=%buildroot \
applnkdir=%_datadir/applications
if ! [ -d %buildroot/%_libdir/%name/%major.%minor/modules ]
then
%__mkdir_p %buildroot/%_libdir/%name/%major.%minor
%__mv %buildroot/%_datadir/%name/%major.%minor/modules %buildroot/%_libdir/%name/%major.%minor/
ln -s ../../../../%_libdir/%name/%major.%minor/modules %buildroot/%_datadir/%name/%major.%minor/modules
fi
%__mv %buildroot/%_datadir/services/irc.protocol %buildroot/%_datadir/services/%{name}_irc.protocol
%__mv %buildroot/%_datadir/services/irc6.protocol %buildroot/%_datadir/services/%{name}_irc6.protocol
%__install -d 644 %buildroot%_menudir
%__cat << EOF > %buildroot%_menudir/%name
?package(%name): needs=x11 icon="%name.png" \\
section="Networking/Chat" title="KVirc" \\
longtitle="IRC Client for KDE3.x" \\
command=%_bindir/%name
EOF
%post
%update_menus
%post_ldconfig
%postun
%clean_menus
%postun_ldconfig
%files
%doc README TODO doc/scriptexamples/{*.kvs,*/*.kvs,*/*.png}
%attr(755,root,root) %_bindir/kvi_*
%attr(755,root,root) %_bindir/kvirc
%_libdir/lib*.so*
%_menudir/%name
%dir %_libdir/kvirc
%dir %_libdir/kvirc/%major.%minor
%dir %_libdir/kvirc/%major.%minor/modules
%_libdir/kvirc/%major.%minor/modules/caps
%_libdir/kvirc/%major.%minor/modules/*.so
#%_libdir/kvirc/%major.%minor/modules/*.la
%_datadir/services/*
%_datadir/mimelnk/text/x-kvs.desktop
%_iconsdir/hicolor/*/apps/%name.*
%_iconsdir/hicolor/*/mimetypes/kvs.*
%_datadir/applications/%name.desktop
%dir %_datadir/kvirc
%dir %_datadir/kvirc/%major.%minor
%_datadir/kvirc/%major.%minor/config
%_datadir/kvirc/%major.%minor/defscript
%_datadir/kvirc/%major.%minor/pics
%_datadir/kvirc/%major.%minor/help
%_datadir/kvirc/%major.%minor/locale
%_datadir/kvirc/%major.%minor/license
%_datadir/kvirc/%major.%minor/modules
%_datadir/kvirc/%major.%minor/msgcolors
%_datadir/kvirc/%major.%minor/themes
%_man1dir/*
%files devel
%attr(755,root,root) %_bindir/kvirc-config
%_includedir/%name
%changelog
…
Полный changelog можно просмотреть здесь
%define qtdir /usr/lib/qt3/
%define _optlevel s
Name: kvirc
%define major 3
%define minor 2
%define bugfix 6
%define rlz alt0.M24.1
%define beta %nil
Version: %major.%minor.%bugfix
%if "%beta" == "%nil"
Release: %rlz
%else
Release: %rlz.%beta
%endif
Group: Networking/IRC
Summary: KDE Enhanced Visual IRC Client
Url: http://www.kvirc.net/
License: GPL
Requires: kdelibs >= %{get_version kdelibs}
Requires: url_handler
%if "%beta" == "%nil"
Source0: %name-%version.tar.bz2
%else
Source0: %name-%version-%beta.tar.bz2
%endif
Patch1: kvirc-3.2.1-alt-browser.patch
#
Patch3: kvirc-3.2.1-alt-fix-linking.patch
Patch4: kvirc-3.2.1-alt-disable-rpath.patch
Patch5: kvirc-3.2.2-click-dock-show-minimized.patch
# Automatically added by buildreq on Sun Aug 28 2005
#BuildRequires: XFree86-devel XFree86-libs fontconfig freetype2 gcc-c++ glib2 kdelibs-devel libarts-devel libaudiofile-devel libqt3-devel libssl-devel libstdc++-devel perl-devel
BuildRequires: XFree86-devel gcc-c++
BuildRequires: glib2 kdelibs-devel libarts-devel libaudiofile-devel libqt3-devel
BuildRequires: libssl-devel libstdc++-devel perl-devel libgsm-devel
%description
KVIrc is an enchanced visual irc client. Features:
- MDI interface
- CTCP's
- DCC CHAT SEND/GET
- Individual queries
- Scripting
- Aliases
- Events (remote)
- Complete color,background and behavior configuration
- IPv6 support
%package devel
Summary: Header files for KVirc library
Group: Development/KDE and QT
Requires: %name = %version-%release
%description devel
Header files for KVirc library.
%prep
%set_verify_elf_method rpath=relaxed
%if "%beta" == "%nil"
%setup -q -n %name-%version
%else
%setup -q -n %name-%version-%beta
%endif
#%patch1 -p1
#
%patch3 -p1
%patch4 -p1
#%patch5 -p1
#%__subst "s/\(Wl,--no-undefined\)/-Wl,--warn-unresolved-symbols \1/g" admin/acinclude.m4.in
#%__subst "s/\-lkdeui/-lkdeui -lpthread/g" admin/acinclude.m4.in
#%__subst "s/\-lkdecore/-lkdecore -lpthread/g" admin/acinclude.m4.in
#%__subst "s/\-lkdefx/-lkdefx -lpthread/g" admin/acinclude.m4.in
#%__subst 's,\.la,\.so,' admin/acinclude.m4.in
#%make -f admin/Makefile.common cvs
#./autogen.sh --bundled-libtool
%build
export QTDIR=%qtdir
#export LDFLAGS="-L%qtdir/lib -L%_x11libdir"
%configure \
--disable-rpath \
--disable-static \
--enable-shared \
--enable-dependency-tracking \
--enable-optimisation=%_optlevel \
%ifarch %ix86
--with-ix86-asm \
%endif
--enable-perl \
--with-x \
--with-kde-library-dir=%_libdir
%make_build
%install
%make install \
DESTDIR=%buildroot \
applnkdir=%_datadir/applications
if ! [ -d %buildroot/%_libdir/%name/%major.%minor/modules ]
then
%__mkdir_p %buildroot/%_libdir/%name/%major.%minor
%__mv %buildroot/%_datadir/%name/%major.%minor/modules %buildroot/%_libdir/%name/%major.%minor/
ln -s ../../../../%_libdir/%name/%major.%minor/modules %buildroot/%_datadir/%name/%major.%minor/modules
fi
%__mv %buildroot/%_datadir/services/irc.protocol %buildroot/%_datadir/services/%{name}_irc.protocol
%__mv %buildroot/%_datadir/services/irc6.protocol %buildroot/%_datadir/services/%{name}_irc6.protocol
%__install -d 644 %buildroot%_menudir
%__cat << EOF > %buildroot%_menudir/%name
?package(%name): needs=x11 icon="%name.png" \\
section="Networking/Chat" title="KVirc" \\
longtitle="IRC Client for KDE3.x" \\
command=%_bindir/%name
EOF
%post
%update_menus
%post_ldconfig
%postun
%clean_menus
%postun_ldconfig
%files
%doc README TODO doc/scriptexamples/{*.kvs,*/*.kvs,*/*.png}
%attr(755,root,root) %_bindir/kvi_*
%attr(755,root,root) %_bindir/kvirc
%_libdir/lib*.so*
%_menudir/%name
%dir %_libdir/kvirc
%dir %_libdir/kvirc/%major.%minor
%dir %_libdir/kvirc/%major.%minor/modules
%_libdir/kvirc/%major.%minor/modules/caps
%_libdir/kvirc/%major.%minor/modules/*.so
#%_libdir/kvirc/%major.%minor/modules/*.la
%_datadir/services/*
%_datadir/mimelnk/text/x-kvs.desktop
%_iconsdir/hicolor/*/apps/%name.*
%_iconsdir/hicolor/*/mimetypes/kvs.*
%_datadir/applications/%name.desktop
%dir %_datadir/kvirc
%dir %_datadir/kvirc/%major.%minor
%_datadir/kvirc/%major.%minor/config
%_datadir/kvirc/%major.%minor/defscript
%_datadir/kvirc/%major.%minor/pics
%_datadir/kvirc/%major.%minor/help
%_datadir/kvirc/%major.%minor/locale
%_datadir/kvirc/%major.%minor/license
%_datadir/kvirc/%major.%minor/modules
%_datadir/kvirc/%major.%minor/msgcolors
%_datadir/kvirc/%major.%minor/themes
%_man1dir/*
%files devel
%attr(755,root,root) %_bindir/kvirc-config
%_includedir/%name
%changelog
…
Полный changelog можно просмотреть здесь