diff --git a/sysfsutils.spec b/sysfsutils.spec new file mode 100644 index 0000000000000000000000000000000000000000..16452b71c4304262d6314ad843339b5d70e529e0 --- /dev/null +++ b/sysfsutils.spec @@ -0,0 +1,77 @@ +%define anolis_release 1 + +%global so_major_version 2 +%global so_minor_version 0 +%global so_patch_version 1 + +Name: sysfsutils +Version: 2.1.1 +Release: %{anolis_release}%{?dist} +Summary: Utilities for interfacing with sysfs +URL: https://github.com/linux-ras/sysfsutils +License: GPLv2 + +Source0: https://github.com/linux-ras/sysfsutils/archive/v%{version}.tar.gz + +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: libtool +BuildRequires: make +BuildRequires: gcc + +%description +This package's purpose is to provide a set of utilities for interfacing +with sysfs. + +%package -n libsysfs +Summary: Shared library for interfacing with sysfs +License: LGPLv2+ + +%description -n libsysfs +Library used in handling linux kernel sysfs mounts and their various files. + +%package -n libsysfs-devel +Summary: Static library and headers for libsysfs +License: LGPLv2+ +Requires: libsysfs = %{version}-%{release} + +%description -n libsysfs-devel +libsysfs-devel provides the header files and static libraries required +to build programs using the libsysfs API. + +%prep +%autosetup -p1 + +%build +./autogen +%configure --disable-static +%{make_build} + +%install +%{make_install} +find %{buildroot} -type f -name "*.la" -delete + +%ldconfig_scriptlets -n libsysfs + +%files +%license COPYING cmd/GPL +%doc AUTHORS README CREDITS docs/libsysfs.txt +%{_bindir}/systool +%{_mandir}/man1/systool.1.gz + +%files -n libsysfs +%license COPYING lib/LGPL +/%{_libdir}/libsysfs.so.%{so_major_version} +/%{_libdir}/libsysfs.so.%{so_major_version}.%{so_minor_version}.%{so_patch_version} + +%files -n libsysfs-devel +%dir %{_includedir}/sysfs +%{_includedir}/sysfs/libsysfs.h +%{_includedir}/sysfs/dlist.h +/%{_libdir}/libsysfs.so +/%{_libdir}/pkgconfig/libsysfs.pc + + +%changelog +* Wed Mar 09 2022 Chunmei Xu - 2.1.1-1 +- init from upstream 2.1.1 diff --git a/v2.1.1.tar.gz b/v2.1.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..b278ae4f33315d647f64c098fe7a1d02b5203438 Binary files /dev/null and b/v2.1.1.tar.gz differ