]> git.pld-linux.org Git - packages/MathPlanner.git/blobdiff - MathPlanner.spec
*** empty log message ***
[packages/MathPlanner.git] / MathPlanner.spec
index 65ac6b06acde1093df2208044313b1e7a53da6a8..b2af43fd1b309fab11987062b1428e87986c15ab 100644 (file)
@@ -1,17 +1,23 @@
 Summary:       A Program for calculating many kind of things
 Summary(pl):   Program do ³atwego wykonywania obliczeñ matematycznych
-Name:          MathPlanner3
-Version:       3.0.1
-Release:       0.1
-License:       GPL
+Name:          MathPlanner
+Version:       3.1.3
+Release:       1
+License:       GPL v2
 Group:         X11/Applications/Publishing
-Source0:       %{name}-%{version}.tar.gz
-Patch0:                %{name}-makefile.patch
-URL:           http://koti.mbnet.fi/jarmonik
-BuildRequires: kdelibs-devel >= 3
-BuildRequires: qt-devel >= 3.0.1
+Source0:       http://koti.mbnet.fi/jarmonik/%{name}-%{version}.tar.gz
+# Source0-md5: 803a8de68056a4ec2e4c456b1ba9b320
+Source1:       %{name}.desktop
+Patch0:                %{name}-no_qstyles.patch
+URL:           http://koti.mbnet.fi/jarmonik/
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: libtool
+BuildRequires: qt-devel >= 3.0.5
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define                _mathdir        %{_datadir}/MathPlanner
+
 %description
 MathPlanner is mathematical design and publishing tool. MathPlanner
 supports complex numbers, vectors, and basic math operations like
@@ -26,26 +32,51 @@ oraz definicje funkcji.
 
 %prep
 %setup -q
-%patch0 -p1
+%patch0
 
 %build
-%{__make} CFLAGS="-I%{_prefix}/X11R6/include/qt" all
+QTDIR="%{_prefix}"
+export QTDIR
+cd src
+for i in *.moc; do
+       moc `basename $i .moc`.h >$i;
+done
+cd ..
+
+rm -f missing
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+%configure
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-#mkdir -p $RPM_BUILD_ROOT/usr/bin
-#mkdir -p $RPM_BUILD_ROOT/opt/MathPlanner3
+install -d $RPM_BUILD_ROOT{%{_pixmapsdir}/{mini,hicolor/{32x32,64x64}/mimetypes/},%{_desktopdir}} \
+       $RPM_BUILD_ROOT%{_datadir}/mimelnk/application/
 
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
-#install -s -m 755 MathPlanner3 $RPM_BUILD_ROOT/usr/bin/MathPlanner3
-#cp -R Data/* $RPM_BUILD_ROOT/opt/MathPlanner3
+install icons/64x64/apps/*.png $RPM_BUILD_ROOT%{_pixmapsdir}
+install icons/64x64/mimetypes/*.png $RPM_BUILD_ROOT%{_pixmapsdir}/hicolor/64x64/mimetypes/
+install icons/32x32/mimetypes/*.png $RPM_BUILD_ROOT%{_pixmapsdir}/hicolor/32x32/mimetypes/
+install mpl2.desktop $RPM_BUILD_ROOT%{_datadir}/mimelnk/application/
+install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc Data/{Changes.txt,Doc.htm,MPLConfig.txt}
-#/opt/MathPlanner3
-#/usr/bin/MathPlanner3
+%doc AUTHORS ChangeLog NEWS Doc.htm Doc examples
+%attr(755,root,root) %{_bindir}/*
+%dir %{_mathdir}
+%{_mathdir}/*.txt
+%{_mathdir}/pixmaps/*
+%{_mathdir}/ts/*
+%{_pixmapsdir}/*.png
+%{_pixmapsdir}/hicolor/*/mimetypes/*.png
+%{_datadir}/mimelnk/application/*.desktop
+%{_desktopdir}/*.desktop
This page took 0.06406 seconds and 4 git commands to generate.