X-Git-Url: http://git.pld-linux.org/?p=packages%2FMathPlanner.git;a=blobdiff_plain;f=MathPlanner.spec;h=93ffea2a2d1e578bc9e837c38705a1e340fef218;hp=2e0409c0d7c826ec6c989a8add55040ec2a4b426;hb=b80d60b8d5e2399a83a6e86c4311b36d2f21cef9;hpb=f4fbf071684b48e670ba0a8acc66d51cd7dc09c7 diff --git a/MathPlanner.spec b/MathPlanner.spec index 2e0409c..93ffea2 100644 --- a/MathPlanner.spec +++ b/MathPlanner.spec @@ -1,22 +1,21 @@ Summary: A Program for calculating many kind of things -Summary(pl): Program do ³atwego wykonywania obliczeñ matematycznych +Summary(pl.UTF-8): Program do łatwego wykonywania obliczeń matematycznych Name: MathPlanner -Version: 3.0.5 -Release: 1 +Version: 3.1.3 +Release: 3 License: GPL v2 Group: X11/Applications/Publishing Source0: http://koti.mbnet.fi/jarmonik/%{name}-%{version}.tar.gz +# Source0-md5: 803a8de68056a4ec2e4c456b1ba9b320 Source1: %{name}.desktop -Patch0: %{name}-ac_fix.patch -URL: http://koti.mbnet.fi/jarmonik +Patch0: %{name}-no_qstyles.patch +URL: http://koti.mbnet.fi/jarmonik/ BuildRequires: autoconf BuildRequires: automake -BuildRequires: kdelibs-devel >= 3.0.3 BuildRequires: libtool -BuildRequires: qt-devel >= 3.0.5 +BuildRequires: qt-devel >= 3:3.0.5 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -%define _prefix /usr/X11R6 %define _mathdir %{_datadir}/MathPlanner %description @@ -25,22 +24,28 @@ supports complex numbers, vectors, and basic math operations like trigonometry, log, ln... Also integers and functions definations can be used. -%description -l pl +%description -l pl.UTF-8 MathPlanner jest matematycznym programem do tworzenia i publikacji. -Obs³uguje liczby zespolone, wertory i podstawowe operacje matematyczne -(trygonometria, logarytmy,...). Mog± byæ tak¿e u¿yte liczby ca³kowite +Obsługuje liczby zespolone, wektory i podstawowe operacje matematyczne +(trygonometria, logarytmy,...). Mogą być także użyte liczby całkowite oraz definicje funkcji. %prep %setup -q -%patch0 -p0 +%patch0 %build -QTDIR="/usr/X11R6" +QTDIR="%{_prefix}" export QTDIR +cd src +for i in *.moc; do + moc `basename $i .moc`.h >$i; +done +cd .. +rm -f missing %{__libtoolize} -aclocal +%{__aclocal} %{__autoconf} %{__automake} %configure @@ -48,13 +53,17 @@ aclocal %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT{%{_pixmapsdir}/mini,%{_applnkdir}/Scientific} +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 icons/*.xpm $RPM_BUILD_ROOT%{_pixmapsdir} -install icons/mini/*.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/mini -install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Scientific/ +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 @@ -66,6 +75,8 @@ rm -rf $RPM_BUILD_ROOT %dir %{_mathdir} %{_mathdir}/*.txt %{_mathdir}/pixmaps/* -%{_pixmapsdir}/*.xpm -%{_pixmapsdir}/mini/*.xpm -%{_applnkdir}/Scientific/*.desktop +%{_mathdir}/ts/* +%{_pixmapsdir}/*.png +%{_pixmapsdir}/hicolor/*/mimetypes/*.png +%{_datadir}/mimelnk/application/*.desktop +%{_desktopdir}/*.desktop