lensfun-vl.spec 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. # Fedora pkg-review: http://bugzilla.redhat.com/466764
  2. Name: lensfun
  3. Version: 0.2.5
  4. Summary: Library to rectify defects introduced by photographic lenses
  5. Release: 1%{?_dist_release}
  6. License: LGPLv3 and CC-BY-SA
  7. Group: System Environment/Libraries
  8. URL: http://lensfun.berlios.de/
  9. Source0: http://download.berlios.de/lensfun/lensfun-%{version}.tar.bz2
  10. Patch0: lensfun-0.2.5-cpuid.patch
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  12. BuildRequires: doxygen
  13. BuildRequires: glib2-devel
  14. BuildRequires: libpng-devel
  15. BuildRequires: pkgconfig
  16. BuildRequires: python
  17. BuildRequires: zlib-devel
  18. Distribution: Vine Linux
  19. Vendor: Project Vine
  20. Packager: iwaim
  21. %description
  22. The lensfun library provides an open source database of photographic lenses and
  23. their characteristics. It not only provides a way to read and search the
  24. database, but also provides a set of algorithms for correcting images based on
  25. detailed knowledge of lens properties. Right now lensfun is designed to correct
  26. distortion, transversal (also known as lateral) chromatic aberrations,
  27. vignetting and color contribution of a lens.
  28. %package devel
  29. Summary: Development toolkit for %{name}
  30. Group: Development/Libraries
  31. License: LGPLv3
  32. Requires: %{name} = %{version}-%{release}
  33. Requires: pkgconfig
  34. %description devel
  35. This package contains library and header files needed to build applications
  36. using lensfun.
  37. %prep
  38. %setup -q
  39. %patch0 -p1 -b .cpuid
  40. %build
  41. # We can't use macro configure
  42. ./configure \
  43. --cflags="${CFLAGS:-%optflags}" \
  44. --cxxflags="${CXXFLAGS:-%optflags}" \
  45. --prefix=%{_prefix} \
  46. --bindir=%{_bindir} \
  47. --sysconfdir=%{_sysconfdir} \
  48. --datadir=%{_datadir}/lensfun \
  49. --libdir=%{_libdir} \
  50. --includedir=%{_includedir} \
  51. --libexecdir=%{_libexecdir} \
  52. %ifnarch %{ix86} x86_64
  53. --vectorization \
  54. %endif
  55. --target=..generic
  56. # set GCC.LDFLAGS to avoid stripping and useless -debuginfo
  57. make AUTODEP=0 %{?_smp_mflags} lensfun manual \
  58. V=1 \
  59. GCC.LDFLAGS.release=""
  60. %install
  61. rm -rf %{buildroot}
  62. make AUTODEP=0 INSTALL_PREFIX=%{buildroot} install
  63. %clean
  64. rm -rf %{buildroot}
  65. %post -p /sbin/ldconfig
  66. %postun -p /sbin/ldconfig
  67. %files
  68. %defattr(-,root,root,-)
  69. %dir %{_docdir}/%{name}-%{version}/
  70. %doc %{_docdir}/%{name}-%{version}/README
  71. %doc %{_docdir}/%{name}-%{version}/*.txt
  72. # currently, nothing is covered by GPLv3 (no apps in the package), no need to
  73. # confuse people:
  74. %exclude %{_docdir}/%{name}-%{version}/gpl-3.0.txt
  75. %{_datadir}/lensfun/
  76. %{_libdir}/liblensfun.so.0*
  77. %files devel
  78. %defattr(-,root,root,-)
  79. %doc %{_docdir}/%{name}-%{version}/manual/
  80. %{_includedir}/lensfun.h
  81. %{_libdir}/liblensfun.so
  82. %{_libdir}/pkgconfig/lensfun.pc
  83. %changelog
  84. * Sun Sep 4 2011 IWAI, Masaharu <iwai@alib.jp> 0.2.5-1
  85. - build for Vine Linux: based Fedora 0.2.5-5
  86. * Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.5-5
  87. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  88. * Wed Sep 29 2010 jkeating - 0.2.5-4
  89. - Rebuilt for gcc bug 634757
  90. * Mon Sep 20 2010 Nils Philippsen <nils@redhat.com> 0.2.5-3
  91. - backport cpuid fixes (#631674)
  92. * Mon Jul 26 2010 Dan Horák <dan[at]danny.cz> 0.2.5-2
  93. - disable SSE vectorization on non x86 arches
  94. * Mon Jun 07 2010 Nils Philippsen <nils@redhat.com> 0.2.5-1
  95. - lensfun-0.2.5
  96. - add CC-BY-SA to main package license tag for lens data
  97. - don't ship GPLv3 text as nothing is licensed under it currently
  98. - mark documentation files as such
  99. - shorten summaries, expand package descriptions
  100. * Sun Oct 18 2009 Rex Dieter <rdieter@fedoraproject.orG> 0.2.4-1
  101. - lensfun-0.2.4 (#529506)
  102. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.3-5
  103. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  104. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.3-4
  105. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  106. * Fri Dec 12 2008 Rex Dieter <rdieter@fedoraproject.org> 0.2.3-3
  107. - rebuild for pkgconfig deps
  108. * Mon Nov 10 2008 Rex Dieter <rdieter@fedoraproject.org> 0.2.3-2
  109. - -devel: Requires: pkgconfig
  110. * Mon Nov 10 2008 Rex Dieter <rdieter@fedoraproject.org> 0.2.3-1
  111. - lensfun-0.2.3
  112. - fix SOURCE Url
  113. - configure --target=..generic
  114. * Mon Oct 13 2008 Rex Dieter <rdieter@fedoraproject.org> 0.2.2b-3
  115. - BR: doxygen
  116. * Mon Oct 13 2008 Rex Dieter <rdieter@fedoraproject.org> 0.2.2b-2
  117. - fix subpkg deps
  118. * Sun Sep 28 2008 Rex Dieter <rdieter@fedoraproject.org> 0.2.2b-1
  119. - adapt for fedora
  120. * Tue Jun 24 2008 Helio Chissini de Castro <helio@mandriva.com> 0.2.2b-1mdv2009.0
  121. + Revision: 228769
  122. - Added missing buildrequires
  123. - import lensfun