libnih-vl.spec 3.5 KB

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