%define name kpdftool %define version 0.23 %define rel 1 Summary: GhostView and ImageMagick GUI for PDF/PS files Name: %{name} Version: %{version} Release: %mkrel %{rel} License: GPL+ Group: Text tools URL: http://www.kde-apps.org/content/show.php?content=33194 Source: kpdftool-%{version}.zip BuildRequires: qt4-devel Suggests: imagemagick Suggests: ghostscript Suggests: kword %description KPDFTool is a GUI interface for GhostView and ImageMagick for performing basic and usefull operations with PDF and PS (PostScript) files such as merge, extract pages and protect the text into new files in a simple and practical way. %prep %setup -q %build qmake %make %install rm -rf %{buildroot} install -d -m755 %{buildroot}%{_bindir} install -m755 kpdftool %{buildroot}%{_bindir} install -d -m755 %{buildroot}%{_datadir}/applications cat > %{buildroot}%{_datadir}/applications/kpdftool.desktop << EOF [Desktop Entry] Name=KPDFTool Comment=Operate on PDF files Exec=%{_bindir}/kpdftool Icon=publishing_section Terminal=false Type=Application Categories=Office;Publishing;KDE;Qt; EOF %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc README %{_bindir}/kpdftool %{_datadir}/applications/kpdftool.desktop %changelog * Thu Jul 07 2011 spuhler <spuhler> 0.23-1.mga2 + Revision: 119639 - imported package kpdftool