libfli-vl.spec 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. %define majorver 1
  2. Name: libfli
  3. Summary: Library for FLI CCD Camera & Filter Wheels
  4. Version: 1.7
  5. Release: 10%{?_dist_release}
  6. Group: System Environment/Libraries
  7. # Code and LICENSE.LIB have different versions of the BSD license
  8. # https://sourceforge.net/tracker2/?func=detail&aid=2568511&group_id=90275&atid=593019
  9. License: BSD
  10. URL: http://indi.sourceforge.net/index.php
  11. Source0: http://downloads.sourceforge.net/indi/%{name}%{majorver}_%{version}.tar.gz
  12. Patch0: libfli-suffix.patch
  13. Buildroot: %{_tmppath}/%{name}-%{version}-root
  14. BuildRequires: cmake
  15. %description
  16. Finger Lakes Instrument library is used by applications to control FLI
  17. line of CCDs and Filter wheels
  18. %package devel
  19. Summary: Libraries, includes, etc. used to develop an application with %{name}
  20. Summary(ja): %{name} を用いるアプリケーションの開発に必要なファイル
  21. Group: Development/Libraries
  22. Requires: %{name} = %{version}-%{release}
  23. %description devel
  24. These are the header files needed to develop a %{name} application
  25. %prep
  26. %setup -q -n %{name}%{majorver}-%{version}
  27. %patch0 -p1
  28. %build
  29. mkdir -p %{_target_platform}
  30. pushd %{_target_platform}
  31. CFLAGS="${CFLAGS:-%optflags}" \
  32. CXXFLAGS="${CXXFLAGS:-%optflags}" \
  33. FFLAGS="${FFLAGS:-%optflags}" \
  34. %cmake \
  35. -DCMAKE_BUILD_TYPE=release \
  36. -DDATA_INSTALL_DIR:PATH=%{_datadir} \
  37. ..
  38. popd
  39. make VERBOSE=1 %{?_smp_mflags} -C %{_target_platform}
  40. %install
  41. rm -fr %{buildroot}
  42. make install DESTDIR=%{buildroot} -C %{_target_platform}
  43. %clean
  44. rm -fr %{buildroot}
  45. %post -p /sbin/ldconfig
  46. %postun -p /sbin/ldconfig
  47. %files
  48. %defattr(-,root,root,-)
  49. %doc LICENSE.BSD
  50. %{_libdir}/*.so.*
  51. %files devel
  52. %defattr(-,root,root,-)
  53. %{_includedir}/*
  54. %{_libdir}/*.so
  55. %changelog
  56. * Wed Feb 25 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 1.7-10
  57. - rebuilt on current VineSeed
  58. * Mon May 21 2012 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.7-9
  59. - rebuild with rpm-4.8.1-3
  60. * Sat Sep 05 2009 NAKAMURA Kenta <kenta@vinelinux.org> - 1.7-8
  61. - use %%cmake macro
  62. * Sun Aug 30 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.7-7
  63. - Initial build for Vine Linux
  64. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7-6
  65. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  66. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7-5
  67. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  68. * Fri Feb 06 2009 Sergio Pascual <sergiopr at fedoraproject.org> - 1.7-4
  69. - Adding disttag
  70. * Thu Feb 05 2009 Sergio Pascual <sergiopr at fedoraproject.org> - 1.7-3
  71. - Description lines wrapped around
  72. - Consistent macros
  73. - Redownloaded source from upstream
  74. * Mon Jan 28 2009 Sergio Pascual <sergiopr at fedoraproject.org> - 1.7-2
  75. - Added patch to use LIB_SUFFIX
  76. * Mon Jan 28 2009 Sergio Pascual <sergiopr at fedoraproject.org> - 1.7-1
  77. - First specfile version