libeina-vl.spec 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. %global _missing_doc_files_terminate_build 0
  2. Summary: Data Type Library
  3. Name: libeina
  4. Version: 1.0.0
  5. Release: 3%{?_dist_release}
  6. License: LGPLv2+
  7. Group: System Environment/Libraries
  8. URL: http://www.enlightenment.org/
  9. Source: http://download.enlightenment.org/releases/eina-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  11. BuildRequires: chrpath
  12. BuildRequires: pkgconfig
  13. BuildRequires: doxygen
  14. BuildRequires: check-devel
  15. %description
  16. Eina is a multi-platform library that provides optimized data types
  17. and useful tools for projects.
  18. %package devel
  19. Summary: Eina headers, documentation and test programs
  20. Group: Development/Libraries
  21. Requires: %{name} = %{version}-%{release}
  22. Requires: pkgconfig
  23. %description devel
  24. Headers, test programs and documentation for %{name}.
  25. %prep
  26. %setup -q -n eina-%{version}
  27. # Avoid lib64 rpaths
  28. %if "%{_libdir}" != "/usr/lib"
  29. sed -i -e 's|"/lib /usr/lib|"/%{_lib} %{_libdir}|' configure
  30. %endif
  31. %build
  32. %configure --disable-static
  33. ## Tested export for tests
  34. ## export LD_LIBRARY_PATH=$( pwd )/src/lib/.libs/libeina.so
  35. make %{?_smp_mflags}
  36. make doc %{?_smp_mflags}
  37. %install
  38. rm -rf %{buildroot}
  39. make install DESTDIR=%{buildroot}
  40. # remove unfinished manpages
  41. find doc/man/man3 -size -100c -delete
  42. for l in todo %{name}.dox
  43. do
  44. rm -f doc/man/man3/$l.3
  45. done
  46. mkdir -p %{buildroot}%{_mandir}/man3
  47. install -Dpm0644 doc/man/man3/* %{buildroot}%{_mandir}/man3
  48. # remove libtool archive along with stripping
  49. find %{buildroot}/ -type f -iname '*.la' -exec rm {} \;
  50. find %{buildroot}/ -type f -iname '*.a' -exec rm {} \;
  51. ## Can be enabled when upstream fixed the tests
  52. ## needs --enable-tests with %%configure
  53. ## %check
  54. ## make check
  55. %clean
  56. rm -rf %{buildroot}
  57. %post -p /sbin/ldconfig
  58. %postun -p /sbin/ldconfig
  59. %files
  60. %defattr(-,root,root,-)
  61. # No ChangeLog included. Zero byte.
  62. %doc AUTHORS COPYING
  63. %{_libdir}/*.so.*
  64. #%{_libdir}/eina
  65. %files devel
  66. %defattr(-,root,root,-)
  67. %{_includedir}/*
  68. %{_mandir}/man3/*
  69. %{_libdir}/*.so
  70. %{_libdir}/pkgconfig/*
  71. %changelog
  72. * Sun Feb 27 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.0.0-3
  73. - Initial build for Vine Linux
  74. * Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-2
  75. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  76. * Mon Jan 31 2011 Thomas Janssen <thomasj@fedoraproject.org> 1.0.0-1
  77. - final 1.0.0 release
  78. * Wed Dec 15 2010 Thomas Janssen <thomasj@fedoraproject.org> 1.0.0-0.1.beta3
  79. - beta 3 release
  80. * Tue Nov 16 2010 Thomas Janssen <thomasj@fedoraproject.org> 1.0.0-0.1.beta2
  81. - beta 2 release
  82. * Fri Nov 05 2010 Thomas Janssen <thomasj@fedoraproject.org> 1.0.0-0.1.beta1
  83. - beta 1 release
  84. * Fri Jul 02 2010 Thomas Janssen <thomasj@fedoraproject.org> 0.9.9.49898-1
  85. - libeina 0.9.9.49898 snapshot release
  86. * Fri Jun 11 2010 Thomas Janssen <thomasj@fedoraproject.org> 0.9.9.49539-1
  87. - libeina 0.9.9.49539 snapshot release
  88. * Tue Feb 23 2010 Thomas Janssen <thomasj@fedoraproject.org> 0.9.9.063-6
  89. - Disabled tests again until they are fixed
  90. * Mon Feb 22 2010 Thomas Janssen <thomasj@fedoraproject.org> 0.9.9.063-5
  91. - Added missing BR doxygen check
  92. * Sun Feb 21 2010 Thomas Janssen <thomasj@fedoraproject.org> 0.9.9.063-4
  93. - added Requires for -devel
  94. - corrected license
  95. - enabled tests
  96. * Fri Feb 19 2010 Thomas Janssen <thomasj@fedoraproject.org> 0.9.9.063-3
  97. - name changed from eina-0 to libeina
  98. - spec fixes
  99. * Mon Feb 15 2010 Thomas Janssen <thomasj@fedoraproject.org> 0.9.9.063-2
  100. - added missing man pages
  101. * Mon Feb 15 2010 Thomas Janssen <thomasj@fedoraproject.org> 0.9.9.063-1
  102. - Initial Fedora release