From b6a8e8f4f4156e9c227a610eac7c304d672d1c61 Mon Sep 17 00:00:00 2001 From: Sergio Pascual Date: Nov 11 2009 14:37:40 +0000 Subject: - New upstream version, includes pkgconfig file --- diff --git a/CCfits-1.6-removerpath.patch b/CCfits-1.6-removerpath.patch index 2ad1510..63e21c4 100644 --- a/CCfits-1.6-removerpath.patch +++ b/CCfits-1.6-removerpath.patch @@ -1,7 +1,7 @@ -diff -ur CCfits.old/Makefile.in CCfits/Makefile.in ---- CCfits.old/Makefile.in 2006-12-11 18:33:17.000000000 +0100 -+++ CCfits/Makefile.in 2006-12-11 18:32:32.000000000 +0100 -@@ -241,12 +241,12 @@ +diff -ur CCfits/Makefile.in CCfits.rpath/Makefile.in +--- CCfits/Makefile.in 2009-09-09 17:48:28.000000000 +0200 ++++ CCfits.rpath/Makefile.in 2009-09-10 14:28:27.000000000 +0200 +@@ -244,12 +244,12 @@ # generation like gcc does AUTOMAKE_OPTIONS = foreign # no-dependencies SUBDIRS = vs.net @@ -13,14 +13,16 @@ diff -ur CCfits.old/Makefile.in CCfits/Makefile.in cookbook_LDADD = libCCfits.la -cookbook_LDFLAGS = -R $(R_LIB_PATH) -R $(CXX_LIB_PATH) +cookbook_LDFLAGS = + pkgconfigdir = $(libdir)/pkgconfig + pkgconfig_DATA = CCfits.pc INCLUDES = -I$(top_srcdir)/.. - lib_LTLIBRARIES = libCCfits.la - libCCfits_la_SOURCES = \ -@@ -273,7 +273,7 @@ +@@ -277,8 +277,8 @@ + # This will tell shared library which STD C++ library to use without # needing the user to use LD_LIBRARY_PATH environment variable - libCCfits_la_LIBADD = $(LIBSTDCPP) +-libCCfits_la_LIBADD = $(LIBSTDCPP) -libCCfits_la_LDFLAGS = -R $(R_LIB_PATH) -R $(CXX_LIB_PATH) ++libCCfits_la_LIBADD = +libCCfits_la_LDFLAGS = libCCfits_ladir = $(pkgincludedir) libCCfits_la_HEADERS = \ diff --git a/CCfits-pkgconfig.patch b/CCfits-pkgconfig.patch new file mode 100644 index 0000000..56b3892 --- /dev/null +++ b/CCfits-pkgconfig.patch @@ -0,0 +1,14 @@ +diff -ur CCfits/CCfits.pc.in CCfits.pkg/CCfits.pc.in +--- CCfits/CCfits.pc.in 2009-09-02 16:34:32.000000000 +0200 ++++ CCfits.pkg/CCfits.pc.in 2009-09-10 16:24:41.000000000 +0200 +@@ -5,8 +5,8 @@ + + Name: CCfits + Description: Object Oriented C++ Interface to CFITSIO Library +-Requires: cfitsio ++Requires.private: cfitsio > 3.08 + Version: 2.2 +-Libs: -L${libdir} -lCCfits @LIBS@ ++Libs: -L${libdir} -lCCfits + Cflags: -I${includedir} + diff --git a/CCfits.spec b/CCfits.spec index 6bdd88d..60b89ef 100644 --- a/CCfits.spec +++ b/CCfits.spec @@ -1,6 +1,6 @@ Name: CCfits -Version: 2.1 -Release: 3%{?dist} +Version: 2.2 +Release: 1%{?dist} Summary: A C++ interface for cfitsio Group: Development/Libraries @@ -8,10 +8,11 @@ License: BSD URL: http://heasarc.gsfc.nasa.gov/docs/software/fitsio/ccfits Source0: http://heasarc.gsfc.nasa.gov/docs/software/fitsio/ccfits/%{name}-%{version}.tar.gz Patch0: CCfits-1.6-removerpath.patch -Patch1: CCfits-includecfitsiopath.patch +Patch1: CCfits-pkgconfig.patch Buildroot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildRequires: cfitsio-devel >= 3.130 +Requires: pkgconfig %description CCfits is an object oriented interface to the cfitsio library. It is designed @@ -31,6 +32,7 @@ application. %package docs Summary: Documentation for %{name}, includes full API docs Group: Documentation +BuildArch: noarch %description docs This package contains the full API documentation for %{name}. @@ -39,28 +41,25 @@ This package contains the full API documentation for %{name}. %setup -q -n CCfits %patch0 -p1 %patch1 -p1 -#%{__sed} -e 's|#include "fitsio.h"|#include |g' -i CCfits.h FITSBase.h -#%{__sed} -e 's|#include "longnam.h"|#include |g' -i CCfits.h FITSBase.h -# Remove perl files in html docs -%{__rm} -rf %{_builddir}/%{name}/html/*.pl +rm -rf %{_builddir}/%{name}/html/*.pl %build %configure --disable-static --with-cfitsio=%{_prefix} --with-cfitsio-include=%{_includedir}/cfitsio -%{__make} %{?_smp_mflags} +make %{?_smp_mflags} %install -%{__rm} -rf %{buildroot} -%{__make} %{?_smp_mflags} install DESTDIR=%{buildroot} +rm -rf %{buildroot} +make %{?_smp_mflags} install DESTDIR=%{buildroot} %clean -%{__rm} -rf %{buildroot} +rm -rf %{buildroot} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files -%defattr(-,root,root) +%defattr(-,root,root,-) %doc License.txt %{_libdir}/*so.* @@ -69,6 +68,7 @@ This package contains the full API documentation for %{name}. %doc CHANGES %exclude %{_bindir}/cookbook %{_libdir}/*.so +%{_libdir}/pkgconfig/*.pc %exclude %{_libdir}/*.la %{_includedir}/* @@ -77,6 +77,12 @@ This package contains the full API documentation for %{name}. %doc html %changelog +* Tue Nov 11 2009 Sergio Pascual - 2.2-1 +- New upstream version, includes pkgconfig file + +* Tue Jun 16 2009 Sergio Pascual - 2.1-4 +- Noarch subpackage for docs + * Mon Feb 23 2009 Fedora Release Engineering - 2.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild diff --git a/sources b/sources index 1e13311..2892f08 100644 --- a/sources +++ b/sources @@ -1,2 +1 @@ -bb049a22f9ff50ef983633dd270f5dbd CCfits-2.0.tar.gz -5ce1135efe2bfcbf7b94e10d1d483c71 CCfits-2.1.tar.gz +68e07adea9ecfb6aba0ac082111053cf CCfits-2.2.tar.gz