Author Topic: textroom 0.6.5  (Read 562 times)

Offline slax

  • Sr. Member
  • ****
  • Posts: 391
    • PCLinuxOS Gnome Edition
textroom 0.6.5
« on: November 03, 2010, 01:04:34 PM »
Hi i have trouble with packaging textroom app.
With make command i get
Code: [Select]
/usr/bin/ld: cannot find -lhunspell
hunspell-devel is installed, i eve tried "ln -s" from libhunspell.so to hunspell.so with no results :|

here's the complete spec:
Code: [Select]
%define name textroom
%define version 0.6.5
%define release %mkrel 1

Summary: TextRoom basic full-screen text editor
Name: %{name}
Version: %{version}
Release: %{release}
Source0:  http://code.google.com/p/textroom/%{name}-%{version}.tar.gz
Group: Terminals
License: GPL
URL: http://code.google.com/p/textroom/
BuildRequires: qt4-devel libSDL_mixer1.2-devel libhunspell-devel
BuildRoot: %_tmppath/%{name}-build
Requires: glibc >= 2.10.1
Requires: Qt >= 4.5.1
Requires: SDL >= 1.2.13
Requires: SDL_mixer >= 1.2.8
Requires: hunspell >= 1.2.6
Requires: libstdc++6 >= 4.4.1
Obsoletes: %{name} < %version

%description
TextRoom is a pretty basic full-screen text editor, heavily inspired
by similar text editors such as Q10, JDarkRoom and so on.

%prep
%setup -q

%build
qmake

%make

%install
rm -rf $RPM_BUILD_ROOT
install -dm 755 $RPM_BUILD_ROOT%{_bindir}
install -m 755 bin/%{name} $RPM_BUILD_ROOT%{_bindir}

install -dm 755 $RPM_BUILD_ROOT%{_datadir}/%name
cp -af resource/images/* $RPM_BUILD_ROOT%{_datadir}/%name
cp -af resource/sounds/*.wav $RPM_BUILD_ROOT%{_datadir}/%name
cp -af ui/*.ui $RPM_BUILD_ROOT%{_datadir}/%name

install -dm 755 $RPM_BUILD_ROOT%{_datadir}/pixmaps
install -m 644 resource/images/textroom.png $RPM_BUILD_ROOT%{_datadir}/pixmaps
install -m 644 resource/images/textroom-doc.png $RPM_BUILD_ROOT%{_datadir}/pixmaps
convert $RPM_BUILD_ROOT%{_datadir}/pixmaps/textroom.png -resize 48 \
$RPM_BUILD_ROOT%{_datadir}/pixmaps/textroom.png

install -dm 755 $RPM_BUILD_ROOT%{_datadir}/applications
install -m 755 resource/desktop/TextRoom.desktop $RPM_BUILD_ROOT%{_datadir}/applications

desktop-file-install --vendor="" \
  --remove-category="Application" \
  --add-category="X-MandrivaLinux-Office-Accessories" \
  --dir $RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT%{_datadir}/applications/*.desktop

%clean
rm -rf $RPM_BUILD_ROOT

%post
%{update_menus}
%{update_desktop_database}

%postun
%{clean_menus}
%{clean_desktop_database}



%files
%defattr(-,root,root)
%doc CHANGELOG README
%doc docs/*
%{_bindir}/%{name}
%{_datadir}/%name
%{_datadir}/pixmaps/*
%{_datadir}/applications/*.desktop


%changelog
* Wed Jan 17 2010 slick50 <lxgator@gmail.com> 0.5.4-1pclos2010
- initial build





genomega

  • Guest
Re: textroom 0.6.5
« Reply #1 on: November 03, 2010, 11:13:17 PM »
Do you have libhunspell1.2_0-devel installed?

Offline slax

  • Sr. Member
  • ****
  • Posts: 391
    • PCLinuxOS Gnome Edition
Re: textroom 0.6.5
« Reply #2 on: November 04, 2010, 09:15:22 AM »
Do you have libhunspell1.2_0-devel installed?


Yes. that's the only libhunspell-devel package in the repo...