Fix pkgconfig files with sed. BZ 436539

epel9
Matthew D Truch 17 years ago
parent 50d76f23c1
commit 952ae3f83a

@ -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 <matt at truch.net> - 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 <matt at truch.net> - 3.060-2
- Bump release for rebuild.

Loading…
Cancel
Save