From 952ae3f83a36c44abd20ad1e6c28011f2990ba4f Mon Sep 17 00:00:00 2001 From: Matthew D Truch Date: Mar 07 2008 21:19:12 +0000 Subject: Fix pkgconfig files with sed. BZ 436539 --- diff --git a/cfitsio.spec b/cfitsio.spec index f8284ba..b3d6635 100644 --- a/cfitsio.spec +++ b/cfitsio.spec @@ -1,6 +1,6 @@ Name: cfitsio Version: 3.060 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Library for manipulating FITS data files Group: Development/Libraries @@ -38,7 +38,7 @@ Group: Development/Libraries Summary: Static cfitsio library %description static -Static cfitsio library; avoid use is possible. +Static cfitsio library; avoid use if possible. %prep %setup -q -n cfitsio @@ -51,6 +51,10 @@ export CC=gcc # fixes -O*, -g %configure make shared %{?_smp_mflags} unset FC +# Manually fix pkgconfig .pc file (BZ 436539) +sed 's|${exec_prefix}/lib|${exec_prefix}/%{_lib}|' cfitsio.pc >cfitsio.pc.new +sed 's|${prefix}/include|${prefix}/include/%{name}|' cfitsio.pc.new >cfitsio.pc +rm -f cfitsio.pc.new %install rm -rf %{buildroot} @@ -85,6 +89,11 @@ rm -rf %{buildroot} %{_libdir}/libcfitsio.a %changelog +* Fri Mar 7 2008 Matthew Truch - 3.060-3 +- Properly indicated include and lib directories in .pc file + (BZ 436539) +- Fix typo in -static descrition. + * Mon Feb 11 2008 Matthew Truch - 3.060-2 - Bump release for rebuild.