libnih-vl.spec 3.3 KB

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