Initial commit

This commit is contained in:
Dirk Stoecker 2024-09-13 12:13:18 +02:00 committed by Jan Engelhardt
commit e10bd5aafc
4 changed files with 116 additions and 0 deletions

Binary file not shown.

6
libacm.changes Normal file
View File

@ -0,0 +1,6 @@
-------------------------------------------------------------------
Fri Sep 13 10:03:27 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
- Initial package (version 1.3+g7.110a8a0) for build.opensuse.org /
for use by package descent3.

85
libacm.spec Normal file
View File

@ -0,0 +1,85 @@
#
# spec file for package libacm
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: libacm
%define lname libacm-1_3
%define commit 110a8a03806c2a4e00b772a32f17b7207060000f
Version: 1.3+g7.110a8a0
Release: 0
Summary: Decoder for ACM audio files
License: MIT AND LGPL-2.1-or-later
Group: Productivity/Multimedia/Video/Editors and Convertors
URL: https://github.com/markokr/libacm
Source: https://github.com/markokr/libacm/archive/%commit.tar.gz
Patch1: shared.patch
BuildRequires: automake
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: pkg-config
BuildRequires: pkgconfig(ao)
BuildRequires: xz
%description
Decoder library for InterPlay ACM audio files.
%package -n %lname
Summary: Decoder for ACM audio files
Group: System/Libraries
License: MIT
%description -n %lname
Decoder library for InterPlay ACM audio files.
ACM is a slightly compressed variant of PCM.
%package devel
Summary: Development for libacm, an audio decoder library
Group: Development/Libraries/C and C++
Requires: %lname = %version
License: MIT
%description devel
Decoder library for InterPlay ACM audio files.
This subpackage contains the header files for libacm.
%prep
%autosetup -p1 -n %name-%commit
./autogen.sh
%build
%configure --disable-static
%make_build
%install
%make_install
rm -f "%buildroot/%_libdir"/*.la
%check
%make_build check
%ldconfig_scriptlets -n %lname
%files -n %lname
%_libdir/libacm-1.3.so
%files devel
%_bindir/acmtool
%_includedir/*.h
%_libdir/libacm.so
%license COPYING
%changelog

25
shared.patch Normal file
View File

@ -0,0 +1,25 @@
From: Jan Engelhardt <jengelh@inai.de>
Date: 2024-09-06 00:16:07.708564412 +0200
---
src/Makefile.am | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
Index: libacm/src/Makefile.am
===================================================================
--- libacm.orig/src/Makefile.am
+++ libacm/src/Makefile.am
@@ -1,10 +1,11 @@
bin_PROGRAMS = acmtool
-noinst_LTLIBRARIES = libacm.la
+lib_LTLIBRARIES = libacm.la
-noinst_HEADERS = libacm.h
+include_HEADERS = libacm.h
libacm_la_SOURCES = decode.c util.c
+libacm_la_LDFLAGS = -release ${PACKAGE_VERSION}
acmtool_SOURCES = acmtool.c