]> git.pld-linux.org Git - packages/MathPlanner.git/blobdiff - MathPlanner.spec
- 3.0.5 - added desktop, removed included patch - STBR
[packages/MathPlanner.git] / MathPlanner.spec
index 513d876f6b954a611d503a20db920686038afef8..2e0409c0d7c826ec6c989a8add55040ec2a4b426 100644 (file)
@@ -1,22 +1,23 @@
-# TODO:
-# - desktop
 Summary:       A Program for calculating many kind of things
 Summary(pl):   Program do ³atwego wykonywania obliczeñ matematycznych
 Name:          MathPlanner
-Version:       3.0.2
+Version:       3.0.5
 Release:       1
 License:       GPL v2
 Group:         X11/Applications/Publishing
 Source0:       http://koti.mbnet.fi/jarmonik/%{name}-%{version}.tar.gz
-Patch0:                %{name}-makefile.patch
-Patch1:                %{name}-opt.patch
+Source1:       %{name}.desktop
+Patch0:                %{name}-ac_fix.patch
 URL:           http://koti.mbnet.fi/jarmonik
-BuildRequires: kdelibs-devel >= 3
-BuildRequires: qt-devel >= 3.0.1
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: kdelibs-devel >= 3.0.3
+BuildRequires: libtool
+BuildRequires: qt-devel >= 3.0.5
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _prefix         /usr/X11R6
-%define                _mathdir        %{_datadir}/MathPlanner3
+%define                _mathdir        %{_datadir}/MathPlanner
 
 %description
 MathPlanner is mathematical design and publishing tool. MathPlanner
@@ -31,34 +32,40 @@ Obs
 oraz definicje funkcji.
 
 %prep
-%setup -q -n %{name}3-install
-%patch0 -p1
-%patch1 -p1
+%setup -q
+%patch0 -p0
 
 %build
-CFLAGS="-I/usr/X11R6/include/qt"
-LDFLAGS="-L/usr/X11R6/lib/qt/plugins-mt/styles/ -lqplatinumstyle -lqmotifstyle"
-export LDFLAGS CFLAGS
-%{__make} CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" build
+QTDIR="/usr/X11R6"
+export QTDIR
+
+%{__libtoolize}
+aclocal
+%{__autoconf}
+%{__automake}
+%configure
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_pixmapsdir}/mini
+install -d $RPM_BUILD_ROOT{%{_pixmapsdir}/mini,%{_applnkdir}/Scientific}
 
 %{__make} install DESTDIR=$RPM_BUILD_ROOT
 
 install icons/*.xpm $RPM_BUILD_ROOT%{_pixmapsdir}
 install icons/mini/*.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/mini
+install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Scientific/
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc Changes.txt Doc.htm Doc examples
+%doc AUTHORS ChangeLog NEWS Doc.htm Doc examples
 %attr(755,root,root) %{_bindir}/*
 %dir %{_mathdir}
 %{_mathdir}/*.txt
 %{_mathdir}/pixmaps/*
 %{_pixmapsdir}/*.xpm
 %{_pixmapsdir}/mini/*.xpm
+%{_applnkdir}/Scientific/*.desktop
This page took 0.028428 seconds and 4 git commands to generate.