8ddb310
Name:           figtoipe
8ddb310
Version:        20080505
05fc334
Release:        4%{?dist}
8ddb310
Summary:        FIG to IPE conversion tool
8ddb310
8ddb310
Group:          Applications/Publishing       
8ddb310
#
8ddb310
# GPLv2, with an exception for the CGAL libraries.
8ddb310
License:        GPLv2+ with exceptions
8ddb310
#
8ddb310
URL:            http://tclab.kaist.ac.kr/ipe/
8ddb310
Source0:        http://luaforge.net/frs/download.php/3343/figtoipe-%{version}.tar.gz
8ddb310
Source1:        http://www.gnu.org/licenses/gpl-2.0.txt
8ddb310
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
8ddb310
BuildRequires:  zlib-devel, perl
8ddb310
8ddb310
%description
8ddb310
Figtoipe is a program that reads FIG files (as generated by
8ddb310
xfig) and generates an XML file readable by the Ipe editor.
8ddb310
8ddb310
%prep
8ddb310
%setup -q
8ddb310
sed -i -e 's/\r//' README figtoipe.cpp
8ddb310
chmod a-x README figtoipe.cpp
8ddb310
8ddb310
# extract the changelog from figtoipe.cpp
8ddb310
perl -ne 'if(m|\* Changes| .. m|\*/|) { m| \* (.*)| && print "$1\n";}' < figtoipe.cpp > CHANGES
8ddb310
# extract the license terms from figtoipe.cpp
8ddb310
perl -ne 'if(m|This file| .. m| USA.$|) { print;}' < figtoipe.cpp > LICENSE
8ddb310
8ddb310
cp %{SOURCE1} .
8ddb310
8ddb310
%build
8ddb310
%{__cxx} %{optflags} -o figtoipe figtoipe.cpp -lz
8ddb310
8ddb310
%install
8ddb310
rm -rf $RPM_BUILD_ROOT
8ddb310
mkdir -p $RPM_BUILD_ROOT%{_bindir}
8ddb310
install -m 755 figtoipe $RPM_BUILD_ROOT%{_bindir}
8ddb310
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
8ddb310
install -m 644 figtoipe.1 $RPM_BUILD_ROOT%{_mandir}/man1
8ddb310
8ddb310
%clean
8ddb310
rm -rf $RPM_BUILD_ROOT
8ddb310
8ddb310
8ddb310
%files
8ddb310
%defattr(-,root,root,-)
8ddb310
%doc README CHANGES gpl-2.0.txt LICENSE
8ddb310
%{_bindir}/figtoipe
8ddb310
%{_mandir}/man1/figtoipe.1.gz
8ddb310
8ddb310
%changelog
05fc334
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20080505-4
05fc334
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
05fc334
e9ba177
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20080505-3
e9ba177
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
e9ba177
8ddb310
* Mon May 19 2008 Laurent Rineau <laurent.rineau__fedora@normalesup.org> - 20080505-2
8ddb310
- Do not compress man pages during builds (done by rpm).
8ddb310
8ddb310
* Sat May 17 2008 Laurent Rineau <laurent.rineau__fedora@normalesup.org> - 20080505-1
8ddb310
- New upstream release.
8ddb310
8ddb310
* Fri May 16 2008 Laurent Rineau <laurent.rineau__fedora@normalesup.org> - 20071004-5
8ddb310
- Add a copy of the figtoipe.cpp header in license.txt
8ddb310
8ddb310
* Fri Feb 15 2008 Laurent Rineau <laurent.rineau__fedora@normalesup.org> - 20071004-4
8ddb310
- Add a license file.
8ddb310
- Fix the BR: zlib-devel
8ddb310
8ddb310
* Thu Feb 14 2008 Laurent Rineau <laurent.rineau__fedora@normalesup.org> - 20071004-3
8ddb310
- Extract the changelog from figtoipe.cpp
8ddb310
8ddb310
* Thu Feb 14 2008 Laurent Rineau <laurent.rineau__fedora@normalesup.org> - 20071004-2
8ddb310
- Add the man page.
8ddb310
8ddb310
* Tue Feb 12 2008 Laurent Rineau <laurent.rineau__fedora@normalesup.org> - 20071004-1
8ddb310
- Initial build for Fedora.
8ddb310