Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37560414
en ru br
ALT Linux repositórios
S:0.1.3-alt1.1

Group :: Sistema/Bibliotecas
RPM: libsoxr

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: libsoxr-0.1.3-alt1.1.patch
Download


 .gear/rules                                        |   4 +
 .../tags/6e80f8b597c92afd3edf7e714a3b8d7b4534213d  |   6 ++
 .gear/tags/list                                    |   1 +
 0003-config-use-stdint.h-and-stdbool.h.patch       |  53 +++++++++++
 libsoxr.spec                                       | 102 +++++++++++++++++++++
 5 files changed, 166 insertions(+)
diff --git a/.gear/rules b/.gear/rules
new file mode 100644
index 0000000..4ac0956
--- /dev/null
+++ b/.gear/rules
@@ -0,0 +1,4 @@
+#tar.xz: soxr-@version@-Source name=soxr-@version@-Source
+tar: @version@:.
+diff: @version@:. .
+copy?: *.patch
diff --git a/.gear/tags/6e80f8b597c92afd3edf7e714a3b8d7b4534213d b/.gear/tags/6e80f8b597c92afd3edf7e714a3b8d7b4534213d
new file mode 100644
index 0000000..f29f6c5
--- /dev/null
+++ b/.gear/tags/6e80f8b597c92afd3edf7e714a3b8d7b4534213d
@@ -0,0 +1,6 @@
+object 945b592b70470e29f917f4de89b4281fbbd540c0
+type commit
+tag 0.1.3
+tagger Rob Sykes <robs@users.sourceforge.net> 1519469853 +0000
+
+tagging
diff --git a/.gear/tags/list b/.gear/tags/list
new file mode 100644
index 0000000..a7cf1ff
--- /dev/null
+++ b/.gear/tags/list
@@ -0,0 +1 @@
+6e80f8b597c92afd3edf7e714a3b8d7b4534213d 0.1.3
diff --git a/0003-config-use-stdint.h-and-stdbool.h.patch b/0003-config-use-stdint.h-and-stdbool.h.patch
new file mode 100644
index 0000000..a0866e9
--- /dev/null
+++ b/0003-config-use-stdint.h-and-stdbool.h.patch
@@ -0,0 +1,53 @@
+From 0a07b23a280b3a80dc933edc0db3aafd2bb5626f Mon Sep 17 00:00:00 2001
+From: Thomas Guillem <thomas@gllm.fr>
+Date: Thu, 5 Nov 2015 14:16:51 +0100
+Subject: [PATCH 3/3] config: use stdint.h and stdbool.h
+
+---
+ soxr-config.h.in | 31 ++-----------------------------
+ 1 file changed, 2 insertions(+), 29 deletions(-)
+
+diff --git a/soxr-config.h.in b/soxr-config.h.in
+index 227bcfd..539efe0 100644
+--- a/soxr-config.h.in
++++ b/soxr-config.h.in
+@@ -13,34 +13,7 @@
+ #define WORDS_BIGENDIAN       @WORDS_BIGENDIAN@
+ 
+ #include <limits.h>
+-
+-#undef bool
+-#undef false
+-#undef true
+-#define bool int
+-#define false 0
+-#define true 1
+-
+-#undef int16_t
+-#undef int32_t
+-#undef int64_t
+-#undef uint32_t
+-#undef uint64_t
+-#define int16_t short
+-#if LONG_MAX > 2147483647L
+-  #define int32_t int
+-  #define int64_t long
+-#elif LONG_MAX < 2147483647L
+-#error this library requires that 'long int' has at least 32-bits
+-#else
+-  #define int32_t long
+-  #if defined _MSC_VER
+-    #define int64_t __int64
+-  #else
+-    #define int64_t long long
+-  #endif
+-#endif
+-#define uint32_t unsigned int32_t
+-#define uint64_t unsigned int64_t
++#include <stdint.h>
++#include <stdbool.h>
+ 
+ #endif
+-- 
+2.1.4
+
diff --git a/libsoxr.spec b/libsoxr.spec
new file mode 100644
index 0000000..6cec5fa
--- /dev/null
+++ b/libsoxr.spec
@@ -0,0 +1,102 @@
+%define realname soxr
+%def_enable check
+%def_enable CR32S
+
+Name: lib%realname
+Version: 0.1.3
+Release: alt1.1
+
+Summary: The SoX Resampler library
+Group: System/Libraries
+License: LGPLv2+
+Url: https://sourceforge.net/p/soxr/wiki/Home/
+
+Vcs: https://github.com/chirlu/soxr.git
+#Source: http://downloads.sourceforge.net/%realname/%realname-%version-Source.tar.xz
+Source: %name-%version.tar
+Patch: %name-%version-%release.patch
+
+BuildRequires(pre): rpm-macros-cmake
+BuildRequires: cmake ctest
+
+%description
+The SoX Resampler library `libsoxr' performs one-dimensional sample-rate
+conversion -- it may be used, for example, to resample PCM-encoded audio.
+
+%package devel
+Summary: Development files for %name
+Group: Development/C
+Requires: %name%{?_isa} = %version-%release
+
+%description devel
+The %name-devel package contains libraries and header files for
+developing applications that use %name.
+
+%prep
+%setup -n %name-%version
+%patch -p1
+%ifarch %e2k
+sed -i 's/__x86_64__/__e2k__/' src/pffft.c
+sed -i 's/void __cpuidex.*$/#elif 1\n#include <e2kbuiltin.h>/' src/soxr.c
+%endif
+
+%build
+%cmake	-DCMAKE_BUILD_TYPE=RelWithDebInfo \
+	-DCMAKE_INSTALL_PREFIX=%prefix \
+	-DCMAKE_CXX_FLAGS:STRING="%optflags" \
+	-DLIB_INSTALL_DIR:PATH=%_libdir \
+	-DCMAKE_C_FLAGS:STRING="%optflags" \
+%ifarch %e2k
+	-DWITH_CR64S=FALSE \
+%endif
+	%{?_disable_CR32S:-DWITH_CR32S=FALSE}
+%nil
+%cmake_build
+
+%install
+%cmake_install
+
+# Remove docs and use the rpmbuild macro instead
+rm -rf %buildroot%_docdir/*
+
+%check
+%cmake_build -t test
+
+%files
+%_libdir/*.so.*
+%doc LICENCE NEWS README
+
+%files devel
+%_includedir/*
+%_libdir/*.so
+%_pkgconfigdir/soxr-lsr.pc
+%_pkgconfigdir/soxr.pc
+%doc examples
+
+%changelog
+* Sun Apr 02 2023 Michael Shigorin <mike@altlinux.org> 0.1.3-alt1.1
+- E2K: updated ftbfs fix (ilyakurduikov@)
+
+* Thu Mar 30 2023 Yuri N. Sedunov <aris@altlinux.org> 0.1.3-alt1
+- 0.1.3
+- switched to upstream git
+- removed obsolete VLC patch
+- fixed Source, added Vcs tags
+- ported to cmake macros, updated BR, enabled %%check
+
+* Wed Oct 31 2018 Michael Shigorin <mike@altlinux.org> 0.1.2-alt4
+- Replace e2k arch name with %%e2k macro (grenka@)
+
+* Tue Aug 22 2017 Michael Shigorin <mike@altlinux.org> 0.1.2-alt3
+- E2K: re-enable SIMD (thanks MCST for hints)
+
+* Tue Aug 22 2017 Michael Shigorin <mike@altlinux.org> 0.1.2-alt2
+- added vlc patch to drop faulty village magic with types
+  (helps e2k, should help aarch64)
+- E2K: explicitly disable SIMD (FTBFS)
+
+* Fri Sep 25 2015 Sergey Bolshakov <sbolshakov@altlinux.ru> 0.1.2-alt1
+- 0.1.2 released
+
+* Wed Apr 22 2015 Motsyo Gennadi <drool@altlinux.ru> 0.1.1-alt1
+- build for ALT Linux
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009