sysfsutils-vl.spec 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. Summary: sysfsutils, library interface to sysfs.
  2. Summary(ja): sysfs インタフェースライブラリおよびユーティリティ
  3. Name: sysfsutils
  4. Version: 2.1.0
  5. Release: 2%{?_dist_release}
  6. License: GPL/LGPL
  7. Group: Development/Tools
  8. Source0: http://prdownloads.sourceforge.net/linux-diag/%{name}-%{version}.tar.gz
  9. Buildroot: %{_tmppath}/%{name}-%{version}-root
  10. %description
  11. This package's purpose is to provide a set of utilities for interfacing
  12. with sysfs.
  13. The library is distributed under LGPL and utilities that come with it are
  14. under GPL.
  15. %package devel
  16. Summary: Static library and headers for sysfsutils
  17. Summary(ja): sysfsutils のスタティックライブラリおよびヘッダファイル
  18. Group: Development/Libraries
  19. Requires: sysfsutils = %{version}
  20. %description devel
  21. sysfsutils-devel provides the header files and static libraries required
  22. to build programs using the libsysfs API.
  23. %prep
  24. %setup -q
  25. %build
  26. %configure --disable-static
  27. %__make %{?_smp_mflags}
  28. %install
  29. rm -fr %{buildroot}
  30. %__make DESTDIR=$RPM_BUILD_ROOT install
  31. # remove unpackaged files
  32. rm -f $RPM_BUILD_ROOT%{_libdir}/*.{a,la}
  33. find $RPM_BUILD_ROOT%{_bindir} -type f -not -name "systool" -exec rm -f \{\} \;
  34. %clean
  35. rm -rf $RPM_BUILD_ROOT
  36. %post -p /sbin/ldconfig
  37. %postun -p /sbin/ldconfig
  38. %files
  39. %defattr(-,root,root)
  40. %doc COPYING AUTHORS README NEWS CREDITS ChangeLog docs/libsysfs.txt cmd/GPL lib/LGPL
  41. %{_bindir}/systool
  42. %{_libdir}/libsysfs.so.*
  43. %{_mandir}/man1/systool.1*
  44. %files devel
  45. %defattr(-,root,root)
  46. %{_includedir}/sysfs/libsysfs.h
  47. %{_includedir}/sysfs/dlist.h
  48. %{_libdir}/libsysfs.so
  49. #{_libdir}/libsysfs.a
  50. %changelog
  51. * Mon Apr 13 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.0-2
  52. - spec in utf-8
  53. - remove static library
  54. * Sun Jun 15 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.1.0-1
  55. - applied new versioning policy
  56. * Tue Sep 19 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.0-0vl1
  57. - new upstream release
  58. * Fri Mar 17 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.0-0vl1
  59. - initial build