sysfsutils-vl.spec 3.6 KB

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