|
|
|
@ -1,9 +1,19 @@
|
|
|
|
|
## START: Set by rpmautospec
|
|
|
|
|
## (rpmautospec version 0.6.5)
|
|
|
|
|
## RPMAUTOSPEC: autorelease, autochangelog
|
|
|
|
|
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
|
|
|
|
release_number = 2;
|
|
|
|
|
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
|
|
|
|
|
print(release_number + base_release_number - 1);
|
|
|
|
|
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
|
|
|
|
|
## END: Set by rpmautospec
|
|
|
|
|
|
|
|
|
|
Name: cfitsio
|
|
|
|
|
Version: 4.1.0
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Version: 4.4.0
|
|
|
|
|
Release: %autorelease
|
|
|
|
|
Summary: Library for manipulating FITS data files
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
|
License: CFITSIO
|
|
|
|
|
URL: http://heasarc.gsfc.nasa.gov/fitsio/
|
|
|
|
|
Source0: http://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/cfitsio-%{version}.tar.gz
|
|
|
|
|
# Remove soname version check
|
|
|
|
@ -75,11 +85,7 @@ compression algorithm.
|
|
|
|
|
amount of compression
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
%patch1 -p1
|
|
|
|
|
%patch2 -p1
|
|
|
|
|
%patch3 -p1 -b .ldflags
|
|
|
|
|
%patch4 -p1 -b .rpath
|
|
|
|
|
%autosetup -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%configure --enable-reentrant -with-bzip2
|
|
|
|
@ -93,13 +99,9 @@ cmp -s testprog.lis testprog.out
|
|
|
|
|
cmp -s testprog.fit testprog.std
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
|
mkdir -p %{buildroot}%{_libdir}
|
|
|
|
|
mkdir -p %{buildroot}%{_includedir}/%{name}
|
|
|
|
|
make LIBDIR=%{_libdir} INCLUDEDIR=%{_includedir}/%{name} \
|
|
|
|
|
%make_install LIBDIR=%{_libdir} INCLUDEDIR=%{_includedir}/%{name} \
|
|
|
|
|
CFITSIO_LIB=%{buildroot}%{_libdir} \
|
|
|
|
|
CFITSIO_INCLUDE=%{buildroot}%{_includedir}/%{name} \
|
|
|
|
|
install
|
|
|
|
|
CFITSIO_INCLUDE=%{buildroot}%{_includedir}/%{name}
|
|
|
|
|
cp -p f{,un}pack %{buildroot}%{_bindir}
|
|
|
|
|
|
|
|
|
|
chmod 755 %{buildroot}%{_libdir}/libcfitsio.so.*
|
|
|
|
@ -109,28 +111,48 @@ chmod 755 %{buildroot}%{_bindir}/f{,un}pack
|
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc README License.txt docs/changes.txt
|
|
|
|
|
%{_libdir}/libcfitsio.so.9*
|
|
|
|
|
%doc README.md docs/changes.txt
|
|
|
|
|
%license licenses/NASA_Open_Source_Agreement_1.3.txt
|
|
|
|
|
%{_libdir}/libcfitsio.so.10*
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%doc cookbook.*
|
|
|
|
|
%doc utilities/cookbook.*
|
|
|
|
|
%{_includedir}/%{name}
|
|
|
|
|
%{_libdir}/libcfitsio.so
|
|
|
|
|
%{_libdir}/pkgconfig/cfitsio.pc
|
|
|
|
|
|
|
|
|
|
%files static
|
|
|
|
|
%doc License.txt
|
|
|
|
|
%license licenses/NASA_Open_Source_Agreement_1.3.txt
|
|
|
|
|
%{_libdir}/libcfitsio.a
|
|
|
|
|
|
|
|
|
|
%files docs
|
|
|
|
|
%doc docs/fitsio.doc docs/fitsio.pdf docs/cfitsio.pdf License.txt
|
|
|
|
|
%doc docs/fitsio.pdf docs/cfitsio.pdf
|
|
|
|
|
%license licenses/NASA_Open_Source_Agreement_1.3.txt
|
|
|
|
|
|
|
|
|
|
%files -n fpack
|
|
|
|
|
%doc docs/fpackguide.pdf License.txt
|
|
|
|
|
%doc docs/fpackguide.pdf
|
|
|
|
|
%license licenses/NASA_Open_Source_Agreement_1.3.txt
|
|
|
|
|
%{_bindir}/fpack
|
|
|
|
|
%{_bindir}/funpack
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Dec 24 2024 Dmitriy Samoylik <samoylikdv@msvsphere-os.ru> - 4.4.0-2
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
## START: Generated by rpmautospec
|
|
|
|
|
* Tue Jul 11 2023 Sergio Pascual <sergiopr@fedoraproject.org> - 4.2.0-4
|
|
|
|
|
- Use SPDX License
|
|
|
|
|
- License name is CFITSIO
|
|
|
|
|
|
|
|
|
|
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.0-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jan 05 2023 Kalev Lember <klember@redhat.com> - 4.2.0-2
|
|
|
|
|
- Use make_install macro
|
|
|
|
|
|
|
|
|
|
* Fri Nov 25 2022 Sergio Pascual <sergiopr@fedoraproject.org> - 4.2.0-1
|
|
|
|
|
- New upstream version 4.2.0
|
|
|
|
|
|
|
|
|
|
* Wed Aug 24 2022 Orion Poplawski <orion@nwra.com> - 4.1.0-1
|
|
|
|
|
- Update to 4.1.0
|
|
|
|
|
|
|
|
|
@ -334,7 +356,7 @@ chmod 755 %{buildroot}%{_bindir}/f{,un}pack
|
|
|
|
|
- Update to upstream 3.240 release.
|
|
|
|
|
|
|
|
|
|
* Mon Nov 2 2009 Matthew Truch <matt at truch.net> - 3.210-2
|
|
|
|
|
- Re-introduce library soname patch (accidentally removed it).
|
|
|
|
|
- Re-introduce library soname patch (accidentally removed it).
|
|
|
|
|
|
|
|
|
|
* Tue Oct 20 2009 Matthew Truch <matt at truch.net> - 3.210-1
|
|
|
|
|
- Update to upstream 3.210 release.
|
|
|
|
@ -348,14 +370,14 @@ chmod 755 %{buildroot}%{_bindir}/f{,un}pack
|
|
|
|
|
|
|
|
|
|
* Wed Jun 17 2009 Matthew Truch <matt at truch.net> - 3.130-5
|
|
|
|
|
- Separate -docs noarch subpackage as per BZ 492438.
|
|
|
|
|
- Explicitly set file attributes correctly.
|
|
|
|
|
- Explicitly set file attributes correctly.
|
|
|
|
|
|
|
|
|
|
* Tue Mar 10 2009 Matthew Truch <matt at truch.net> - 3.130-4
|
|
|
|
|
- Set correct version in pkgconfig .pc file.
|
|
|
|
|
- Set correct version in pkgconfig .pc file.
|
|
|
|
|
|
|
|
|
|
* Sun Feb 22 2009 Matthew Truch <matt at truch.net> - 3.130-3
|
|
|
|
|
- Re-check testprogram output.
|
|
|
|
|
- Build for koji, rpm, gcc upgrade.
|
|
|
|
|
- Build for koji, rpm, gcc upgrade.
|
|
|
|
|
|
|
|
|
|
* Thu Feb 5 2009 Matthew Truch <matt at truch.net> - 3.130-2
|
|
|
|
|
- Fix source file naming typo.
|
|
|
|
@ -364,7 +386,7 @@ chmod 755 %{buildroot}%{_bindir}/f{,un}pack
|
|
|
|
|
- Update to 3.130 upstream.
|
|
|
|
|
|
|
|
|
|
* Sat Sep 20 2008 Matthew Truch <matt at truch.net> - 3.100-2
|
|
|
|
|
- Test library with included test-suite.
|
|
|
|
|
- Test library with included test-suite.
|
|
|
|
|
|
|
|
|
|
* Fri Sep 19 2008 Matthew Truch <matt at truch.net> - 3.100-1
|
|
|
|
|
- Update to 3.100 upstream.
|
|
|
|
@ -393,8 +415,8 @@ chmod 755 %{buildroot}%{_bindir}/f{,un}pack
|
|
|
|
|
|
|
|
|
|
* Fri Feb 16 2007 Matthew Truch <matt at truch.net> - 3.030-2
|
|
|
|
|
- Require pkgconfig for -devel.
|
|
|
|
|
- export CC=gcc so we don't clobber $RPM_OPT_FLAGS, thereby
|
|
|
|
|
ruining any -debuginfo packages.
|
|
|
|
|
- export CC=gcc so we don't clobber $RPM_OPT_FLAGS, thereby
|
|
|
|
|
ruining any -debuginfo packages.
|
|
|
|
|
See RedHat Bugzilla 229041.
|
|
|
|
|
|
|
|
|
|
* Fri Jan 5 2007 Matthew Truch <matt at truch.net> - 3.030-1
|
|
|
|
@ -417,9 +439,9 @@ chmod 755 %{buildroot}%{_bindir}/f{,un}pack
|
|
|
|
|
- Include defattr() for devel package as well - bug 187366
|
|
|
|
|
|
|
|
|
|
* Sun Mar 19 2006 Matthew Truch <matt at truch.net> - 3.006-4
|
|
|
|
|
- Don't use macro {buildroot} in build, only in install as per
|
|
|
|
|
- Don't use macro {buildroot} in build, only in install as per
|
|
|
|
|
appended comments to Bugzilla bug 172042
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Mar 10 2006 Matthew Truch <matt at truch.net> - 3.006-3
|
|
|
|
|
- Point to f95 instead of g95 as per bugzilla bug 185107
|
|
|
|
|
|
|
|
|
@ -478,3 +500,4 @@ chmod 755 %{buildroot}%{_bindir}/f{,un}pack
|
|
|
|
|
* Sat Oct 29 2005 Matthew Truch <matt at truch.net> - 3.004-0.1.b
|
|
|
|
|
- Initial spec file for Fedora Extras.
|
|
|
|
|
|
|
|
|
|
## END: Generated by rpmautospec
|