ocre/ocre.spec

112 lines
3.1 KiB
RPMSpec

%define realversion %(echo %version | tr . _)
Name: ocre
Version: 0.043
Release: 2mamba
Summary: o.c.r. easy (and free/libre)
Group: Applications/Graphics
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
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: glibc-devel
BuildRequires: libaspell-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}
%pre
if [ $1 -ge 1 ]; then
# Became a symlink
[ -d %{_datadir}/ocre/decsWood ] && rmdir %{_datadir}/ocre/decsWood
fi
:
%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
%{_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*
%{_mandir}/man1/ocre.1*
%changelog
* Tue Oct 11 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.043-2mamba
- fix packaging of decsWood as symlink, not directory
* Tue Oct 11 2016 Automatic Build System <autodist@mambasoft.it> 0.043-1mamba
- automatic update by autodist
* Sun Jul 28 2013 Automatic Build System <autodist@mambasoft.it> 0.042-1mamba
- automatic rebuild by autodist
* Mon May 18 2009 Automatic Build System <autodist@mambasoft.it> 0.031-1mamba
- update to 0.031
* Sat Sep 27 2008 gil <puntogil@libero.it> 0.029-1mamba
- update to 0.029
* Wed Jun 22 2005 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 0.018-2qilnx
- rebuild and moved from devel-contrib repository to devel repository
* Tue Jun 21 2005 Matteo Bernasconi <voyagernm@virgilio.it> 0.018-1qilnx
- First Build