libnih-vl.spec 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. Name: libnih
  2. Version: 1.0.2
  3. Release: 1%{?_dist_release}
  4. Summary: Lightweight application development library
  5. Group: System Environment/Libraries
  6. License: GPLv2
  7. URL: https://launchpad.net/libnih
  8. Source0: http://launchpad.net/libnih/1.0/%{version}/+download/%{name}-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  10. BuildRequires: autoconf >= 2.62
  11. BuildRequires: gettext >= 0.17
  12. BuildRequires: automake >= 1.11
  13. BuildRequires: libtool >= 2.2.4
  14. BuildRequires: dbus-devel >= 1.2.16
  15. BuildRequires: expat >= 2.0.0
  16. BuildRequires: expat-devel >= 2.0.0
  17. # Filter GLIBC_PRIVATE Requires:
  18. %define _use_internal_dependency_generator 1
  19. %define _filter_GLIBC_PRIVATE 1
  20. %description
  21. libnih is a small library for C application development containing functions
  22. that, despite its name, are not implemented elsewhere in the standard library
  23. set.
  24. libnih is roughly equivalent to other C libraries such as glib, except that its
  25. focus is on a small size and intended for applications that sit very low in the
  26. software stack, especially outside of /usr.
  27. %package devel
  28. Summary: Development files for %{name}
  29. Group: Development/Libraries
  30. Requires: %{name} = %{version}-%{release}
  31. Requires: pkgconfig
  32. %description devel
  33. The %{name}-devel package contains libraries and header files for
  34. developing applications that use %{name}.
  35. %prep
  36. %setup -q
  37. %build
  38. sed -i 's:$(prefix)/lib:$(prefix)/%{_lib}:g' nih{,-dbus}/Makefile.am
  39. autoreconf -i --force
  40. %configure --disable-static --disable-rpath --libdir=/%{_lib}
  41. sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
  42. make %{?_smp_mflags}
  43. %install
  44. rm -rf $RPM_BUILD_ROOT
  45. make install DESTDIR=$RPM_BUILD_ROOT
  46. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
  47. mkdir -p $RPM_BUILD_ROOT%{_libdir}/pkgconfig
  48. %check
  49. #some tests fail in koji while pass in mock and local build
  50. #to run make check use "--with check"
  51. %if %{?_with_check:1}%{!?_with_check:0}
  52. make check
  53. %endif
  54. %clean
  55. rm -rf $RPM_BUILD_ROOT
  56. %post -p /sbin/ldconfig
  57. %postun -p /sbin/ldconfig
  58. %files
  59. %defattr(-,root,root,-)
  60. %doc README
  61. %doc AUTHORS
  62. %doc ChangeLog
  63. %doc COPYING
  64. /%{_lib}/*.so.*
  65. %files devel
  66. %defattr(-,root,root,-)
  67. %doc HACKING
  68. %doc TODO
  69. %{_mandir}/man1/nih-dbus-tool.1.gz
  70. %{_bindir}/nih-dbus-tool
  71. %{_includedir}/*
  72. /%{_lib}/*.so
  73. %{_libdir}/pkgconfig/*
  74. %{_prefix}/share/aclocal/libnih.m4
  75. %changelog
  76. * Sat Feb 05 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.2-1
  77. - update to 1.0.2
  78. * Fri Apr 23 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.1-1
  79. - initial build for Vine Linux
  80. * Fri Feb 26 2010 Petr Lautrbach <plautrba@redhat.com> 1.0.1-6
  81. - Add "make check" with "--with check" option
  82. * Fri Feb 19 2010 Casey Dahlin <cdahlin@redhat.com> - 1.0.1-5
  83. - Remove libtool patch as it is no longer necessary
  84. * Wed Feb 10 2010 Casey Dahlin <cdahlin@redhat.com> - 1.0.1-4
  85. - Fix explicit path issue
  86. - Fix unused shlib dependency issue
  87. * Sun Feb 07 2010 Casey Dahlin <cdahlin@redhat.com> - 1.0.1-3
  88. - Require pkgconfig for -devel
  89. - Fill out buildrequires
  90. * Sat Feb 06 2010 Casey Dahlin <cdahlin@redhat.com> - 1.0.1-2
  91. - Move library to /lib
  92. * Fri Feb 05 2010 Casey Dahlin <cdahlin@redhat.com> - 1.0.1-1
  93. - Initial packaging