Группа :: Система/Библиотеки
Пакет: libmcl
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define rname mcl
Name: lib%rname
Version: 0.1.12
Release: alt1
Summary: A collection of C++20 utilities which is common to a number of merry's projects.
License: MIT
Group: System/Libraries
Url: https://github.com/merryhime/%rname
Packager: Nazarov Denis <nenderus at altlinux.org>
ExclusiveArch: x86_64 aarch64
# https://github.com/merryhime/%rname/archive/refs/tags/%version/%rname-%version.tar.gz
Source: %rname-%version.tar
Patch0: %rname-soname-alt.patch
BuildRequires: catch2-devel
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: libfmt-devel
%description
A collection of C++20 utilities which is common to a number of merry's projects.
%package devel
Summary: Header files for %name
Group: Development/C
%description devel
Header files for %name
%prep
%setup -n %rname-%version
%patch0 -p1
%build
%cmake \
-DCMAKE_INSTALL_LIBDIR:PATH=%_libdir \
-DBUILD_SHARED_LIBS:BOOL=TRUE
%cmake_build
%install
%cmake_install
%files
%doc LICENSE README
%_libdir/%name.so.*
%files devel
%_libdir/cmake/%rname
%_libdir/%name.so
%_includedir/%rname
%changelog
…
Полный changelog можно просмотреть здесь
Name: lib%rname
Version: 0.1.12
Release: alt1
Summary: A collection of C++20 utilities which is common to a number of merry's projects.
License: MIT
Group: System/Libraries
Url: https://github.com/merryhime/%rname
Packager: Nazarov Denis <nenderus at altlinux.org>
ExclusiveArch: x86_64 aarch64
# https://github.com/merryhime/%rname/archive/refs/tags/%version/%rname-%version.tar.gz
Source: %rname-%version.tar
Patch0: %rname-soname-alt.patch
BuildRequires: catch2-devel
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: libfmt-devel
%description
A collection of C++20 utilities which is common to a number of merry's projects.
%package devel
Summary: Header files for %name
Group: Development/C
%description devel
Header files for %name
%prep
%setup -n %rname-%version
%patch0 -p1
%build
%cmake \
-DCMAKE_INSTALL_LIBDIR:PATH=%_libdir \
-DBUILD_SHARED_LIBS:BOOL=TRUE
%cmake_build
%install
%cmake_install
%files
%doc LICENSE README
%_libdir/%name.so.*
%files devel
%_libdir/cmake/%rname
%_libdir/%name.so
%_includedir/%rname
%changelog
…
Полный changelog можно просмотреть здесь