1
0
forked from pool/cdemu-client

switch to cmake macros, use original source URL

OBS-URL: https://build.opensuse.org/package/show/filesystems/cdemu-client?expand=0&rev=35
This commit is contained in:
Jan Engelhardt 2021-04-20 09:37:30 +00:00 committed by Git OBS Bridge
parent deeefc9970
commit 43720698df

View File

@ -24,8 +24,8 @@ License: GPL-2.0-or-later
Group: System/Filesystems
URL: https://cdemu.sourceforge.io/about/client/
#Git-Clone: git://git.code.sf.net/p/cdemu/code
Source: https://sourceforge.net/projects/cdemu/files/%{name}/%{name}-%{version}.tar.xz
#Git-Clone: https://github.com/cdemu/cdemu
Source: https://downloads.sf.net/cdemu/%name-%version.tar.xz
BuildRequires: cmake >= 3.7
BuildRequires: gettext-tools >= 0.15
BuildRequires: gobject-introspection
@ -48,16 +48,16 @@ devices' status and retrieving/setting their debug masks.
%prep
%setup -q
sed -i "s|/usr/bin/env python3|%{_bindir}/python3|" src/cdemu
sed -i "s|/usr/bin/env python3|%_bindir/python3|" src/cdemu
%build
cmake . \
%cmake \
-DCMAKE_INSTALL_PREFIX:PATH="%_prefix" \
-DCMAKE_INSTALL_LIBDIR:PATH="%_libdir"
make %{?_smp_mflags}
%cmake_build
%install
%make_install
%cmake_install
%find_lang cdemu
%files