From 0cbf8024a7e2db6a1083e7a8ef0668a95a10355a Mon Sep 17 00:00:00 2001 From: chyyran Date: Sat, 3 Aug 2024 00:34:36 -0400 Subject: [PATCH] build: update soname --- librashader.copr.spec | 4 ++-- pkg/obs/PKGBUILD | 2 +- pkg/obs/librashader.spec | 11 +++++------ 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/librashader.copr.spec b/librashader.copr.spec index 3386d9b..84feaa0 100644 --- a/librashader.copr.spec +++ b/librashader.copr.spec @@ -35,7 +35,7 @@ RUSTC_BOOTSTRAP=1 cargo run -p librashader-build-script -- --profile %{profile} %install mkdir -p %{buildroot}/%{_libdir} mkdir -p %{buildroot}/%{_includedir}/librashader -patchelf --set-soname librashader.so.1 target/%{profile}/librashader.so +patchelf --set-soname librashader.so.2 target/%{profile}/librashader.so install -m 0755 target/%{profile}/librashader.so %{buildroot}%{_libdir}/librashader.so cp target/%{profile}/librashader.h %{buildroot}%{_includedir}/librashader/librashader.h cp include/librashader_ld.h %{buildroot}%{_includedir}/librashader/librashader_ld.h @@ -43,5 +43,5 @@ cp include/librashader_ld.h %{buildroot}%{_includedir}/librashader/librashader_l %files %{_libdir}/librashader.so -%{_libdir}/librashader.so.1 +%{_libdir}/librashader.so.2 %{_includedir}/librashader/ diff --git a/pkg/obs/PKGBUILD b/pkg/obs/PKGBUILD index a8eb93d..83ec521 100644 --- a/pkg/obs/PKGBUILD +++ b/pkg/obs/PKGBUILD @@ -26,7 +26,7 @@ build() { package() { mkdir -p $pkgdir/usr/lib mkdir -p $pkgdir/usr/include/librashader - patchelf --set-soname librashader.so.1 $srcdir/$pkgname-$pkgver/target/$profile/librashader.so + patchelf --set-soname librashader.so.2 $srcdir/$pkgname-$pkgver/target/$profile/librashader.so install -m 0755 $srcdir/$pkgname-$pkgver/target/${profile}/librashader.so $pkgdir/usr/lib/librashader.so cp $srcdir/$pkgname-$pkgver/target/${profile}/librashader.h $pkgdir/usr/include/librashader/librashader.h cp $srcdir/$pkgname-$pkgver/include/librashader_ld.h $pkgdir/usr/include/librashader/librashader_ld.h diff --git a/pkg/obs/librashader.spec b/pkg/obs/librashader.spec index 9659d97..267d173 100644 --- a/pkg/obs/librashader.spec +++ b/pkg/obs/librashader.spec @@ -3,13 +3,12 @@ Name: librashader %define profile optimized Summary: RetroArch shaders for all License: MPL-2.0 -Version: 0.2.0~beta.2 +Version: 0.4.0 Release: 0 URL: https://github.com/SnowflakePowered/%{name} Source0: librashader-%{version}.tar.xz Source1: vendor.tar.xz Source2: cargo_config -BuildRequires: ninja-build BuildRequires: patchelf BuildRequires: gcc BuildRequires: gcc-c++ @@ -28,12 +27,12 @@ mkdir .cargo # cargo automatically uses this dir cp %{SOURCE2} .cargo/config # and automatically uses this config %build -RUSTC_BOOTSTRAP=1 cargo run -p librashader-build-script -- --profile %{profile} +RUSTC_BOOTSTRAP=1 cargo run --ignore-rust-version -p librashader-build-script -- --profile %{profile} %install mkdir -p %{buildroot}/%{_libdir} mkdir -p %{buildroot}/%{_includedir}/librashader -patchelf --set-soname librashader.so.1 target/%{profile}/librashader.so +patchelf --set-soname librashader.so.2 target/%{profile}/librashader.so install -m 0755 target/%{profile}/librashader.so %{buildroot}%{_libdir}/librashader.so cp target/%{profile}/librashader.h %{buildroot}%{_includedir}/librashader/librashader.h cp include/librashader_ld.h %{buildroot}%{_includedir}/librashader/librashader_ld.h @@ -42,6 +41,6 @@ cp include/librashader_ld.h %{buildroot}%{_includedir}/librashader/librashader_l %files %{_libdir}/librashader.so %if !0%{?suse_version} -%{_libdir}/librashader.so.1 +%{_libdir}/librashader.so.2 %endif -%{_includedir}/librashader/ +%{_includedir}/librashader/ \ No newline at end of file