Sophie

Sophie

distrib > Mandriva > 7.2 > i586 > by-pkgid > 63241fa8dbd62d6537c73faa9138581f > files > 1

quanta-2.0-1mdk.src.rpm

%define name	quanta
%define version	2.0
%define KDEDATE	20001017
%define release	1mdk

Summary:	A web editor for the KDE Desktop Environment
Name:		%{name}
Version:	%{version}
Release:	%{release}
Copyright:	GPL
Prefix:		/usr
Source:		ftp://ftp.kde.org/pub/kde/unstable/apps/quanta-%{KDEDATE}-src.tar.bz2

Group:		Graphical desktop/KDE
URL:		http://www.kde.org/
BuildRoot:	%{_tmppath}/%{name}-%{version}-root
Requires:	qt2,  kdelibs 
BuildRequires:	XFree86-devel qt2-devel kdelibs-devel

%description
A html editor for the K Desktop Environment. 

%prep
rm -rf $RPM_BUILD_ROOT

%setup -q -nquanta

%build
export KDEDIR=%_prefix
export QTDIR=/usr/lib/qt2
make -f Makefile.cvs

CFLAGS="$RPM_OPT_FLAGS -DNDEBUG -fno-exceptions -fno-check-new -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long -fno-builtin" CXXFLAGS="$RPM_OPT_FLAGS -DNDEBUG -fno-exceptions -fno-check-new -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long -fno-builtin" \
	./configure --with-install-root=$RPM_BUILD_ROOT \
		    --disable-rpath \
		    --disable-debug

%make

%install
rm -rf $RPM_BUILD_ROOT
export KDEDIR=%{prefix}
export QTDIR=/usr/lib/qt2
make prefix=$RPM_BUILD_ROOT$KDEDIR install


##menus created
mkdir -p $RPM_BUILD_ROOT/usr/lib/menu

kdedesktop2mdkmenu.pl quanta Networking/WWW $RPM_BUILD_ROOT/usr/share/applnk/Applications/quanta.desktop $RPM_BUILD_ROOT/usr/lib/menu/kquanta


%clean
rm -rf $RPM_BUILD_ROOT

%files 
%defattr(-,root,root,755)
%_bindir/*
%_libdir/*
%_datadir/*


%post
%{update_menus}
/sbin/ldconfig

%postun
%{clean_menus}
/sbin/ldconfig

%changelog
* Tue Oct 17 2000 Christopher Molnar <molnarc@mandrakesoft.com> 2.0-1mdk
- Code update to KDE 2.0 Release 

* Mon Oct 02 2000 Christopher Molnar <molnarc@mandrakesoft.com> 1.99-1mdk
- Code update to KDE 2.0 Release Candidate 1

* Sun Oct 01 2000 David BAUDENS <baudens@mandrakesoft.com> 1.94-6mdk
- Fix menu entry
- Use optimizations
- Use macros
- Don't %%update_menus && %%clean_menus in %%postun

* Fri Sep 29 2000 Christopher Molnar <molnarc@mandrakesoft.com> 1.94-5mdk
- Code update

* Wed Sep 27 2000 Christopher Molnar <molnarc@mandrakesoft.com> 1.94-4mdk
- Code update

* Mon Sep 25 2000 Christopher Molnar <molnarc@mandrakesoft.com> 1.94-3mdk
- Code update

* Sat Sep 23 2000 Christopher Molnar <molnarc@mandrakesoft.com> 1.94-2mdk
- Code update

* Fri Sep 22 2000 Christopher Molnar <molnarc@mandrakesoft.com> 1.94-1mdk
- First build for MandrakeSoft