%define name xnc %define version 4.4.7 %define release 3mdk Name: %name Summary: X Northern Captain - X filemanager with many functions Version: %version Release: %release Source0: %{name}-%{version}.src.tar.bz2 Url: http://www.xnc.dubna.su Group: File tools BuildRoot: %_tmppath/%{name}-buildroot License: GPL %description This program allows the user to navigate through many filesystems, manipulate files, archives, execute commands in builtin shell, view and edit images, text and binary files... %prep rm -rf $RPM_BUILD_ROOT %setup %build CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" LDFLAGS=-s ./configure \ --prefix=%{_prefix} --with-x #make %make %install install -d $RPM_BUILD_ROOT/%{_prefix}/{bin,share/man/man1,lib/xnc} install bzip.xnc ives/iedit groups.xnc gzip.xnc ives/ives \ rpm.xnc users.xnc ives/iview xjroot/xjpegroot xsetup/xncsetup launch/xnlaunch \ zips.xnc resloader/xncloader $RPM_BUILD_ROOT%_bindir install nc "$RPM_BUILD_ROOT"/%{_bindir}/xnc install plugins/five/libxncfive.so $RPM_BUILD_ROOT%{_libdir}/xnc/ install plugins/aqua/libxncaqua.so $RPM_BUILD_ROOT%{_libdir}/xnc/ mkdir -p $RPM_BUILD_ROOT%_sysconfdir/X11/wmconfig cat > $RPM_BUILD_ROOT%_sysconfdir/X11/wmconfig/xnc <<EOF xnc name "X Northern Captain" xnc description "filemanager for X Window" xnc icon "FileManager.xpm" xnc mini-icon "mini-filemgr.xpm" xnc group "Utilities/File Management" xnc exec "xnc &" EOF install -m 644 yo-man/ives.1 yo-man/xjpegroot.1 yo-man/es.1 yo-man/vs.1 \ yo-man/xnc.1 yo-man/xnlaunch.1 $RPM_BUILD_ROOT/%{_mandir}/man1 %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc AUTHORS INSTALL INSTALL-bin.xnc LICENSE %doc PORT.BSD README README.keys TODO WHATS_NEW %_bindir/* %_libdir/xnc %_mandir/man1/* %config(noreplace) %_sysconfdir/X11/wmconfig/xnc %changelog * Fri Sep 06 2002 Lenny Cartier <lenny@mandrakesoft.com> 4.4.7-3mdk - rebuild * Fri May 31 2002 Lenny Cartier <lenny@mandrakesoft.com> 4.4.7-2mdk - rebuild against new libstdc++ - clean spec ( macros ) * Thu Apr 25 2002 Lenny Cartier <lenny@mandrakesoft.com> 4.4.7-1mdk - updated by Charles A Edwards <eslrahc@bellsouth.net>