From 25a444ebdbfc91384273ac2c8532a491652ffbf5 Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Sat, 6 Jan 2024 08:06:05 +0100 Subject: [PATCH] automatic rebuild by autodist [release 0.042-1mamba;Sun Jul 28 2013] --- README.md | 6 +++ ocre-0.029-Makefile.patch | 18 +++++++ ocre.spec | 99 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 123 insertions(+) create mode 100644 ocre-0.029-Makefile.patch create mode 100644 ocre.spec diff --git a/README.md b/README.md index 6fe2ea4..619fff4 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,8 @@ # ocre +o.c.r. easy (and free/libre) + +* input: PGM/PBM file +* output: ASCII characters in standard output +* process: segmentation, and more comparison + diff --git a/ocre-0.029-Makefile.patch b/ocre-0.029-Makefile.patch new file mode 100644 index 0000000..6941f18 --- /dev/null +++ b/ocre-0.029-Makefile.patch @@ -0,0 +1,18 @@ +--- ocre-0.029/ocre/Makefile 2008-09-27 11:54:28.000000000 +0200 ++++ ocre-0.029/ocre/Makefile-gil 2008-09-27 11:58:48.000000000 +0200 +@@ -3,11 +3,11 @@ + + include ddepend0 # FUENTES = .c 's + +-DESTDIR = /usr ++DESTDIR = + +-BIN = $(DESTDIR)/bin +-MAN = $(DESTDIR)/share/man +-SHARE = $(DESTDIR)/share/ocre ++BIN = $(DESTDIR)/usr/bin ++MAN = $(DESTDIR)/usr/share/man ++SHARE = $(DESTDIR)/usr/share/ocre + + CC = gcc + VERS = 2.0 diff --git a/ocre.spec b/ocre.spec new file mode 100644 index 0000000..c09df10 --- /dev/null +++ b/ocre.spec @@ -0,0 +1,99 @@ +%define realversion %(echo %version | tr . _) +Name: ocre +Version: 0.042 +Release: 1mamba +Summary: o.c.r. easy (and free/libre) +Group: Applications/Graphics +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://lem.eui.upm.es/ocre.html +Source0: ftp://lem.eui.upm.es/pub/ocre/ocre_v%{realversion}.tgz +#Source0: %{name}-%{version}.tar.gz +Source1: ftp://lem.eui.upm.es/pub/ocre/ocre-decsWood-%{version}.tgz +##Source1: %{name}-decsWood-%{version}.tar.gz +Patch: ocre-0.029-Makefile.patch +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: aspell-devel +BuildRequires: glibc-devel +BuildRequires: libatk-devel +BuildRequires: libcairo-devel +BuildRequires: libfontconfig-devel +BuildRequires: libfreetype-devel +BuildRequires: libgdk-pixbuf-devel +BuildRequires: libglib-devel +BuildRequires: libgtk2-devel +BuildRequires: libpango-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root + +%description +o.c.r. easy (and free/libre) + +* input: PGM/PBM file +* output: ASCII characters in standard output +* process: segmentation, and more comparison + +%prep +%setup -q +sed -i "s|-Isrc|-Isrc -I.|" ocre/Makefile +%patch -p1 + +%build +make -C ocre depend +%make -C ocre + +%install +%makeinstall -C ocre +%makeinstall -C ocre installman + +rm -rf %{buildroot}/bin +rm -rf %{buildroot}/share + +rm -rf %{buildroot}%{_datadir}/ocre/decsWood* +rm -rf decsWood* + +tar -xvzf %{SOURCE1} -C %{buildroot}%{_datadir}/ocre/ + +%clean +[ "%{buildroot}" != / ] && rm -rf %{buildroot} + +%files +%defattr(-, root, root, 0755) +%{_bindir}/ocre +%dir %{_datadir}/ocre +%dir %{_datadir}/ocre/conv +%{_datadir}/ocre/conv/maymin +%{_datadir}/ocre/conv/minmay +%{_datadir}/ocre/conv/puntua +%{_datadir}/ocre/conv/tposyes +%{_datadir}/ocre/conv/ts-8859-*.ts +%dir %{_datadir}/ocre/decsWood +%{_datadir}/ocre/decsWood/* +%dir %{_datadir}/ocre/decsWoodCur +%{_datadir}/ocre/decsWoodCur/* +%dir %{_datadir}/ocre/decsWoodCyrillic +%{_datadir}/ocre/decsWoodCyrillic/* +%dir %{_datadir}/ocre/decsWoodLatin +%{_datadir}/ocre/decsWoodLatin/* +%dir %{_datadir}/ocre/decsWoodLatinW +%{_datadir}/ocre/decsWoodLatinW/* +%{_mandir}/es/man1/ocre.1.gz +%{_mandir}/man1/ocre.1.gz + +%changelog +* Sun Jul 28 2013 Automatic Build System 0.042-1mamba +- automatic rebuild by autodist + +* Mon May 18 2009 Automatic Build System 0.031-1mamba +- update to 0.031 + +* Sat Sep 27 2008 gil 0.029-1mamba +- update to 0.029 + +* Wed Jun 22 2005 Alessandro Ramazzina 0.018-2qilnx +- rebuild and moved from devel-contrib repository to devel repository + +* Tue Jun 21 2005 Matteo Bernasconi 0.018-1qilnx +- First Build