cfitsio-vl.spec 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. Name: cfitsio
  2. Version: 3.240
  3. Release: 1%{?_dist_release}
  4. Summary: Library for manipulating FITS data files
  5. Group: System Environment/Libraries
  6. License: GPLv2+
  7. URL: http://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html
  8. Source0: ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/cfitsio3240.tar.gz
  9. Patch: cfitsio.patch
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildRequires: gcc-gfortran
  12. Requires(post): /sbin/ldconfig
  13. Requires(postun): /sbin/ldconfig
  14. %description
  15. CFITSIO is a library of C and FORTRAN subroutines for reading and writing
  16. data files in FITS (Flexible Image Transport System) data format. CFITSIO
  17. simplifies the task of writing software that deals with FITS files by
  18. providing an easy to use set of high-level routines that insulate the
  19. programmer from the internal complexities of the FITS file format. At the
  20. same time, CFITSIO provides many advanced features that have made it the
  21. most widely used FITS file programming interface in the astronomical
  22. community.
  23. %package devel
  24. Group: Development/Libraries
  25. Summary: Headers required when building programs against cfitsio
  26. Requires: %{name} = %{version}-%{release}
  27. Requires: pkgconfig
  28. %description devel
  29. Headers required when building a program against the cfitsio library.
  30. %package static
  31. Group: Development/Libraries
  32. Summary: Static cfitsio library
  33. %description static
  34. Static cfitsio library; avoid use if possible.
  35. %package docs
  36. Summary: Documentation for cfitsio
  37. Group: Development/Libraries
  38. %description docs
  39. Stand-alone documentation for cfitsio.
  40. %prep
  41. %setup -q -n cfitsio
  42. %patch -p1
  43. %build
  44. FC=f95
  45. export FC
  46. export CC=gcc # fixes -O*, -g
  47. %configure
  48. make shared %{?_smp_mflags}
  49. unset FC
  50. # Manually fix pkgconfig .pc file (BZ 436539)
  51. sed 's|${exec_prefix}/lib|${exec_prefix}/%{_lib}|' cfitsio.pc >cfitsio.pc.new
  52. sed 's|${prefix}/include|${prefix}/include/%{name}|' cfitsio.pc.new >cfitsio.pc
  53. rm -f cfitsio.pc.new
  54. # Manually correct pkgconfig .pc file version
  55. sed 's|3.006|%{version}|' cfitsio.pc >cfitsio.pc.new
  56. mv cfitsio.pc.new cfitsio.pc
  57. %check
  58. make testprog
  59. LD_LIBRARY_PATH=. ./testprog > testprog.lis
  60. cmp -s testprog.lis testprog.out
  61. cmp -s testprog.fit testprog.std
  62. %install
  63. rm -rf %{buildroot}
  64. mkdir -p %{buildroot}
  65. mkdir -p %{buildroot}%{_libdir}
  66. mkdir -p %{buildroot}%{_includedir}/%{name}
  67. make LIBDIR=%{_lib} INCLUDEDIR=include/%{name} CFITSIO_LIB=%{buildroot}%{_libdir} \
  68. CFITSIO_INCLUDE=%{buildroot}%{_includedir}/%{name} install
  69. pushd %{buildroot}%{_libdir}
  70. ln -s libcfitsio.so.0 libcfitsio.so
  71. popd
  72. %clean
  73. rm -rf %{buildroot}
  74. %post -p /sbin/ldconfig
  75. %postun -p /sbin/ldconfig
  76. %files
  77. %defattr(-,root,root,-)
  78. %doc README License.txt changes.txt
  79. %{_libdir}/libcfitsio.so.*
  80. %files devel
  81. %defattr(-,root,root,-)
  82. %{_includedir}/%{name}
  83. %{_libdir}/libcfitsio.so
  84. %{_libdir}/pkgconfig/cfitsio.pc
  85. %files static
  86. %defattr(-,root,root,-)
  87. %{_libdir}/libcfitsio.a
  88. %files docs
  89. %defattr(-,root,root,-)
  90. %doc fitsio.doc fitsio.ps cfitsio.doc cfitsio.ps
  91. %changelog
  92. * Thu Apr 15 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.240-1
  93. - new upstream release
  94. * Sun Aug 30 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.140-3
  95. - Initial build for Vine Linux
  96. * Fri Jul 24 2009 Matthew Truch <matt at truch.net> - 3.140-2
  97. - Bump to include proper tarball.
  98. * Tue Jul 21 2009 Matthew Truch <matt at truch.net> - 3.140-1
  99. - Update to upstream 3.140 release.
  100. - Bump for mass rebuild.
  101. * Wed Jun 17 2009 Matthew Truch <matt at truch.net> - 3.130-5
  102. - Separate -docs noarch subpackage as per BZ 492438.
  103. - Explicitly set file attributes correctly.
  104. * Tue Mar 10 2009 Matthew Truch <matt at truch.net> - 3.130-4
  105. - Set correct version in pkgconfig .pc file.
  106. * Sun Feb 22 2009 Matthew Truch <matt at truch.net> - 3.130-3
  107. - Re-check testprogram output.
  108. - Build for koji, rpm, gcc upgrade.
  109. * Thu Feb 5 2009 Matthew Truch <matt at truch.net> - 3.130-2
  110. - Fix source file naming typo.
  111. * Wed Feb 4 2009 Matthew Truch <matt at truch.net> - 3.130-1
  112. - Update to 3.130 upstream.
  113. * Sat Sep 20 2008 Matthew Truch <matt at truch.net> - 3.100-2
  114. - Test library with included test-suite.
  115. * Fri Sep 19 2008 Matthew Truch <matt at truch.net> - 3.100-1
  116. - Update to 3.100 upstream.
  117. Includes bugfixes and new compression scheme.
  118. * Fri Mar 7 2008 Matthew Truch <matt at truch.net> - 3.060-3
  119. - Properly indicated include and lib directories in .pc file
  120. (BZ 436539)
  121. - Fix typo in -static descrition.
  122. * Mon Feb 11 2008 Matthew Truch <matt at truch.net> - 3.060-2
  123. - Bump release for rebuild.
  124. * Fri Nov 9 2007 Matthew Truch <matt at truch.net> - 3.060-1
  125. - Update to 3.060 bugfix release.
  126. - Add static package (BZ 372801)
  127. * Tue Aug 21 2007 Matthew Truch <matt at truch.net> - 3.040-3
  128. - Bump release for rebuild (build-id etc.)
  129. * Thu Aug 2 2007 Matthew Truch <matt at truch.net> - 3.040-2
  130. - Update License tag
  131. * Mon Jul 9 2007 Matthew Truch <matt at truch.net> - 3.040-1
  132. - Upgrade to version 3.040 of cfitsio.
  133. * Fri Feb 16 2007 Matthew Truch <matt at truch.net> - 3.030-2
  134. - Require pkgconfig for -devel.
  135. - export CC=gcc so we don't clobber $RPM_OPT_FLAGS, thereby
  136. ruining any -debuginfo packages.
  137. See RedHat Bugzilla 229041.
  138. * Fri Jan 5 2007 Matthew Truch <matt at truch.net> - 3.030-1
  139. - Upgrade to version 3.020 of cfitsio.
  140. * Fri Dec 8 2006 Matthew Truch <matt at truch.net> - 3.020-3
  141. - Commit correct patch to configure and Makefiles.
  142. * Fri Dec 8 2006 Matthew Truch <matt at truch.net> - 3.020-2
  143. - Modify spec file to install to correct directories.
  144. - Package cfitsio.pc file in -devel package.
  145. * Wed Dec 6 2006 Matthew Truch <matt at truch.net> - 3.020-1
  146. - Upgrade to revision 3.020 of cfitsio.
  147. * Mon Aug 28 2006 Matthew Truch <matt at truch.net> - 3.006-6
  148. - Bump release for rebuild in prep. for FC6.
  149. * Thu Mar 30 2006 Matthew Truch <matt at truch.net> - 3.006-5
  150. - Include defattr() for devel package as well - bug 187366
  151. * Sun Mar 19 2006 Matthew Truch <matt at truch.net> - 3.006-4
  152. - Don't use macro {buildroot} in build, only in install as per
  153. appended comments to Bugzilla bug 172042
  154. * Fri Mar 10 2006 Matthew Truch <matt at truch.net> - 3.006-3
  155. - Point to f95 instead of g95 as per bugzilla bug 185107
  156. * Tue Feb 28 2006 Matthew Truch <matt at truch.net> - 3.006-2
  157. - Fix spelling typo in name of License.txt file.
  158. * Tue Feb 28 2006 Matthew Truch <matt at truch.net> - 3.006-1
  159. - Use new 3.006 fully official stable (non-beta) upstream package.
  160. * Tue Feb 28 2006 Matthew Truch <matt at truch.net> - 3.005-0.2.beta
  161. - Bump release for FC5 extras rebuild.
  162. * Fri Dec 23 2005 Matthew Truch <matt at truch.net> - 3.005-0.1.beta
  163. - Update to 3.005beta release.
  164. * Mon Nov 14 2005 Matthew Truch <matt at truch.net> - 3.004-0.12.b
  165. - Put in proper URL and Source addresses.
  166. - Sync up spec files.
  167. * Sun Nov 13 2005 Matthew Truch <matt at truch.net> - 3.004-0.11.b
  168. - Clean up unused code in spec file.
  169. * Sun Nov 13 2005 Matthew Truch <matt at truch.net> - 3.004-0.10.b
  170. - Set environment variables correctly.
  171. - Include patch so Makefile will put things where they belong.
  172. * Sun Nov 13 2005 Matthew Truch <matt at truch.net> - 3.004-0.9.b
  173. - Set libdir and includedir correctly for build process.
  174. * Sat Nov 12 2005 Matthew Truch <matt at truch.net> - 3.004-0.8.b
  175. - unset FC once we are done with the build
  176. * Sat Nov 12 2005 Ed Hill <ed@eh3.com> - 3.004-0.7.b
  177. - shared libs and small cleanups
  178. * Sun Nov 06 2005 Matthew Truch <matt at truch.net> - 3.004-0.6.b
  179. - Own include directory created by the devel package.
  180. * Sun Nov 06 2005 Matthew Truch <matt at truch.net> - 3.004-0.5.b
  181. - Shorten summary.
  182. - Improve specfile post and postun syntax.
  183. - Install headers in cfitsio include subdir.
  184. - Include more documentation provided in tarball.
  185. * Sun Nov 06 2005 Matthew Truch <matt at truch.net> - 3.004-0.4.b
  186. - Require cfitsio for cfitsio-devel
  187. * Sat Nov 05 2005 Matthew Truch <matt at truch.net> - 3.004-0.3.b
  188. - Use proper virgin tarball from upstream.
  189. * Sun Oct 30 2005 Matthew Truch <matt at truch.net> - 3.004-0.2.b
  190. - Include gcc-gfortran build requirment and make sure it gets used.
  191. - Use macros instead of hard coded paths.
  192. - Include home page in description
  193. * Sat Oct 29 2005 Matthew Truch <matt at truch.net> - 3.004-0.1.b
  194. - Initial spec file for Fedora Extras.