packages: utvideo/utvideo-shared.patch (NEW), utvideo/utvideo.spec (NEW) - ...
qboosh
qboosh at pld-linux.org
Sat Dec 17 08:28:22 CET 2011
Author: qboosh Date: Sat Dec 17 07:28:22 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- new; generally targeted to Windows/Mac, but for core part any POSIX system is sufficient
---- Files affected:
packages/utvideo:
utvideo-shared.patch (NONE -> 1.1) (NEW), utvideo.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/utvideo/utvideo-shared.patch
diff -u /dev/null packages/utvideo/utvideo-shared.patch:1.1
--- /dev/null Sat Dec 17 08:28:22 2011
+++ packages/utvideo/utvideo-shared.patch Sat Dec 17 08:28:17 2011
@@ -0,0 +1,89 @@
+--- utvideo-10.2.0/GNUmakefile.orig 2011-11-08 03:18:38.000000000 +0100
++++ utvideo-10.2.0/GNUmakefile 2011-12-17 08:16:07.565492678 +0100
+@@ -9,8 +9,9 @@
+ DESTDIR=
+
+ prefix=/usr/local
+-libdir=$(DESTDIR)$(prefix)/lib
+-includedir=$(DESTDIR)$(prefix)/include
++libdir=$(prefix)/lib
++includedir=$(prefix)/include
++LIBTOOL=libtool
+
+ CROSS_PREFIX=
+ CXX=$(CROSS_PREFIX)g++
+@@ -19,7 +20,8 @@
+
+ UTV_CORE_DIR=utv_core
+
+-CXXFLAGS=-g -O2 -Wall -Wextra -Wno-multichar -Wno-unused-parameter -Wno-sign-compare
++OPTFLAGS=-g -O2
++CXXFLAGS=$(OPTFLAGS) -Wall -Wextra -Wno-multichar -Wno-unused-parameter -Wno-sign-compare
+
+ # on MinGW env, uncomment following lines and set proper value to WINSDK_ROOT.
+ #WINSDK_ROOT="/c/Program Files/Microsoft SDKs/Windows/v6.1"
+@@ -48,15 +50,23 @@
+ $(UTV_CORE_DIR)/ULY2Codec.o \
+ $(UTV_CORE_DIR)/utv_core.o
+
++LTOBJ=$(OBJ:.o=.lo)
++
+ %.a:
+ $(AR) rcu $@ $^
+ $(RANLIB) $@
+
+-all: static-lib
++%.la:
++ $(LIBTOOL) --mode=link $(CXX) -o $@ $^ -rpath $(libdir) -lpthread
++
++%.lo: %.cpp
++ $(LIBTOOL) --mode=compile $(CXX) $(CXXFLAGS) -c -o $@ $<
++
++all: lib
+
+-$(UTV_CORE_DIR)/libutvideo.a: $(OBJ)
++$(UTV_CORE_DIR)/libutvideo.la: $(LTOBJ)
+
+-static-lib: $(UTV_CORE_DIR)/libutvideo.a
++lib: $(UTV_CORE_DIR)/libutvideo.la
+
+ clean:
+ @printf " RM\t$(UTV_CORE_DIR)/*.o\n";
+@@ -65,25 +75,25 @@
+ @rm -f $(UTV_CORE_DIR)/libutvideo.a
+
+ install: all
+- @mkdir -p $(libdir) # in case of custom install dir
++ @mkdir -p $(DESTDIR)$(libdir) # in case of custom install dir
+ @printf " MKDIR\t\t$(includedir)/utvideo\n";
+- @mkdir -p $(includedir)/utvideo
++ @mkdir -p $(DESTDIR)$(includedir)/utvideo
+ @printf " INSTALL\t$(includedir)/utvideo/Codec.h\n";
+- @cp -f $(UTV_CORE_DIR)/Codec.h $(includedir)/utvideo/Codec.h
++ @cp -f $(UTV_CORE_DIR)/Codec.h $(DESTDIR)$(includedir)/utvideo/Codec.h
+ @printf " INSTALL\t$(includedir)/utvideo/utvideo.h\n";
+- @cp -f $(UTV_CORE_DIR)/utvideo.h $(includedir)/utvideo/utvideo.h
+- @printf " INSTALL\t$(libdir)/libutvideo.a\n";
+- @cp -f $(UTV_CORE_DIR)/libutvideo.a $(libdir)/libutvideo.a
++ @cp -f $(UTV_CORE_DIR)/utvideo.h $(DESTDIR)$(includedir)/utvideo/utvideo.h
++ @printf " INSTALL\t$(libdir)/libutvideo.la\n";
++ @libtool --mode=install install $(UTV_CORE_DIR)/libutvideo.la $(DESTDIR)$(libdir)
+
+ uninstall:
+ @printf " RM\t$(includedir)/utvideo/*.h\n";
+- @rm -f $(includedir)/utvideo/*.h
++ @rm -f $(DESTDIR)$(includedir)/utvideo/*.h
+ @printf " RMDIR\t$(includedir)/utvideo\n";
+- @-rmdir $(includedir)/utvideo 2> /dev/null || \
+- if [ -d $(includedir)/utvideo ]; then \
+- printf " NOTE: Not removing $(includedir)/utvideo since it is not empty.\n"; \
++ @-rmdir $(DESTDIR)$(includedir)/utvideo 2> /dev/null || \
++ if [ -d $(DESTDIR)$(includedir)/utvideo ]; then \
++ printf " NOTE: Not removing $(DESTDIR)$(includedir)/utvideo since it is not empty.\n"; \
+ fi
+ @printf " RM\t$(libdir)/libutvideo.a\n";
+- @rm -f $(libdir)/libutvideo.a
++ @rm -f $(DESTDIR)$(libdir)/libutvideo.a
+
+-.PHONY: all static-lib clean install uninstall
++.PHONY: all lib static-lib clean install uninstall
================================================================
Index: packages/utvideo/utvideo.spec
diff -u /dev/null packages/utvideo/utvideo.spec:1.1
--- /dev/null Sat Dec 17 08:28:22 2011
+++ packages/utvideo/utvideo.spec Sat Dec 17 08:28:17 2011
@@ -0,0 +1,99 @@
+# $Revision$, $Date$
+Summary: Ut Video codec suite
+Summary(pl.UTF-8): Kodek Ut Video
+Name: utvideo
+Version: 10.2.0
+Release: 1
+License: GPL v2+
+Group: Libraries
+Source0: http://umezawa.dyndns.info/archive/utvideo/%{name}-%{version}-src.zip
+# Source0-md5: a2dacd980e1b33ee9cc1a3983c36e470
+Patch0: %{name}-shared.patch
+URL: http://umezawa.dyndns.info/wordpress/?cat=28
+BuildRequires: libstdc++-devel
+BuildRequires: libtool >= 2:1.5
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Ut Video Codec Suite is a multi-platform and multi-interface lossless
+video codec.
+
+%description -l pl.UTF-8
+Ut Video to wieloplatformowy, mający wiele interfejsów bezstratny
+kodek obrazu.
+
+%package devel
+Summary: Header files for Ut Video library
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Ut Video
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: libstd++-devel
+
+%description devel
+Header files for Ut Video library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki Ut Video.
+
+%package static
+Summary: Static Ut Video library
+Summary(pl.UTF-8): Statyczna biblioteka Ut Video
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static Ut Video library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka Ut Video.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%{__make} \
+ CXX="%{__cxx}" \
+ OPTFLAGS="%{rpmcxxflags} %{rpmcppflags}" \
+ V=1 \
+ libdir=%{_libdir}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT \
+ prefix=%{_prefix} \
+ libdir=%{_libdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc readme.en.html
+%lang(ja) %doc readme.ja.html
+%attr(755,root,root) %{_libdir}/libutvideo.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libutvideo.so.0
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libutvideo.so
+%{_libdir}/libutvideo.la
+%{_includedir}/utvideo
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libutvideo.a
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2011/12/17 07:28:17 qboosh
+- new; generally targeted to Windows/Mac, but for core part any POSIX system is sufficient
================================================================
More information about the pld-cvs-commit
mailing list