diff --git a/.cvsignore b/.cvsignore index e69de29..3b185ab 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +cellwriter-1.3.1.tar.gz diff --git a/cellwriter-desktop-validate.patch b/cellwriter-desktop-validate.patch new file mode 100644 index 0000000..aadeaa2 --- /dev/null +++ b/cellwriter-desktop-validate.patch @@ -0,0 +1,13 @@ +--- cellwriter.desktop.valid 2007-12-10 22:08:51.000000000 -0500 ++++ cellwriter.desktop 2007-12-10 22:15:25.000000000 -0500 +@@ -4,8 +4,8 @@ + GenericName=Handwriting input panel + Comment=Grid-entry handwriting recognition input panel + Exec=cellwriter +-Icon=cellwriter.svg ++Icon=cellwriter + StartupNotify=true + Terminal=false + Type=Application +-Categories=GNOME;GTK;Utility;Accessibility ++Categories=GNOME;GTK;Utility;Accessibility; diff --git a/cellwriter.spec b/cellwriter.spec new file mode 100644 index 0000000..fe5ec1f --- /dev/null +++ b/cellwriter.spec @@ -0,0 +1,77 @@ +Summary: Grid-entry natural handwriting input panel +Name: cellwriter +Version: 1.3.1 +Release: 2%{?dist} +License: GPLv2+ +Group: User Interface/X Hardware Support +URL: http://risujin.org/cellwriter/ +Source0: http://pub.risujin.org/%{name}/%{name}-%{version}.tar.gz +Patch0: cellwriter-desktop-validate.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root +BuildRequires: desktop-file-utils +BuildRequires: libXtst-devel +BuildRequires: gtk2-devel +BuildRequires: libgnome-devel + +%description +CellWriter is a grid-entry natural handwriting input panel. As +you write characters into the cells, your writing is instantly +recognized at the character level. When you press 'Enter' on the +panel, the input you entered is sent to the currently focused +application as if typed on the keyboard. + +%prep +%setup -q +%patch0 -p0 + +%build +%configure +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT + +make DESTDIR="$RPM_BUILD_ROOT" install + +desktop-file-install --delete-original --vendor=fedora \ + --dir=${RPM_BUILD_ROOT}%{_datadir}/applications \ + ${RPM_BUILD_ROOT}/%{_datadir}/applications/cellwriter.desktop + + +%clean +rm -rf $RPM_BUILD_ROOT + +%post +touch --no-create %{_datadir}/icons/hicolor +if [ -x %{_bindir}/gtk-update-icon-cache ]; then + %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +fi + +%postun +touch --no-create %{_datadir}/icons/hicolor +if [ -x %{_bindir}/gtk-update-icon-cache ]; then + %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +fi + + +%files +%defattr(-,root,root,-) +%doc README COPYING TODO AUTHORS +%{_bindir}/cellwriter +%dir %{_datadir}/cellwriter +%{_datadir}/cellwriter/* +%{_datadir}/applications/*.desktop +%{_datadir}/icons/hicolor/scalable/apps/cellwriter.svg +%{_datadir}/pixmaps/cellwriter.xpm +%{_mandir}/*/* + + +%changelog +* Tue Dec 11 2007 Jeremy Katz - 1.3.1-2 +- Add patch to make desktop file validate with stricter desktop-file-utils +- Update the icon cache +- Cleaner URL + +* Mon Dec 10 2007 Jeremy Katz - 1.3.1-1 +- Initial build. + diff --git a/sources b/sources index e69de29..f83128d 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +811c221ad070ea389c18feea7819472c cellwriter-1.3.1.tar.gz