From 43fe5c97e8edc09c858cce43de84b162147c30ed Mon Sep 17 00:00:00 2001 From: Christopher Meng Date: May 19 2014 11:22:49 +0000 Subject: Build with ldflags inserted. --- diff --git a/figtoipe.spec b/figtoipe.spec index d7e51f9..4027781 100644 --- a/figtoipe.spec +++ b/figtoipe.spec @@ -2,17 +2,15 @@ Name: figtoipe Version: 20091205 Release: 7%{?dist} Summary: FIG to IPE conversion tool - -Group: Applications/Publishing # # GPLv2, with an exception for the CGAL libraries. License: GPLv2+ with exceptions # -URL: http://tclab.kaist.ac.kr/ipe/ +URL: http://ipe7.sourceforge.net/ Source0: http://downloads.sourceforge.net/ipe7/tools/%{name}-%{version}.tar.gz Source1: http://www.gnu.org/licenses/gpl-2.0.txt -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildRequires: zlib-devel, perl +BuildRequires: perl +BuildRequires: zlib-devel %description Figtoipe is a program that reads FIG files (as generated by @@ -31,24 +29,17 @@ perl -ne 'if(m|This file| .. m| USA.$|) { print;}' < figtoipe.cpp > LICENSE cp %{SOURCE1} . %build -%{__cxx} %{optflags} -o figtoipe figtoipe.cpp -lz +%{__cxx} %{optflags} -o figtoipe figtoipe.cpp %{?__global_ldflags} -lz %install -rm -rf $RPM_BUILD_ROOT -mkdir -p $RPM_BUILD_ROOT%{_bindir} -install -m 755 figtoipe $RPM_BUILD_ROOT%{_bindir} -mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 -install -m 644 figtoipe.1 $RPM_BUILD_ROOT%{_mandir}/man1 - -%clean -rm -rf $RPM_BUILD_ROOT - +mkdir -p %{buildroot}%{_bindir} %{buildroot}%{_mandir}/man1 +install -pm0755 figtoipe %{buildroot}%{_bindir} +install -pm0644 figtoipe.1 %{buildroot}%{_mandir}/man1 %files -%defattr(-,root,root,-) -%doc README CHANGES gpl-2.0.txt LICENSE +%doc CHANGES gpl-2.0.txt LICENSE README %{_bindir}/figtoipe -%{_mandir}/man1/figtoipe.1.gz +%{_mandir}/man1/figtoipe.1* %changelog * Sat Aug 03 2013 Fedora Release Engineering - 20091205-7