%define kdedir %(echo `kde-config --prefix`) %define dictconv_ver 0.2 Name: ktranslator Version: 0.4 Release: 4mamba Summary: KTranslator is a program to translate words from one language to another. Group: Graphical Desktop/Applications/Utilities Vendor: openmamba Distribution: openmamba Packager: Aleph0 URL: http://ktranslator.sourceforge.net/ Source0: http://prdownloads.sourceforge.net/ktranslator/ktranslator-%{version}.tar.bz2 Source1: http://prdownloads.sourceforge.net/ktranslator/dictconv-%{dictconv_ver}.tar.bz2 Patch: %{name}-0.4-desktopfile.patch Patch1: %{name}-0.4-gcc44.patch Patch2: %{name}-0.4-gcc4.patch License: GPL BuildRequires: libqt3-devel BuildRequires: kdelibs-devel BuildRequires: libarts-devel BuildRequires: libz-devel BuildRequires: libpng-devel BuildRequires: libjpeg-devel BuildRequires: libxml2-devel BuildRequires: libxml2-utils BuildRequires: libX11-devel BuildRequires: libICE-devel BuildRequires: libXext-devel BuildRequires: cmake BuildRequires: gcc-c++ Obsoletes: ktranslator-devel BuildRoot: %{_tmppath}/%{name}-%{version}-root %description KTranslator is a program to translate words from one language to another. KTranslator should support any language and come with a plugin system, to ease the addition of new dictionaries. The main idea behind KTranslator is to translate a word without disturb the application in use. So, when the user selects a word while pressing CTRL key, KTranslator will try to translate the word and show the result in a popup window. %package devel Summary: Devel package for %{name} Group: Development/Libraries Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description devel KTranslator is a program to translate words from one language to another. This package contains static libraries and header files need for development. %prep %setup -q -a1 %patch -p1 %patch1 -p1 %patch2 -p1 %build export KDEDIR=%{kdedir} %configure_kde \ --enable-shared \ --disable-static \ --disable-rpath \ --without-arts %make cd dictconv-%{dictconv_ver} %configure mkdir build cd build cmake \ -DCMAKE_BUILD_TYPE=release \ -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DCMAKE_CXX_FLAGS_RELEASE="%{optflags}" .. %install [ "%{buildroot}" != / ] && rm -rf %{buildroot} %makeinstall %makeinstall -C dictconv-%{dictconv_ver}/build %{find_lang} %{name} # remove unpackaged files rm -fr %{buildroot}%{_kdeincludedir} rm -f %{buildroot}%{_kdelibdir}/*.la rm -f %{buildroot}%{_kdelibdir}/*.so %clean [ "%{buildroot}" != / ] && rm -rf %{buildroot} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files -f %{name}.lang %defattr(-,root,root) %{_bindir}/dictconv %{_kdebindir}/ktranslator %{_kdelibdir}/*.so.* %{_kdedatadir}/applnk/Utilities/ktranslator.desktop %dir %{_kdedatadir}/apps %{_kdedatadir}/apps/* %{_kdedatadir}/config.kcfg/ktranslator.kcfg %dir %{_kdedatadir}/icons/hicolor %{_kdedatadir}/icons/hicolor/* %{_kdedatadir}/services/* %{_kdedatadir}/servicetypes/* %{_kdelibdir}/kde3/*.la %{_kdelibdir}/kde3/*.so %doc AUTHORS COPYING ChangeLog NEWS README TODO %changelog * Mon Jul 15 2013 Automatic Build System 0.4-4mamba - automatic rebuild by autodist * Sat Jun 13 2009 Automatic Build System 0.4-3mamba - automatic rebuild by autodist * Tue Jul 03 2007 Aleph0 0.4-2mamba - new package maintainer * Tue Apr 03 2007 Davide Madrisan 0.4-1mamba - update to version 0.4 by autospec - moved plugins files to main package - update ldconfig cache - build the dictionary converter dictconv - do not create a devel package * Thu Sep 15 2005 Alessandro Ramazzina 0.3-1qilnx - package created by autospec