[matroska] r1205 - trunk/libmatroska/make/linux
[email protected] Wed, 31 Aug 2005 17:26:03 +0400 (MSD)
| Newsgroups | gmane.comp.multimedia.matroska.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: mosu Date: 2005-08-31 17:26:02 +0400 (Wed, 31 Aug 2005) New Revision: 1205 Added: trunk/libmatroska/make/linux/fedora-core.spec trunk/libmatroska/make/linux/suse-libmatroska-makefile.diff trunk/libmatroska/make/linux/suse.spec Log: Added the spec files I use for building libmatroska on SuSE and Fedora Core. Added: trunk/libmatroska/make/linux/fedora-core.spec =================================================================== --- trunk/libmatroska/make/linux/fedora-core.spec 2005-08-31 13:19:50 UTC (rev 1204) +++ trunk/libmatroska/make/linux/fedora-core.spec 2005-08-31 13:26:02 UTC (rev 1205) @@ -0,0 +1,61 @@ +# SPEC file for (at least) Fedora Core 1, 2, 3 + +Name: libmatroska +Version: 0.7.8 +Release: 1 +License: LGPL +Summary: Matroska Video Container +Group: System Environment/Libraries +URL: http://www.matroska.org/ +Vendor: Moritz Bunkus <[email protected]> +Source: http://dl.matroska.org/downloads/%{name}/%{name}-%{version}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-root + +%description +Matroska aims to become THE Standard of Multimedia Container Formats. +It was derived from a project called MCF, but differentiates from it +significantly because it is based on EBML (Extensible Binary Meta +Language), a binary derivative of XML. EBML enables the Matroska +Development Team to gain significant advantages in terms of future +format extensibility, without breaking file support in old parsers. + +%package devel +Summary: Matroska Video Container headers/development files +Group: Development/Libraries + +%description devel +Headers for libmatroska. + +%prep +%setup -q + +%build +cd make/linux +CFLAGS="$RPM_OPT_FLAGS" \ +make \ +prefix="%{_prefix}" \ +LIBEBML_INCLUDE_DIR=%{_includedir} \ +LIBEBML_LIB_DIR=%{_libdir} \ +staticlib +cd ../.. + +%install +[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT +cd make/linux +make prefix=$RPM_BUILD_ROOT/%{_prefix} install_staticlib install_headers +cd ../.. + +%clean +[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT + +%files devel +%defattr(-, root, root) +%{_includedir}/matroska/*.h +%{_includedir}/matroska/c/*.h +%{_libdir}/libmatroska.a + +%changelog +* Sat Apr 16 2005 Moritz Bunkus <[email protected]> +- updated for the new libmatroska build targets +* Fri May 15 2003 Ronald Bultje <[email protected]> +- create spec file Property changes on: trunk/libmatroska/make/linux/fedora-core.spec ___________________________________________________________________ Name: svn:keywords + Id Name: svn:eol-style + native Added: trunk/libmatroska/make/linux/suse-libmatroska-makefile.diff =================================================================== --- trunk/libmatroska/make/linux/suse-libmatroska-makefile.diff 2005-08-31 13:19:50 UTC (rev 1204) +++ trunk/libmatroska/make/linux/suse-libmatroska-makefile.diff 2005-08-31 13:26:02 UTC (rev 1205) @@ -0,0 +1,14 @@ +--- libmatroska-0.7.3/make/linux/Makefile~ 2004-07-19 18:43:44.000000000 +0200 ++++ libmatroska-0.7.3/make/linux/Makefile 2004-09-01 22:36:35.696238264 +0200 +@@ -14,9 +14,9 @@ + ifeq (BeOS,$(shell uname -s)) + prefix=/boot/home/config + else +-prefix=/usr/local ++prefix=$(PREFIX) + endif +-libdir=$(prefix)/lib ++libdir=$(LIBDIR) + includedir=$(prefix)/include/matroska + + # Programs Property changes on: trunk/libmatroska/make/linux/suse-libmatroska-makefile.diff ___________________________________________________________________ Name: svn:keywords + Id Name: svn:eol-style + native Added: trunk/libmatroska/make/linux/suse.spec =================================================================== --- trunk/libmatroska/make/linux/suse.spec 2005-08-31 13:19:50 UTC (rev 1204) +++ trunk/libmatroska/make/linux/suse.spec 2005-08-31 13:26:02 UTC (rev 1205) @@ -0,0 +1,75 @@ +# +# spec file for package libmatroska for (at least) SuSE 9.0, 9.1 +# +# Copyright (c) 2004 SUSE LINUX AG, Nuernberg, Germany. +# This file and all modifications and additions to the pristine +# package are under the same license as the package itself. +# +# Please submit bugfixes or comments via http://www.suse.de/feedback/ +# + +# neededforbuild gcc-c++ libebml libstdc++-devel + +BuildRequires: aaa_base acl attr bash bind-utils bison bzip2 coreutils cpio cpp cracklib db devs diffutils file filesystem fillup findutils flex gawk glibc glibc-devel glibc-locale gpm grep groff gzip info less libebml libgcc libstdc++ libxcrypt m4 make man mktemp ncurses net-tools netcfg openldap2-client openssl pam pam-modules patch permissions popt readline sed syslogd sysvinit tar timezone util-linux vim zlib zlib-devel autoconf automake binutils gcc gcc-c++ gdbm gettext libebml libstdc++-devel libtool perl rpm + +Name: libmatroska +URL: http://dl.matroska.org/downloads/libmatroska/ +Version: 0.7.8 +Release: 1 +Summary: library to deal with matroska files. +License: LGPL +Group: Development/Libraries/Other +Source: %{name}-%{version}.tar.bz2 +Patch: suse-libmatroska-makefile.diff +Summary: library to deal with matroska files. +BuildRoot: %{_tmppath}/%{name}-%{version}-build +Prefix: /usr + +%description +libmatroska is a C++ libary to parse Matroska files (.mkv and .mka). It +depends on libebml to work. You only need this package to compile your +own applications. + + + +Authors: +-------- + Steve Lhomme <[email protected]> + Moritz Bunkus <[email protected]> + +%prep +rm -rf $RPM_BUILD_ROOT +%setup +%patch -p1 + +%build +export CFLAGS="$RPM_OPT_FLAGS" +cd make/linux +make PREFIX=$RPM_BUILD_ROOT/usr LIBDIR=%{_libdir} staticlib + +%install +cd make/linux +make install_staticlib install_headers PREFIX=$RPM_BUILD_ROOT/usr LIBDIR=$RPM_BUILD_ROOT/%{_libdir} + +%clean +rm -rf $RPM_BUILD_ROOT + +%post +%run_ldconfig + +%postun +%run_ldconfig + +%files +%defattr (-,root,root) +%{_libdir}/libmatroska.a +/usr/include/matroska +# /usr/include/ebml/* + +%changelog -n libmatroska +* Sat Apr 16 2005 - [email protected] +- updated for the new libmatroska build targets +* Thu Sep 02 2004 - [email protected] +- add libebml to neededforbuild +* Wed Sep 01 2004 - [email protected] +- initial submission Property changes on: trunk/libmatroska/make/linux/suse.spec ___________________________________________________________________ Name: svn:keywords + Id Name: svn:eol-style + native