sysfsutils-vl.spec 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. Summary: Utilities for interfacing with sysfs
  2. Summary(ja): sysfs と接続するためのユーティリティ
  3. Name: sysfsutils
  4. Version: 2.1.0
  5. Release: 4%{?_dist_release}
  6. License: GPLv2
  7. Group: Development/Tools
  8. Source0: http://prdownloads.sourceforge.net/linux-diag/%{name}-%{version}.tar.gz
  9. Patch0: sysfsutils-2.0.0-redhatify.patch
  10. Patch1: sysfsutils-2.0.0-class-dup.patch
  11. Patch2: sysfsutils-2.1.0-get_link.patch
  12. Patch3: sysfsutils-2.1.0-manpages.patch
  13. Buildroot: %{_tmppath}/%{name}-%{version}-root
  14. Requires: libsysfs = %{version}-%{release}
  15. %description
  16. This package's purpose is to provide a set of utilities for interfacing
  17. with sysfs.
  18. %package -n libsysfs
  19. Summary: Shared library for interfacing with sysfs
  20. Summary(ja): sysfs と接続するための共用ライブラリ
  21. Group: System Environment/Libraries
  22. License: LGPLv2+
  23. %description -n libsysfs
  24. Library used in handling linux kernel sysfs mounts and their various files.
  25. %package -n libsysfs-devel
  26. Summary: Static library and headers for libsysfs
  27. Summary(ja): libsysfs のスタティックライブラリおよびヘッダファイル
  28. Group: Development/Libraries
  29. License: LGPLv2+
  30. Requires: libsysfs = %{version}-%{release}
  31. Obsoletes: sysfsutils-devel < %{version}-%{release}
  32. Provides: sysfsutils-devel = %{version}-%{release}
  33. %description -n libsysfs-devel
  34. libsysfs-devel provides the header files and static libraries required
  35. to build programs using the libsysfs API.
  36. %prep
  37. %setup -q
  38. %patch0 -p1 -b .redhatify
  39. %patch1 -p1
  40. %patch2 -p1
  41. %patch3 -p1
  42. %build
  43. %configure --disable-static --libdir=/%{_lib}
  44. %__make %{?_smp_mflags}
  45. %install
  46. rm -fr %{buildroot}
  47. %__make DESTDIR=$RPM_BUILD_ROOT install
  48. # remove unpackaged files
  49. rm -f $RPM_BUILD_ROOT%{_bindir}/dlist_test $RPM_BUILD_ROOT%{_bindir}/get_bus_devices_list $RPM_BUILD_ROOT%{_bindir}/get_class_dev $RPM_BUILD_ROOT%{_bindir}/get_classdev_parent $RPM_BUILD_ROOT%{_bindir}/get_device $RPM_BUILD_ROOT%{_bindir}/get_driver $RPM_BUILD_ROOT%{_bindir}/testlibsysfs $RPM_BUILD_ROOT%{_bindir}/write_attr
  50. rm -f $RPM_BUILD_ROOT/%{_lib}/*.la
  51. %clean
  52. rm -rf $RPM_BUILD_ROOT
  53. %post -n libsysfs -p /sbin/ldconfig
  54. %postun -n libsysfs -p /sbin/ldconfig
  55. %files
  56. %defattr(-,root,root)
  57. %doc COPYING AUTHORS README NEWS CREDITS ChangeLog
  58. %doc docs/libsysfs.txt cmd/GPL
  59. %{_bindir}/systool
  60. %{_bindir}/get_module
  61. %{_mandir}/man1/systool.1*
  62. %files -n libsysfs
  63. %defattr(-,root,root)
  64. %doc COPYING AUTHORS README NEWS CREDITS ChangeLog
  65. %doc docs/libsysfs.txt lib/LGPL
  66. /%{_lib}/libsysfs.so.*
  67. %files -n libsysfs-devel
  68. %defattr(-,root,root)
  69. %{_includedir}/sysfs/libsysfs.h
  70. %{_includedir}/sysfs/dlist.h
  71. /%{_lib}/libsysfs.so
  72. %changelog
  73. * Mon Nov 17 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 2.1.0-4
  74. - added Patch0, 1, 2 and 3 from Fedora
  75. - moved shared libraries into libsysfs subpackage
  76. - moved libraries from /usr/lib to /lib
  77. * Sun Apr 17 2011 Shu KONNO <owa@bg.wakwak.com> 2.1.0-3
  78. - rebuilt with rpm-4.8.1-3
  79. * Mon Apr 13 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.0-2
  80. - spec in utf-8
  81. - remove static library
  82. * Sun Jun 15 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.1.0-1
  83. - applied new versioning policy
  84. * Tue Sep 19 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.0-0vl1
  85. - new upstream release
  86. * Fri Mar 17 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.0-0vl1
  87. - initial build