%define name wedit %define version 0.9.8 %define release 6mdk Summary: User-friendly IDE Name: %{name} Version: %{version} Release: %{release} Source: %{name}-%{version}-libc6-src.tar.bz2 License: GPL URL: http://www.q-software-solutions.com/weditlinux/ Group: Development/Other Buildroot: %{_tmppath}/%{name}-buildroot BuildRequires: gtk+-devel >= 1.2 %description User-friendly IDE with many advanced features like real-time code parsing, auto-complete and more Project wizard, automatic generation of GNU makefiles and Automake/Autoconf skeletons Powerful search and grep capabilities, change-tracking and visual diff Drag & drop Fully supports GNU C and LCC compilers, customizable makefile generation and build. Fast run-time source parsing supports syntax coloring and autoformating of C, Fortran, and Eiffel sources. Complete analysis of source code and object files, many charts and plots Intergated debugger that allows local or remote debugging %prep rm -rf $RPM_BUILD_ROOT %setup -n %{name}-%{version} %build %configure sed -e s/"-O2 -w"/"\${RPM_OPT_FLAGS}"/ src/Makefile > src/Makefile.new rm -f src/Makefile mv src/Makefile.new src/Makefile %make %install make DESTDIR=$RPM_BUILD_ROOT install (cd $RPM_BUILD_ROOT mkdir -p ./usr/lib/menu cat > ./usr/lib/menu/%{name} <<EOF ?package(%{name}):\ command="/usr/bin/wedit"\ title="Wedit"\ longtitle="User-friendly IDE"\ needs="x11"\ icon="development_environment_section.png"\ section="Applications/Development/Development Environments" EOF ) %post %update_menus %postun %clean_menus %clean rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,root) %doc AUTHORS INSTALL COPYING NEWS README ChangeLog %{_bindir}/* %{_datadir}/%{name} %{_menudir}/* %changelog * Thu Jan 13 2005 Lenny Cartier <lenny@mandrakesoft.com> 0.9.8-6mdk - rebuild * Sun Dec 05 2003 Franck Villaume <fvill@freesurf.fr> 0.9.8-5mdk - add BuildRequires gtk+-devel >= 1.2 - add RPM_OPT_FLAGS support * Mon Jan 27 2003 Lenny Cartier <lenny@mandrakesoft.com> 0.9.8-4mdk - rebuild * Sat Jan 19 2002 Laurent MONTEL <lmontel@mandrakesoft.com> 0.9.8-3mdk - Fix menu entry * Fri Aug 31 2001 Etienne Faure <etienne@mandrakesoft.com> 0.9.8-2mdk - rebuild * Mon Apr 02 2001 Lenny Cartier <lenny@mandrakesoft.com> 0.9.8-1mdk - updated to 0.9.8 * Wed Feb 14 2001 Lenny Cartier <lenny@mandrakesoft.com> 0.9.6-1mdk - updated to 0.9.6 * Tue Nov 7 2000 Lenny Cartier <lenny@mandrakesoft.com> 0.9.4-1mdk - new in contribs