From f6bc63bed7c25fabbac870f3e406cc6f83e6a5e4 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 21:48:14 +0100 Subject: [PATCH] package created using the webbuild interface [release 3.4.0-1mamba;Sat Jul 16 2022] --- README.md | 2 ++ discord-rpc.spec | 64 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 discord-rpc.spec diff --git a/README.md b/README.md index c41812e..9b017c8 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # discord-rpc +A library for interfacing your game with a locally running Discord desktop client. + diff --git a/discord-rpc.spec b/discord-rpc.spec new file mode 100644 index 0000000..6b6fc39 --- /dev/null +++ b/discord-rpc.spec @@ -0,0 +1,64 @@ +Name: discord-rpc +Version: 3.4.0 +Release: 1mamba +Summary: A library for interfacing your game with a locally running Discord desktop client +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/discord/discord-rpc +Source: https://github.com/discord/discord-rpc.git/v%{version}/discord-rpc-%{version}.tar.bz2 +License: MIT +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libgcc +BuildRequires: libstdc++6-devel +## AUTOBUILDREQ-END +BuildRequires: cmake +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description +A library for interfacing your game with a locally running Discord desktop client. + +%package -n lib%{name} +Group: System/Libraries +Summary: Shared libraries for %{name} + +%description -n lib%{name} +This package contains shared libraries for %{name}. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Development files for %{name} + +%description -n lib%{name}-devel +A library for interfacing your game with a locally running Discord desktop client. +This package contains libraries and header files for developing applications that use %{name}. + + +%debug_package + +%prep +%setup -q + +%build +%cmake -d build +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall -C build + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files -n lib%{name}-devel +%defattr(-,root,root) +%{_includedir}/discord_register.h +%{_includedir}/discord_rpc.h +%{_libdir}/libdiscord-rpc.so +%doc LICENSE README.md + +%changelog +* Sat Jul 16 2022 Silvan Calarco 3.4.0-1mamba +- package created using the webbuild interface