]> git.pld-linux.org Git - packages/xavs.git/commitdiff
- new auto/th/xavs-0-0.svn51.1 auto/th/xavs-0-0_svn51_1 auto/ti/xavs-0-0_svn51_1
authorJakub Bogusz <qboosh@pld-linux.org>
Fri, 1 Jul 2011 19:22:04 +0000 (19:22 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    xavs-dynamic-xavs.patch -> 1.1
    xavs.spec -> 1.1

xavs-dynamic-xavs.patch [new file with mode: 0644]
xavs.spec [new file with mode: 0644]

diff --git a/xavs-dynamic-xavs.patch b/xavs-dynamic-xavs.patch
new file mode 100644 (file)
index 0000000..4b17b2c
--- /dev/null
@@ -0,0 +1,13 @@
+--- xavs/Makefile.orig 2011-07-01 20:23:47.000000000 +0200
++++ xavs/Makefile      2011-07-01 21:16:09.407118004 +0200
+@@ -59,8 +59,8 @@
+ $(SONAME): .depend $(OBJS) $(OBJASM)
+       $(CC) -shared -o $@ $(OBJS) $(OBJASM) -Wl,-soname,$(SOFLAGS) $(LDFLAGS)
+-xavs$(EXE): $(OBJCLI) libxavs.a 
+-      $(CC) -o $@ $+ $(LDFLAGS)
++xavs$(EXE): $(OBJCLI) $(SONAME)
++      $(CC) -o $@ $(OBJCLI) $(LDFLAGS) -L. -lxavs
+ xavsvfw.dll: libxavs.a $(wildcard vfw/*.c vfw/*.h)
+       make -C vfw/build/cygwin
diff --git a/xavs.spec b/xavs.spec
new file mode 100644 (file)
index 0000000..4217c5a
--- /dev/null
+++ b/xavs.spec
@@ -0,0 +1,104 @@
+Summary:       Audio Video Standard of China library
+Summary(pl.UTF-8):     Biblioteka kodeka AVS (Audio Video Standard of China)
+Name:          xavs
+Version:       0
+%define        svnver  51
+Release:       0.svn%{svnver}.1
+License:       GPL v2+
+Group:         Libraries
+# svn co https://xavs.svn.sourceforge.net/svnroot/xavs/trunk xavs
+Source0:       %{name}-r%{svnver}.tar.xz
+# Source0-md5: c96ff5e330dd18760bc2024435a95a01
+Patch0:                %{name}-dynamic-xavs.patch
+BuildRequires: tar >= 1:1.22
+# for svnversion
+BuildRequires: subversion
+BuildRequires: xz
+%ifarch %{ix86} %{x8664}
+#BuildRequires:        binutils >= 2.17
+#BuildRequires:        yasm >= 0.6.1
+%endif
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+AVS is the Audio Video Standard of China. This project aims to
+implement high quality AVS encoder and decoder.
+
+%description -l pl.UTF-8
+AVS (Audio Video Standard of China) to standardowy kodek A/V dla Chin.
+Celem projektu jest zaimplementowanie wysokiej jakości kodera i
+dekodera AVS.
+
+%package devel
+Summary:       Header files for AVS library
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki AVS
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+
+%description devel
+Header files for AVS library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki AVS.
+
+%package static
+Summary:       Static AVS library
+Summary(pl.UTF-8):     Statyczna biblioteka AVS
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+
+%description static
+Static AVS library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka AVS.
+
+%prep
+%setup -q -n %{name}
+%patch0 -p1
+
+%build
+# not autoconf script
+./configure \
+       --prefix=%{_prefix} \
+       --libdir=%{_libdir} \
+       --enable-shared \
+       --extra-cflags="%{rpmcflags} %{rpmcppflags} -fno-strict-aliasing" \
+       --extra-ldflags="%{rpmldflags}"
+# currently broken
+#%ifarch %{ix86} %{x8664} \
+#      --enable-asm \
+#%endif
+
+# linking hack
+ln -sf libxavs.so.1 libxavs.so
+
+%{__make} default libxavs.a \
+       CC="%{__cc}"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/xavs
+%attr(755,root,root) %{_libdir}/libxavs.so.1
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libxavs.so
+%{_includedir}/xavs.h
+%{_pkgconfigdir}/xavs.pc
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libxavs.a
This page took 0.123626 seconds and 4 git commands to generate.