%undefine __libtoolize %define objprelink 0 Name: qtparted Version: 0.4.0 Release: alt1 Packager: Yehuda Ben-Yosef Group: System/Configuration/Hardware Summary: QTParted is a Partition Magic clone written in C++ using the Qt toolkit License: GPL URL: http://qtparted.sourceforge.net/ Source0: %name-%version.tar.bz2 #Requires: libqt3-gcc_compiled = %__gcc_version_base # Automatically added by buildreq on Wed Nov 19 2003 BuildRequires: XFree86-devel-static XFree86-libs fontconfig freetype2 gcc-c++ hostinfo libreiserfs-devel-static BuildRequires: libGLU libGLwrapper libaudio libe2fs-devel libexpat libjpeg-devel liblcms libmng BuildRequires: libparted-devel libpng-devel libprogsreiserfs-devel-static libqt3-devel BuildRequires: libstdc++-devel ntfsprogs xfsprogs zlib-devel reiserfs-utils #BuildRequires: libqt3-gcc_compiled = %__gcc_version_base %if %objprelink BuildRequires: objprelink %endif %description QTParted is a Partition Magic clone written in C++ using the Qt toolkit %prep %setup -q %build export QTDIR=%_libdir/qt3 export KDEDIR=%_prefix export LD_LIBRARY_PATH=$QTDIR/lib:$KDEDIR/lib:$LD_LIBRARY_PATH export PATH=$QTDIR/bin:$KDEDIR/bin:$PATH export CFLAGS="%optflags" export CXXFLAGS="%optflags" %configure \ --disable-rpath \ --enable-shared \ --disable-debug %if %objprelink %make_build CXX=g++prelink %else %make_build %endif %install %makeinstall mkdir -p %buildroot%_iconsdir cp %buildroot%_datadir/pixmaps/%name.xpm %buildroot%_iconsdir #create menu mkdir -p %buildroot/%_menudir kdedesktop2mdkmenu.pl %name "Configuration/Hardware" %buildroot%_datadir/applnk/System/%name.desktop %buildroot%_menudir/%name %find_lang %name %post %update_menus %postun %clean_menus %files -f %name.lang %_sbindir/%name %_sbindir/run* %_datadir/applnk/System/%name.desktop %_datadir/%name %_datadir/pixmaps/*.xpm %_iconsdir/*.xpm # %_menudir/%name # %doc README AUTHORS ChangeLog TODO %changelog * Wed Nov 19 2003 Yehuda Ben-Yosef 0.4.0-alt1 - 0.4.0 - specfile cleanup