- Update project url

- Use _service to fetch sources from git
- Update to version 0.0+git.20160511
- Refresh patches:
  * alac-endian.patch
  * libalac-makefile.patch

OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/alac?expand=0&rev=5
This commit is contained in:
Martin Pluskal
2016-10-19 11:29:18 +00:00
committed by Git OBS Bridge
parent f2359a48e1
commit 4bda0a9242
7 changed files with 79 additions and 46 deletions

14
_service Normal file
View File

@@ -0,0 +1,14 @@
<services>
<service mode="disabled" name="tar_scm">
<param name="url">https://github.com/macosforge/alac.git</param>
<param name="scm">git</param>
<param name="changesgenerate">enable</param>
<param name="filename">alac</param>
<param name="versionformat">0.0+git.%cd</param>
</service>
<service mode="disabled" name="recompress">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service mode="disabled" name="set_version"/>
</services>

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2d572865b22ee99e37ba71ce59fed3c0eb3c8b8a5fe1a48a7eb5d81faf706b8c
size 49784

View File

@@ -1,5 +1,7 @@
--- alac.orig/codec/EndianPortable.c
+++ alac/codec/EndianPortable.c
Index: codec/EndianPortable.c
===================================================================
--- codec/EndianPortable.c.orig
+++ codec/EndianPortable.c
@@ -25,20 +25,15 @@
//
@@ -27,8 +29,10 @@
#define TARGET_RT_LITTLE_ENDIAN 1
#endif
--- alac.orig/codec/ALACAudioTypes.h
+++ alac/codec/ALACAudioTypes.h
Index: codec/ALACAudioTypes.h
===================================================================
--- codec/ALACAudioTypes.h.orig
+++ codec/ALACAudioTypes.h
@@ -42,10 +42,9 @@ extern "C" {
#endif

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:054ac3adf4890452076970fbfd4045f7558c5b35dd97aec7047a9a61d943d2f4
size 65334

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Wed Oct 19 11:21:42 UTC 2016 - mpluskal@suse.com
- Update project url
- Use _service to fetch sources from git
- Update to version 0.0+git.20160511
- Refresh patches:
* alac-endian.patch
* libalac-makefile.patch
-------------------------------------------------------------------
Tue Jan 19 14:00:36 UTC 2016 - jengelh@inai.de

View File

@@ -16,20 +16,20 @@
#
%define sover 0
Name: alac
%define lname libalac0
Version: 0+r3
Version: 0.0+git.20160511
Release: 0
Summary: Apple Lossless Audio Codec
License: Apache-2.0
Group: Productivity/Multimedia/Sound/Editors and Convertors
Url: http://alac.macosforge.org/
#SVN-Clone: http://svn.macosforge.org/repository/alac/trunk/
Source: alac-r3.tar.bz2
Url: https://macosforge.github.io/alac/
Source: %{name}-%{version}.tar.xz
Patch1: libalac-makefile.patch
Patch2: alac-endian.patch
BuildRequires: gcc-c++
BuildRequires: pkg-config
BuildRequires: pkgconfig
BuildRequires: xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@@ -41,23 +41,25 @@ uncompressed audio file.
This package contains a command-line utility to convert the ALAC format.
%package -n %{lname}
%package -n lib%{name}%{sover}
Summary: Apple Lossless Audio Codec
Group: System/Libraries
%description -n %{lname}
%description -n lib%{name}%{sover}
The Apple Lossless Audio Codec (ALAC) is an audio codec developed by Apple and
supported on iPhone, iPad, most iPods, Mac and iTunes. ALAC is a data
compression method which reduces the size of audio files with no loss of
information. A decoded ALAC stream is bit-for-bit identical to the original
uncompressed audio file.
%package -n libalac-devel
%package devel
Summary: Apple Lossless Audio Codec
Group: Development/Libraries/C and C++
Requires: %{lname} = %{version}-%{release}
Requires: lib%{name}%{sover} = %{version}
Provides: lib{name}-devel = %{version}
Obsoletes: lib{name}-devel < %{version}
%description -n libalac-devel
%description devel
The Apple Lossless Audio Codec (ALAC) is an audio codec developed by Apple and
supported on iPhone, iPad, most iPods, Mac and iTunes. ALAC is a data
compression method which reduces the size of audio files with no loss of
@@ -65,45 +67,44 @@ information. A decoded ALAC stream is bit-for-bit identical to the original
uncompressed audio file.
%prep
%setup -qn %{name}
%patch1 -p1
%patch2 -p1
%setup -q
%patch1
%patch2
%build
for d in codec convert-utility; do
make -C "$d" \
OPTFLAGS="%{optflags} -fvisibility-inlines-hidden -fno-strict-aliasing -D_GNU_SOURCE $(getconf LFS_CFLAGS)" \
OPTFLAGS="%{optflags} -fvisibility-inlines-hidden -fno-strict-aliasing -D_GNU_SOURCE" \
CC="g++"
done
%install
install -D -m0755 convert-utility/alacconvert "%{buildroot}%{_bindir}/alacconvert"
install -D -p -m 0755 convert-utility/alacconvert \
%{buildroot}%{_bindir}/alacconvert
install -d "%{buildroot}%{_includedir}"
cp -a codec/*.h "%{buildroot}%{_includedir}/"
install -d %{buildroot}%{_includedir}
cp -a codec/*.h %{buildroot}%{_includedir}/
install -d "%{buildroot}%{_libdir}"
cp -a codec/libalac.so* "%{buildroot}%{_libdir}/"
install -d %{buildroot}%{_libdir}
cp -a codec/libalac.so* %{buildroot}%{_libdir}/
%post -n %{lname} -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig
%files -n %{lname}
%defattr(-,root,root)
%doc codec/APPLE_LICENSE.txt LICENSE
%{_libdir}/libalac.so.0
%{_libdir}/libalac.so.0.3
%files -n libalac-devel
%defattr(-,root,root)
%doc codec/APPLE_LICENSE.txt LICENSE
%{_includedir}/*.h
%{_libdir}/libalac.so
%post -n lib%{name}%{sover} -p /sbin/ldconfig
%postun -n lib%{name}%{sover} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc codec/APPLE_LICENSE.txt LICENSE
%{_bindir}/alacconvert
%files -n lib%{name}%{sover}
%defattr(-,root,root)
%doc codec/APPLE_LICENSE.txt LICENSE
%{_libdir}/libalac.so.%{sover}*
%files devel
%defattr(-,root,root)
%doc codec/APPLE_LICENSE.txt LICENSE
%{_includedir}/*.h
%{_libdir}/libalac.so
%changelog

View File

@@ -1,5 +1,7 @@
--- alac.orig/codec/makefile
+++ alac/codec/makefile
Index: codec/makefile
===================================================================
--- codec/makefile.orig
+++ codec/makefile
@@ -1,6 +1,10 @@
# libalac make
@@ -29,8 +31,10 @@
EndianPortable.o : EndianPortable.c
$(CC) -I $(INCLUDES) $(CFLAGS) EndianPortable.c
--- alac.orig/convert-utility/makefile
+++ alac/convert-utility/makefile
Index: convert-utility/makefile
===================================================================
--- convert-utility/makefile.orig
+++ convert-utility/makefile
@@ -1,6 +1,7 @@
# alacconvert make