%define name notecase %define version 1.0.0 %define release 1mdk Name: %{name} Summary: A hierarchical text notes manager Version: %{version} Release: %{release} Source: http://prdownloads.sourceforge.net/notecase/%{name}-%{version}_src.zip URL: http://notecase.sourceforge.net/ License: GPL Group: Office BuildRoot: %{_tmppath}/%{name}-buildroot BuildRequires: pkgconfig ImageMagick BuildRequires: gtk2-devel unix2dos %description NoteCase is a hierarchical text notes manager (AKA outliner). It helps you organize your everyday text notes into a single document with individual notes placed into a tree-like structure. To ensure your privacy an encrypted document format is supported along with a standard unencrypted one. %prep %setup -q -n %name %build %make CFLAGS="$RPM_OPT_FLAGS" %install rm -rf $RPM_BUILD_ROOT %makeinstall #menu mkdir -p $RPM_BUILD_ROOT%{_menudir} cat << EOF > $RPM_BUILD_ROOT%{_menudir}/%{name} ?package(%{name}): command="%{name}" icon="%{name}.png" needs="x11" title="NoteCase" longtitle="Note outliner" section="Office/Accessories" EOF #icons mkdir -p $RPM_BUILD_ROOT/%_liconsdir convert -size 48x48 res/%name.xpm $RPM_BUILD_ROOT/%_liconsdir/%name.png mkdir -p $RPM_BUILD_ROOT/%_iconsdir convert -size 32x32 res/%name.xpm $RPM_BUILD_ROOT/%_iconsdir/%name.png mkdir -p $RPM_BUILD_ROOT/%_miconsdir convert -size 16x16 res/%name.xpm $RPM_BUILD_ROOT/%_miconsdir/%name.png %find_lang %name %clean rm -rf $RPM_BUILD_ROOT %post %update_menus update-mime-database "%{_datadir}/mime/" %postun %clean_menus update-mime-database "%{_datadir}/mime/" %files -f %{name}.lang %defattr(-,root,root) %doc readme.txt %{_bindir}/%name %{_datadir}/applications/* %{_datadir}/doc/%name %{_datadir}/icons/*.xpm %{_datadir}/mime/packages/* %{_menudir}/%name %{_liconsdir}/%name.png %{_iconsdir}/%name.png %{_miconsdir}/%name.png %changelog * Wed Jul 20 2005 Austin Acton <austin@mandriva.org> 1.0.0-1mdk - New release 1.0.0 * Wed Jun 22 2005 Austin Acton <austin@mandriva.org> 0.9.3-1mdk - New release 0.9.3 * Mon May 30 2005 Austin Acton <austin@mandriva.org> 0.8.9-1mdk - New release 0.8.9 * Tue May 10 2005 Austin Acton <austin@mandriva.org> 0.8.7-1mdk - New release 0.8.7 * Thu Mar 31 2005 Austin Acton <austin@mandrake.org> 0.8.2-1mdk - initial package