raptor2-vl.spec 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. Name: raptor2
  2. Summary: RDF Parser Toolkit for Redland
  3. Version: 2.0.4
  4. Release: 3%{?_dist_release}
  5. License: GPLv2+ or LGPLv2+ or ASL 2.0
  6. Group: System Environment/Libraries
  7. URL: http://librdf.org/raptor/
  8. Source: http://download.librdf.org/source/raptor2-%{version}.tar.gz
  9. ## upstreamable patches
  10. # make docs not conflict with raptor(1), DOC_MODULE=raptor2
  11. Patch50: raptor2-2.0.3-raptor2_doc.patch
  12. BuildRequires: curl-devel
  13. BuildRequires: gtk-doc
  14. BuildRequires: libxslt-devel
  15. BuildRequires: yajl-devel
  16. # when /usr/bin/rappor moved here -- rex
  17. Conflicts: raptor < 1.4.21-3%{?_dist_release}
  18. %description
  19. Raptor is the RDF Parser Toolkit for Redland that provides
  20. a set of standalone RDF parsers, generating triples from RDF/XML
  21. or N-Triples.
  22. %package devel
  23. Summary: Development files for %{name}
  24. Group: Development/Libraries
  25. Requires: %{name} = %{version}-%{release}
  26. %description devel
  27. %{summary}.
  28. %prep
  29. %setup -q
  30. %patch50 -p1 -b .raptor2_doc
  31. # hack to nuke rpaths
  32. %if "%{_libdir}" != "/usr/lib"
  33. sed -i -e 's|"/lib /usr/lib|"/%{_lib} %{_libdir}|' configure
  34. %endif
  35. %build
  36. %configure --disable-static --enable-release
  37. make %{?_smp_mflags}
  38. %install
  39. rm -rf $RPM_BUILD_ROOT
  40. make DESTDIR=$RPM_BUILD_ROOT install
  41. ## unpackaged files
  42. rm -fv $RPM_BUILD_ROOT%{_libdir}/lib*.la
  43. %check
  44. make check
  45. %clean
  46. rm -rf $RPM_BUILD_ROOT
  47. %post -p /sbin/ldconfig
  48. %postun -p /sbin/ldconfig
  49. %files
  50. %doc AUTHORS ChangeLog NEWS README
  51. %doc COPYING* LICENSE.txt LICENSE-2.0.txt
  52. %{_libdir}/libraptor2.so.0*
  53. %{_bindir}/rapper
  54. %{_mandir}/man1/rapper*
  55. %files devel
  56. %doc UPGRADING.html
  57. %{_includedir}/raptor2/
  58. %{_libdir}/libraptor2.so
  59. %{_libdir}/pkgconfig/raptor2.pc
  60. %{_mandir}/man3/libraptor2*
  61. %dir %{_datadir}/gtk-doc
  62. %dir %{_datadir}/gtk-doc/html/
  63. %{_datadir}/gtk-doc/html/raptor2/
  64. %changelog
  65. * Thu Aug 18 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.0.4-3
  66. - Initial build for Vine Linux
  67. * Sun Jul 31 2011 Rex Dieter <rdieter@fedoraproject.org> 2.0.4-2
  68. - include rapper here
  69. * Fri Jul 29 2011 Rex Dieter <rdieter@fedoraproject.org> 2.0.4-1
  70. - 2.0.4
  71. * Fri Jul 29 2011 Rex Dieter <rdieter@fedoraproject.org> 2.0.3-3
  72. - upstream patch to fix build against newer libcurl
  73. * Tue Jul 26 2011 Rex Dieter <rdieter@fedoraproject.org> 2.0.3-2
  74. - -devel: drop Group: tag
  75. - add lot's of %%doc's
  76. - License: GPLv2+ or LGPLv2+ or ASL 2.0 (or newer)
  77. * Sat Jul 23 2011 Rex Dieter <rdieter@fedoraproject.org> 2.0.3-1
  78. - first try