diff options
author | CoprDistGit <infra@openeuler.org> | 2023-09-06 02:29:17 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-09-06 02:29:17 +0000 |
commit | dbbdec1af9f99a6707b70d68bdb1139b02d1719b (patch) | |
tree | 2ec6639f5eb9a08c56a1212d897a8d81181e21ae /libgmem.spec | |
parent | 6997521385f010337104415592416a79dc4467d3 (diff) |
automatic import of libgmem
Diffstat (limited to 'libgmem.spec')
-rw-r--r-- | libgmem.spec | 55 |
1 files changed, 21 insertions, 34 deletions
diff --git a/libgmem.spec b/libgmem.spec index fe34cf9..ea4c38a 100644 --- a/libgmem.spec +++ b/libgmem.spec @@ -1,16 +1,15 @@ Name: libgmem -Version: 1.0 -Release: 1 +Version: 0.1 +Release: 2 Summary: Library of Generalized Memory Management License: MulanPSL-2.0 URL: https://gitee.com/openeuler/libgmem -Source0: https://github.com/GMEM-Team/libgmem/%{name}-%{version}.tar.gz +Source0: https://gitee.com/openeuler/libgmem/repository/archive/%{name}-v%{version}.tar.gz + +PATCH0001: use-ioctl-instead-of-syscall.patch BuildRequires: autoconf automake libtool BuildRequires: gcc glibc-devel make -#BuildRequires: Ascend-cann-toolkit - -Requires: autoconf automake libtool gcc glibc-devel make %description libgmem is the abstract layer of GMEM(Generalized Memory Management) user-mode interface, @@ -21,45 +20,33 @@ Summary: Header files for libgmem development Requires: %{name} = %{version}-%{release} %description devel -The kmod-devel package provides header files used for loading or unloading -kernel modules. +The libgmem-devel package provides header files used for GMEM. %prep -%autosetup -p1 -n %{name}-%{version} +%autosetup -p1 -n %{name}-v%{version} -%install -#%make_install -mkdir -p $RPM_BUILD_ROOT%{_includedir}/ -mkdir -p $RPM_BUILD_ROOT%{_usrsrc}/ +%build +sh ./autogen.sh +%configure --with-device=Ascend +%make_build -install -m 0644 include/libgmem.h $RPM_BUILD_ROOT%{_includedir}/ -cp -r * $RPM_BUILD_ROOT%{_usrsrc}/ +%install +%make_install %delete_la +%ldconfig_scriptlets + %files -#%{_libdir}/%{name}.so.* -%{_usrsrc}/* +%license License +%{_libdir}/%{name}.so* %files devel -#%{_libdir}/%{name}.so %{_includedir}/libgmem.h -%post -cd %{_usrsrc}/ -sh ./autogen.sh -./configure --with-device=Ascend -make V=1 -make install -/sbin/ldconfig -cd - - -%postun -cd %{_usrsrc}/ -make uninstall -/sbin/ldconfig -cd - - %changelog -* Sun Aug 13 2023 Yang Yanchao <yangyanchao6@huawei.com> - 1.0-1 +* Tue Aug 29 2023 Yang Yanchao <yangyanchao6@huawei.com> - 0.1-2 +- use ioctl instead of syscall + +* Sun Aug 13 2023 Yang Yanchao <yangyanchao6@huawei.com> - 0.1-1 - Init Package |