Group :: Sistema/Bibliotecas
RPM: libccfits
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define _name CCfits
Name: libccfits
Version: 2.6
Release: alt1
Summary: A C++ interface for cfitsio
Group: System/Libraries
License: BSD
Url: https://heasarc.gsfc.nasa.gov/docs/software/fitsio/ccfits
Source: https://heasarc.gsfc.nasa.gov/docs/software/fitsio/ccfits/%_name-%version.tar.gz
Patch: CCfits-2.6-alt-removerpath.patch
BuildRequires: autoconf-archive gcc-c++ gcc-fortran libcfitsio-devel
%description
CCfits is an object oriented interface to the cfitsio library. It is
designed to make the capabilities of cfitsio available to programmers
working in C++.
It is written in ANSI C++ and implemented using the C++ Standard Library
with namespaces, exception handling, and member template functions.
%package devel
Summary: Headers for developing programs that will use %name
Group: Development/C++
Requires: %name = %version-%release
%description devel
These are the header files and libraries needed to develop a %name
application.
%package devel-doc
Summary: Development documentation for %name
Group: Development/Documentation
BuildArch: noarch
Conflicts: %name < %version
%description devel-doc
This package contains the full API documentation for %name.
%prep
%setup -n %_name-%version
%patch -p1
rm -rf html/*.pl
%build
%configure --disable-static \
--with-cfitsio-include=%_includedir/cfitsio
%make_build
%install
%makeinstall_std
mkdir -p %buildroot%_datadir/doc/%name
cp -R html %buildroot%_datadir/doc/%name/
rm -f %buildroot%_bindir/cookbook
%files
%_libdir/*.so.*
%doc License.txt
%files devel
%_libdir/*.so
%_pkgconfigdir/%_name.pc
%_includedir/%_name/
%doc CHANGES
%files devel-doc
%_datadir/doc/%name/
%changelog
…
Todas as alterações você pod ver aqui
Name: libccfits
Version: 2.6
Release: alt1
Summary: A C++ interface for cfitsio
Group: System/Libraries
License: BSD
Url: https://heasarc.gsfc.nasa.gov/docs/software/fitsio/ccfits
Source: https://heasarc.gsfc.nasa.gov/docs/software/fitsio/ccfits/%_name-%version.tar.gz
Patch: CCfits-2.6-alt-removerpath.patch
BuildRequires: autoconf-archive gcc-c++ gcc-fortran libcfitsio-devel
%description
CCfits is an object oriented interface to the cfitsio library. It is
designed to make the capabilities of cfitsio available to programmers
working in C++.
It is written in ANSI C++ and implemented using the C++ Standard Library
with namespaces, exception handling, and member template functions.
%package devel
Summary: Headers for developing programs that will use %name
Group: Development/C++
Requires: %name = %version-%release
%description devel
These are the header files and libraries needed to develop a %name
application.
%package devel-doc
Summary: Development documentation for %name
Group: Development/Documentation
BuildArch: noarch
Conflicts: %name < %version
%description devel-doc
This package contains the full API documentation for %name.
%prep
%setup -n %_name-%version
%patch -p1
rm -rf html/*.pl
%build
%configure --disable-static \
--with-cfitsio-include=%_includedir/cfitsio
%make_build
%install
%makeinstall_std
mkdir -p %buildroot%_datadir/doc/%name
cp -R html %buildroot%_datadir/doc/%name/
rm -f %buildroot%_bindir/cookbook
%files
%_libdir/*.so.*
%doc License.txt
%files devel
%_libdir/*.so
%_pkgconfigdir/%_name.pc
%_includedir/%_name/
%doc CHANGES
%files devel-doc
%_datadir/doc/%name/
%changelog
…
Todas as alterações você pod ver aqui