Author: walluck
Date: Sun Feb  4 01:27:14 2007
New Revision: 116127

Added:
   packages/cooker/epic4/current/SOURCES/epic4-2.6.tar.bz2   (contents, props 
changed)
   packages/cooker/epic4/current/SOURCES/epic4-help-20050315.tar.gz   
(contents, props changed)
Removed:
   packages/cooker/epic4/current/SOURCES/epic4-2.2.tar.bz2
   packages/cooker/epic4/current/SOURCES/ircii-EPIC4pre2.003-help.tar.bz2
Modified:
   packages/cooker/epic4/current/SPECS/epic4.spec

Log:
2.6

Added: packages/cooker/epic4/current/SOURCES/epic4-2.6.tar.bz2
==============================================================================
Binary file. No diff available.

Added: packages/cooker/epic4/current/SOURCES/epic4-help-20050315.tar.gz
==============================================================================
Binary file. No diff available.

Modified: packages/cooker/epic4/current/SPECS/epic4.spec
==============================================================================
--- packages/cooker/epic4/current/SPECS/epic4.spec      (original)
+++ packages/cooker/epic4/current/SPECS/epic4.spec      Sun Feb  4 01:27:14 2007
@@ -1,27 +1,30 @@
-%define name   epic4
-%define version 2.2
-%define        rel     2
-%define release %mkrel 3
-
-%define help_version 4pre2.003
-
-Summary:       Another popular Unix IRC client
-Name:          %{name}
-Version:       %{version}
-Release:       %{release}
-Group:                 Networking/IRC
-License:       BSD
-URL:           http://www.epicsol.org/
-Source0:       
ftp://ftp.burken.nu/pub/irc/clients/epic/EPIC4/EPIC4/EPIC4-PRODUCTION/%{name}-%{version}.tar.bz2
-Source1:       ircii-EPIC%{help_version}-help.tar.bz2
-Source2:       epic.wmconfig
-Source3:       ircII.servers
-Buildrequires: ncurses-devel termcap-devel
-BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-buildroot
-Obsoletes:     ircii-EPIC4
-Provides:      ircii-EPIC4
-Obsoletes:     epic-help epic
-Provides:      epic-help epic
+%define help_version    20050315
+
+Name:           epic4
+Version:        2.6
+Release:        %mkrel 1
+Summary:        (E)nhanced (P)rogrammable (I)RC-II (C)lient
+Group:          Networking/IRC
+License:        BSD
+URL:            http://www.epicsol.org/
+Source0:        
ftp://ftp.epicsol.org/pub/epic/EPIC4-PRODUCTION/epic4-%{version}.tar.bz2
+Source1:        
ftp://ftp.epicsol.org/pub/epic/EPIC4-PRODUCTION/epic4-help-%{help_version}.tar.gz
+Source2:        epic.wmconfig
+Source3:        ircII.servers
+Obsoletes:      ircii-EPIC4 < %{version}-%{release}
+Provides:       ircii-EPIC4 = %{version}-%{release}
+Obsoletes:      epic < %{version}-%{release}
+Provides:       epic = %{version}-%{release}
+Obsoletes:      epic-help < %{help_version}
+Provides:       epic-help = %{help_version}
+Requires(post): desktop-file-utils
+Requires(postun): desktop-file-utils
+BuildRequires:  desktop-file-utils
+BuildRequires:  libopenssl-devel
+BuildRequires:  libncurses-devel
+BuildRequires:  libtcl-devel
+BuildRequires:  perl-devel
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
 
 %description
 EPIC is the (E)nhanced (P)rogrammable (I)RC-II (C)lient.  It
@@ -29,37 +32,36 @@
 so that the user can ``chat'' with others.
 
 %prep 
-%setup -q -n %{name}-%{version} -a 1 -T -b 0
-#%patch0 -p0
-#%patch1 -p1
-#%patch2 -p1
-rm -rf `find -type d -name CVS`
+%setup -q -a 1 -T -b 0
+%{__rm} -rf `%{_bindir}/find -type d -name CVS`
 
 %build
-%configure \
-        --with-sharedir=%{_datadir} \
-        --with-libexecdir=%{_prefix}/libexec
-%make wserv_exe="%{_prefix}/libexec"
+%{configure2_5x} --with-ipv6 \
+                 --with-perl \
+                 --with-ssl \
+                 --without-socks \
+                 --without-socks5 \
+                 --with-tcl
 
+%{make} wserv_exe="%{_prefix}/libexec"
 
 %install
-rm -rf $RPM_BUILD_ROOT
-
-%{makeinstall} installhelp sharedir=$RPM_BUILD_ROOT%{_datadir} 
libexecdir=$RPM_BUILD_ROOT%{_prefix}/libexec
-
-install -m644 %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/epic
-
-# (mandrake) menu support
-install -d $RPM_BUILD_ROOT%{_menudir}
-cat << EOF > $RPM_BUILD_ROOT%{_menudir}/%{name}
+%{__rm} -rf %{buildroot}
+%{makeinstall} installhelp sharedir=%{buildroot}%{_datadir} 
libexecdir=%{buildroot}%{_prefix}/libexec
+%{__install} -m644 %{SOURCE3} %{buildroot}%{_datadir}/epic
+%{__chmod} 755 %{buildroot}%{_datadir}/epic/script/epic-crypt-gpg{,-aa}
+
+# Debian menu support
+%{__mkdir_p} %{buildroot}%{_menudir}
+%{__cat} << EOF > %{buildroot}%{_menudir}/%{name}
 ?package(epic4): longtitle="EPIC is the (E)nhanced (P)rogrammable (I)RC-II 
(C)lient." \
 command="epic" title="Epic" needs="text"  \
 section="Internet/Chat" \
-icon="irc_section.png"  xdg="true"
+icon="irc_section.png" \
+xdg="true"
 EOF
 
-mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
-cat > $RPM_BUILD_ROOT%{_datadir}/applications/mandriva-%{name}.desktop << EOF
+%{__cat} > %{name}.desktop << EOF
 [Desktop Entry]
 Name=Epic
 Comment=EPIC is the (E)nhanced (P)rogrammable (I)RC-II (C)lient.
@@ -70,17 +72,25 @@
 Categories=X-MandrivaLinux-Internet-Chat;Network;IRCClient;
 EOF
 
+%{__mkdir_p} %{buildroot}%{_datadir}/applications
+%{_bindir}/desktop-file-install --vendor="mandriva" \
+  --remove-category="Application" \
+  --add-category="X-MandrivaLinux-Internet-Chat" \
+  --dir %{buildroot}%{_datadir}/applications %{name}.desktop
+
 %post
 %{update_menus}
+%{update_desktop_database}
 
 %postun
 %{clean_menus}
+%{clean_desktop_database}
 
 %clean
-rm -rf $RPM_BUILD_ROOT
+%{__rm} -rf %{buildroot}
 
 %files
-%defattr(-,root,root)
+%defattr(-,root,root,0755)
 %doc INSTALL UPDATES KNOWNBUGS BUG_FORM doc/*
 %{_bindir}/*
 %{_prefix}/libexec/*

Reply via email to