Commit 2fa302db authored by Jean-Paul Saman's avatar Jean-Paul Saman Committed by Jean-Paul Saman

Enhance contrib system with package-rpm build target and system. RPM packages...

Enhance contrib system with package-rpm build target and system. RPM packages are build in extras/contrib/src/rpm/RPMS and extras/contrib/src/SRPMS.
parent b3c04bd3
......@@ -24,8 +24,9 @@
# ***************************************************************************
include ./config.mak
include ./distro.mak
BUILDDIRS = bin doc etc include info lib man sbin share vlc-lib tmp
BUILDDIRS = bin doc etc include info lib man sbin share vlc-lib tmp rpm
all: FORCE
# @echo "Do you mean to make src or make bin ?"
......@@ -107,5 +108,15 @@ package-win32: FORCE
(cd tmp/$(DISTDIR)/bin; rm -f *.exe; chmod a+x *)
(cd tmp; tar cf - $(DISTDIR)) | bzip2 -c > contrib-`date +%Y%m%d`-win32-bin-gcc-`$(CC) --version|head -n 1|cut -f 3 -d ' '`-only.tar.bz2
rm -rf tmp
FORCE:
package-rpm: FORCE
@if test ! -d src/rpm; then \
echo "Creating RPM build environment"; \
mkdir -p src/rpm/BUILD src/rpm/SOURCES src/rpm/SPECS src/rpm/RPMS src/rpm/SRPMS; \
fi
$(MAKE) -C src rpm
echo -n "Clearing out rpm/BUILD/ ..."
#$(MAKE) -C src clean-rpm
echo "done."
FORCE:
......@@ -223,4 +223,17 @@ elif test -x /usr/sbin/rpm; then
fi
if test ! -z "$RPMBUILD"; then
echo "RPMBUILD = $RPMBUILD" >> config.mak
DOMAINNAME=`dnsdomainname`
if test -z "$DOMAINNAME"; then
DOMAINNAME="localdomain"
fi
rm -f rpmmacros && cat > rpmmacros << EOF
%_topdir `pwd`/src/rpm
%_packager ${USER} <${USER}@${HOSTNAME}.${DOMAINNAME}>
%_enable_debug_packages 1
%_unpackaged_files_terminate_build 1
EOF
rm -fr rpmrc && cat > rpmrc << EOF
macrofiles: /usr/lib/rpm/macros:/usr/lib/rpm/${_target}/macros:/etc/rpm/%{_target}/macros:~/.rpmmacros:`pwd`/rpmmacros
EOF
fi
%_topdir /home/jpsaman/Source/vlc-0.8.6c-bugfix-m2x.git/extras/contrib/src/rpm
%_packager jpsaman <jpsaman@elrond.localdomain>
%_enable_debug_packages 1
%_unpackaged_files_terminate_build 1
macrofiles: /usr/lib/rpm/macros:/usr/lib/rpm//macros:/etc/rpm/%{_target}/macros:~/.rpmmacros:/home/jpsaman/Source/vlc-0.8.6c-bugfix-m2x.git/extras/contrib/rpmmacros
......@@ -2,16 +2,16 @@
ifeq ($(HOST),$(BUILD))
# Native build: we need perl, autoconf, etc first
DISTRO_PKG= .perl .autoconf .automake .libtool .iconv .intl .freetype .fribidi \
.a52 .mpeg2 .id3tag .mad .ogg .vorbis .vorbisenc .theora \
.flac .speex .faad .faac .lame .ebml .matroska .ffmpeg .dvdcss \
.dvdnav .dvbpsi .dca .aclocal
.a52dec .mpeg2dec .libid3tag .libmad .ogg .vorbis .vorbisenc .theora \
.flac .speex .faad2 .faac .lame .libebml .libmatroska .ffmpeg .libdvdcss \
.libdvdnav .libdvbpsi .libdca .aclocal
#.speex seems
else
# Cross compiling: we already have the Linux tools, only build the
# libraries now
DISTRO_PKG= .iconv .intl .freetype .fribidi \
.a52 .mpeg2 .id3tag .mad .ogg .vorbis .vorbisenc .theora \
.flac .faad .faac .lame .twolame .ebml .matroska .ffmpeg .dvdcss \
.dvdnav .dvbpsi .dca .aclocal
.a52dec .mpeg2dec .libid3tag .libmad .ogg .vorbis .vorbisenc .theora \
.flac .faad2 .faac .lame .twolame .libebml .libmatroska .ffmpeg .libdvdcss \
.;ibdvdnav .libdvbpsi .libdca .aclocal
endif
#.speex
# Darwin rules
DISTRO_PKG= .autoconf .automake .libtool .intl .pkgcfg .freetype .fribidi \
.a52 .mpeg2 .id3tag .mad .ogg .vorbis .vorbisenc .theora \
.flac .speex .shout .faad .faac .lame .twolame .ebml .matroska .ffmpeg \
.dvdcss .dvdnav .dvdread .dvbpsi .live .caca .mod \
.a52dec .mpeg2 .libid3tag .libmad .ogg .vorbis .vorbisenc .theora \
.flac .speex .shout .faad2 .faac .lame .twolame .libebml .libmatroska .ffmpeg \
.libdvdcss .libdvdnav .libdvdread .libdvbpsi .live .libcaca .libmodplug \
.png .gpg-error .gcrypt .gnutls .opendaap .cddb .cdio .vcdimager \
.SDL_image .glib .gecko .mpcdec .dirac_encoder .dirac_decoder \
.dca .tag .x264 .goom2k4 .zvbi .fontconfig .ncurses .aclocal
.SDL_image .glib .gecko .libmpcdec .dirac_encoder .dirac_decoder \
.libdca .tag .x264 .goom2k4 .zvbi .fontconfig .ncurses .aclocal
# .expat .clinkcc don't work with SDK yet
# .glib .IDL .gecko are required to build the mozilla plugin
# .mozilla-macosx will build an entire mozilla. it can be used if we need to create a new .gecko package
......
# Debian Linux
DISTRO_PKG= .iconv .intl .freetype .fribidi .zlib \
.a52 .mpeg2 .id3tag .mad .ogg .vorbis .vorbisenc .theora \
.flac .speex .faad .faac .lame .ebml .matroska .ffmpeg .dvdcss \
.live .goom2k4 .caca .mod .x264 .xml .twolame \
.png .gpg-error .gcrypt .gnutls .mpcdec \
.dvdnav .dvbpsi .wxwidgets .dirac \
.dca .raw1394 .dc1394 .zvbi \
.a52dec .mpeg2dec .libid3tag .libmad .ogg .vorbis .vorbisenc .theora \
.flac .speex .faad2 .faac .lame .libebml .libmatroska .ffmpeg .libdvdcss \
.live .goom2k4 .libcaca .libmodplug .x264 .libxml2 .twolame \
.png .gpg-error .gcrypt .gnutls .libmpcdec \
.libdvdnav .libdvbpsi .wxwidgets .dirac \
.libdca .raw1394 .dc1394 .zvbi \
.aclocal
# .SDL_image .daap .cddb .cdio .vcdimager
# Fedora Linux rules
DISTRO_PKG= \
.a52 .mpeg2 .id3tag .mad .ogg .vorbis .vorbisenc .theora \
.flac .speex .faad .faac .lame .ebml .matroska .ffmpeg .dvdcss \
.live .goom2k4 .caca .mod .x264 .xml .twolame \
.mpcdec \
.dvdnav .dvbpsi .wxwidgets .dirac \
.a52dec .mpeg2dec .libid3tag .libmad .ogg .vorbis .vorbisenc .theora \
.flac .speex .faad2 .faac .lame .libebml .libmatroska .ffmpeg .libdvdcss \
.live .goom2k4 .libcaca .libmodplug .x264 .libxml2 .twolame \
.libmpcdec \
.libdvdnav .libdvbpsi .wxwidgets .dirac \
.libdca .libraw1394 .libdc1394 .zvbi
# RHEL 5
DISTRO_PKG= .fribidi \
.a52 .mpeg2 .id3tag .mad \
.faad .faac .lame .ebml .matroska .libamrnb .libamrwb .ffmpeg .dvdcss \
.live .goom2k4 .caca .mod .x264 .xml .twolame \
.mpcdec \
.dvdnav .dvbpsi .wxwidgets .dirac \
.libdca .zvbi
.a52dec .mpeg2dec .libid3tag .libmad \
.faad2 .faac .lame .libebml .matroska .libamrnb .libamrwb .ffmpeg .libdvdcss \
.live .goom2k4 .libcaca .libmodplug .x264 .libxml2 .twolame \
.libmpcdec \
.libdvdnav .libdvbpsi .wxwidgets .dirac \
.libdca
# .zvbi
# .libraw1394 .libdc1394
# .png .gpg-error .gcrypt .gnutls .mpcdec\
# .SDL_image .daap .cddb .cdio .vcdimager
# Standard Linux or other UNIX-like systems
DISTRO_PKG= .iconv .intl .freetype .fribidi .zlib \
.a52 .mpeg2 .id3tag .mad .ogg .vorbis .vorbisenc .theora \
.flac .speex .faad .faac .lame .ebml .matroska .ffmpeg .dvdcss \
.live .goom2k4 .caca .mod .x264 .xml .twolame \
.png .gpg-error .gcrypt .gnutls .mpcdec \
.dvdnav .dvbpsi .wxwidgets .dirac \
.dca .raw1394 .dc1394 .zvbi \
.a52dec .mpeg2dec .libid3tag .libmad .ogg .vorbis .vorbisenc .theora \
.flac .speex .faad2 .faac .lame .libebml .libmatroska .ffmpeg .libdvdcss \
.live .goom2k4 .libcaca .libmodplug .x264 .libxml2 .twolame \
.png .gpg-error .gcrypt .gnutls .libmpcdec \
.libdvdnav .libdvbpsi .wxwidgets .dirac \
.libdca .raw1394 .dc1394 .zvbi \
.aclocal
# .png .gpg-error .gcrypt .gnutls .mpcdec \
# .SDL_image .daap .cddb .cdio .vcdimager
......
# WIN32 rules
DISTRO_PKG= .iconv .intl .freetype .fribidi .zlib \
.a52 .mpeg2 .id3tag .mad .ogg .vorbis .shout .vorbisenc .theora \
.flac .speex .faad .faac .lame .ebml .matroska .ffmpeg .dvdcss \
.live .goom2k4 .caca .mod .x264 .xml .twolame \
.png .gpg-error .gcrypt .gnutls .mpcdec \
.dvdnav .dvbpsi .wxwidgets .qt4 .dirac .SDL_image \
.dx_headers .dshow_headers .gecko-win32 .unicows .dca \
.a52dec .mpeg2dec .libid3tag .libmad .ogg .vorbis .shout .vorbisenc .theora \
.flac .speex .faad2 .faac .lame .libebml .libmatroska .ffmpeg .libdvdcss \
.live .goom2k4 .libcaca .libmodplug .x264 .libxml2 .twolame \
.png .gpg-error .gcrypt .gnutls .libmpcdec \
.libdvdnav .libdvbpsi .wxwidgets .qt4 .dirac .SDL_image \
.dx_headers .dshow_headers .gecko-win32 .unicows .libdca \
.tag .fontconfig \
.aclocal
# .daap .cddb .cdio .vcdimager .portaudio
# WinCE rules
DISTRO_PKG= .dvbpsi .zlib .ffmpeg .ogg .tremor .faad
DISTRO_PKG= .libdvbpsi .zlib .ffmpeg .ogg .tremor .faad
......@@ -139,8 +139,14 @@ DISTRO_PKG=
include ../distro.mak
all: $(DISTRO_PKG)
RPM_PKG= $(patsubst %,%-rpm,$(subst .,,$(DISTRO_PKG)))
rpm: $(RPM_PKG)
echo "RPM packages can be found in src/rpm/RPMS"
FORCE:
.PHONY: rpm
# ***************************************************************************
# Useful macros
# ***************************************************************************
......@@ -171,6 +177,33 @@ define COMPRESS_TGZ
tar -cz $@ > $<.tgz || true
endef
define COMPRESS_BZ2
rm -f $@.tar.bz2 || true
tar -cj $@ > $<.bz2 || true
endef
# usefull macros for rpm building
define RPM_PREPARE
for i in Patches/$(subst -rpm,,$@)*.{diff,patch,real}; do \
echo "cp $${i} rpm/SOURCES" ; \
cp $${i} rpm/SOURCES || true ; \
done
cp Patches/$(subst -rpm,,$@)*.spec rpm/SPECS || true
cp $< rpm/SOURCES || true
endef
define RPM_BUILD_SPEC
$(RPMBUILD) -v --rcfile /usr/lib/rpm/rpmrc:${PREFIX}/rpmrc -ba rpm/SPECS/$(subst -rpm,.spec,$@) || true
endef
define RPM_REBUILD_SRC
$(RPMBUILD) -v --rcfile /usr/lib/rpm/rpmrc:${PREFIX}/rpmrc --rebuild $< || true
endef
define RPM_BUILD_COMPRESSED
$(RPMBUILD) -v --rcfile /usr/lib/rpm/rpmrc:${PREFIX}/rpmrc -ta $< || true
endef
### Darwin-specific ###
# These macros prepare the dynamic libraries for inclusion in the Mac OS X
# bundle. For instance if you're building a library named libtoto.dylib,
......@@ -429,6 +462,11 @@ DISTCLEAN_PKG += freetype-$(FREETYPE2_VERSION).tar.gz
# ***************************************************************************
# fribidi
# ***************************************************************************
#
fribidi-rpm: fribidi-$(FRIBIDI_VERSION).tar.gz
$(RPM_PREPARE)
$(RPM_BUILD_SPEC)
touch $@
fribidi-$(FRIBIDI_VERSION).tar.gz:
$(WGET) $(FRIBIDI_URL)
......@@ -444,13 +482,17 @@ endif
$(INSTALL_NAME)
touch $@
CLEAN_FILE += .fribidi
CLEAN_FILE += .fribidi fribidi-rpm
CLEAN_PKG += fribidi
DISTCLEAN_PKG += fribidi-$(FRIBIDI_VERSION).tar.gz
# ***************************************************************************
# liba52
# ***************************************************************************
a52dec-rpm: a52dec-$(A52DEC_VERSION).tar.gz
$(RPM_PREPARE)
$(RPM_BUILD_SPEC)
touch $@
a52dec-$(A52DEC_VERSION).tar.gz:
$(WGET) $(A52DEC_URL)
......@@ -458,11 +500,11 @@ a52dec-$(A52DEC_VERSION).tar.gz:
a52dec: a52dec-$(A52DEC_VERSION).tar.gz
$(EXTRACT_GZ)
.a52: a52dec
.a52dec: a52dec
(cd $<; $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) && cd liba52 && make && make install && cd ../include && make && make install)
touch $@
CLEAN_FILE += .a52
CLEAN_FILE += .a52dec a52dec-rpm
CLEAN_PKG += a52dec
DISTCLEAN_PKG += a52dec-$(A52DEC_VERSION).tar.gz
......@@ -470,6 +512,11 @@ DISTCLEAN_PKG += a52dec-$(A52DEC_VERSION).tar.gz
# mpeg2dec
# ***************************************************************************
mpeg2dec-rpm: mpeg2dec-$(MPEG2DEC_VERSION).tar.gz
$(RPM_PREPARE)
$(RPM_BUILD_SPEC)
touch $@
#mpeg2dec:
# @echo "*** Please press return here : ***"
# cvs -d $(MPEG2DEC_CVSROOT) login
......@@ -487,11 +534,11 @@ mpeg2dec-$(MPEG2DEC_VERSION).tar.gz:
mpeg2dec: mpeg2dec-$(MPEG2DEC_VERSION).tar.gz
$(EXTRACT_GZ)
.mpeg2: mpeg2dec
.mpeg2dec: mpeg2dec
(cd $<; $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) --without-x --disable-sdl && cd libmpeg2 && make && make install && cd ../include && make && make install)
touch $@
CLEAN_FILE += .mpeg2
CLEAN_FILE += .mpeg2dec mpeg2dec-rpm
CLEAN_PKG += mpeg2dec
#DISTCLEAN_PKG += mpeg2dec-$(MPEG2DEC_VERSION)-cvs.tar.gz
DISTCLEAN_PKG += mpeg2dec-$(MPEG2DEC_VERSION).tar.gz
......@@ -500,18 +547,23 @@ DISTCLEAN_PKG += mpeg2dec-$(MPEG2DEC_VERSION).tar.gz
# libid3tag
# ***************************************************************************
libid3tag-rpm: libid3tag-$(LIBID3TAG_VERSION).tar.gz
$(RPM_PREPARE)
$(RPM_BUILD_SPEC)
touch $@
libid3tag-$(LIBID3TAG_VERSION).tar.gz:
$(WGET) $(LIBID3TAG_URL)
libid3tag: libid3tag-$(LIBID3TAG_VERSION).tar.gz
$(EXTRACT_GZ)
.id3tag: libid3tag
.libid3tag: libid3tag
(cd $<; $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) && make && make install)
$(INSTALL_NAME)
touch $@
CLEAN_FILE += .id3tag
CLEAN_FILE += .libid3tag libid3tag-rpm
CLEAN_PKG += libid3tag
DISTCLEAN_PKG += libid3tag-$(LIBID3TAG_VERSION).tar.gz
......@@ -519,18 +571,23 @@ DISTCLEAN_PKG += libid3tag-$(LIBID3TAG_VERSION).tar.gz
# libmad
# ***************************************************************************
libmad-rpm: libmad-$(LIBMAD_VERSION).tar.gz
$(RPM_PREPARE)
$(RPM_BUILD_SPEC)
touch $@
libmad-$(LIBMAD_VERSION).tar.gz:
$(WGET) $(LIBMAD_URL)
libmad: libmad-$(LIBMAD_VERSION).tar.gz
$(EXTRACT_GZ)
.mad: libmad
.libmad: libmad
(cd $<; $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) CFLAGS="-O3" && make && make install)
$(INSTALL_NAME)
touch $@
CLEAN_FILE += .mad
CLEAN_FILE += .libmad libmad-rpm
CLEAN_PKG += libmad
DISTCLEAN_PKG += libmad-$(LIBMAD_VERSION).tar.gz
......@@ -736,6 +793,11 @@ DISTCLEAN_PKG += speex-$(SPEEX_VERSION).tar.gz
# faad2
# ***************************************************************************
faad2-rpm: faad2-$(FAAD2_VERSION).tar.bz2
$(RPM_PREPARE)
$(RPM_BUILD_SPEC)
touch $@
#faad2:
# @echo "*** Please type return here : ***"
# cvs -d $(FAAD2_CVSROOT) login
......@@ -746,23 +808,28 @@ DISTCLEAN_PKG += speex-$(SPEEX_VERSION).tar.gz
faad2-$(FAAD2_VERSION).tar.bz2:
$(WGET) $(FAAD2_URL)
faad: faad2-$(FAAD2_VERSION).tar.bz2
faad2: faad2-$(FAAD2_VERSION).tar.bz2
$(EXTRACT_BZ2)
(cd $@; patch -p 0 < ../Patches/faad2.patch && ./bootstrap)
.faad: faad
.faad2: faad2
(cd $< && $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) CFLAGS="-O3" && sed -i.orig "s/shrext_cmds/shrext/g" libtool && make -C libfaad && make -C libfaad install)
$(INSTALL_NAME)
touch $@
CLEAN_FILE += .faad
CLEAN_PKG += faad
CLEAN_FILE += .faad2 faad2-rpm
CLEAN_PKG += faad2
DISTCLEAN_PKG += faad2-$(FAAD2_VERSION).tar.bz2
# ***************************************************************************
# faac
# ***************************************************************************
faac-rpm: faac-$(FAAC_VERSION).tar.bz2
$(RPM_PREPARE)
$(RPM_BUILD_SPEC)
touch $@
faac-$(FAAC_VERSION).tar.bz2:
$(WGET) $(FAAC_URL)
......@@ -774,7 +841,7 @@ faac: faac-$(FAAC_VERSION).tar.bz2
(cd $<; rm -f install-sh mkinstalldirs missing && ./bootstrap && $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) --disable-shared && make && make install)
touch $@
CLEAN_FILE += .faac
CLEAN_FILE += .faac faac-rpm
CLEAN_PKG += faac
DISTCLEAN_PKG += faac-$(FAAC_VERSION).tar.bz2
......@@ -782,6 +849,11 @@ DISTCLEAN_PKG += faac-$(FAAC_VERSION).tar.bz2
# lame
# ***************************************************************************
lame-rpm: lame-$(LAME_VERSION).tar.gz
$(RPM_PREPARE)
$(RPM_BUILD_SPEC)
touch $@
lame-$(LAME_VERSION).tar.gz:
$(WGET) $(LAME_URL)
......@@ -789,11 +861,11 @@ lame: lame-$(LAME_VERSION).tar.gz
$(EXTRACT_GZ)
rm -rf lame; mv lame-3.97 lame; touch lame
.lame: lame
.lame: lame lame-rpm
(cd $<; $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) --disable-analyser-hooks --disable-decoder --disable-shared --disable-gtktest --disable-frontend && make && make install)
touch $@
CLEAN_FILE += .lame
CLEAN_FILE += .lame lame-rpm
CLEAN_PKG += lame
DISTCLEAN_PKG += lame-$(LAME_VERSION).tar.gz
......@@ -801,9 +873,17 @@ DISTCLEAN_PKG += lame-$(LAME_VERSION).tar.gz
# libebml
# ***************************************************************************
libebml-rpm: libebml-$(LIBEBML_VERSION).tar.bz2
$(RPM_PREPARE)
cp libebml/make/linux/fedora-core.spec rpm/SPECS/libebml.spec
sed -e 's/Version: 0.7.5/Version: $(LIBEBML_VERSION)/' -e 's/%{_prefix}/\/usr/' -e 's/%setup -q/%setup -q -n libebml/' -i.orig rpm/SPECS/libebml.spec
$(RPM_BUILD_SPEC)
touch $@
ifdef SVN
libebml:
$(SVN) co http://svn.matroska.org/svn/matroska/trunk/libebml -r 1254 libebml
$(COMPRESS_BZ2)
else
libebml-$(LIBEBML_VERSION).tar.bz2:
$(WGET) $(LIBEBML_URL)
......@@ -815,7 +895,7 @@ ifdef HAVE_WIN32
(cd $@; patch -p 0 < ../Patches/libebml-svn-win32.patch)
endif
.ebml: libebml
.libebml: libebml
ifdef HAVE_WIN32
(cd $<; make -C make/mingw32 prefix=$(PREFIX) $(HOSTCC2) CFLAGS="$(CFLAGS) -DWIN32" SHARED=no && make -C make/linux install_staticlib install_headers prefix=$(PREFIX) $(HOSTCC2))
else
......@@ -824,7 +904,7 @@ else
endif
touch $@
CLEAN_FILE += .ebml
CLEAN_FILE += .libebml libebml-rpm
CLEAN_PKG += libebml
DISTCLEAN_PKG += libebml-$(LIBEBML_VERSION).tar.bz2
......@@ -832,9 +912,17 @@ DISTCLEAN_PKG += libebml-$(LIBEBML_VERSION).tar.bz2
# libmatroska
# ***************************************************************************
libmatroska-rpm: libmatroska-$(LIBMATROSKA_VERSION).tar.bz2
$(RPM_PREPARE)
cp libmatroska/make/linux/fedora-core.spec rpm/SPECS/libmatroska.spec
sed -e 's/Version: 0.7.8/Version: $(LIBMATROSKA_VERSION)/' -e 's/%{_prefix}/\/usr/' -e 's/%setup -q/%setup -q -n libmatroska/' -i.orig rpm/SPECS/libmatroska.spec
$(RPM_BUILD_SPEC)
touch $@
ifdef SVN
libmatroska:
$(SVN) co http://svn.matroska.org/svn/matroska/trunk/libmatroska -r 1254 libmatroska
$(COMPRESS_BZ2)
else
libmatroska-$(LIBMATROSKA_VERSION).tar.bz2:
$(WGET) $(LIBMATROSKA_URL)
......@@ -846,7 +934,7 @@ ifdef HAVE_WIN32
(cd $@; patch -p 0 < ../Patches/libmatroska-win32.patch)
endif
.matroska: libmatroska .ebml
.libmatroska: libmatroska .libebml
ifdef HAVE_WIN32
(cd $<; make -C make/mingw32 prefix=$(PREFIX) $(HOSTCC2) SHARED=no EBML_DLL=no libmatroska.a && make -C make/linux install_staticlib install_headers prefix=$(PREFIX) $(HOSTCC2))
else
......@@ -855,7 +943,7 @@ else
endif
touch $@
CLEAN_FILE += .matroska
CLEAN_FILE += .libmatroska libmatroska-rpm
CLEAN_PKG += libmatroska
DISTCLEAN_PKG += libmatroska-$(LIBMATROSKA_VERSION).tar.bz2
......@@ -863,6 +951,13 @@ DISTCLEAN_PKG += libmatroska-$(LIBMATROSKA_VERSION).tar.bz2
# libamrnb
# ***************************************************************************
libamrnb-rpm: amrnb-$(LIBAMR_NB_VERSION).tar.bz2
$(RPM_PREPARE)
cp libamrnb/amrnb.spec rpm/SPECS/libamrnb.spec
sed -e 's/%configure/%configure --prefix=\/usr --enable-shared/' -i.orig rpm/SPECS/libamrnb.spec
$(RPM_BUILD_SPEC)
touch $@
amrnb-$(LIBAMR_NB_VERSION).tar.bz2:
$(WGET) $(LIBAMR_NB)
......@@ -873,7 +968,7 @@ libamrnb: amrnb-$(LIBAMR_NB_VERSION).tar.bz2
(cd $<; $(HOSTCC) ./configure --prefix=$(PREFIX) --enable-shared && make && make install)
touch $@
CLEAN_FILE += .libamrnb
CLEAN_FILE += .libamrnb libamrnb-rpm
CLEAN_PKG += libamrnb
DISTCLEAN_PKG += amrnb-$(LIBAMR_NB_VERSION).tar.bz2
......@@ -881,6 +976,13 @@ DISTCLEAN_PKG += amrnb-$(LIBAMR_NB_VERSION).tar.bz2
# libamrwb
# ***************************************************************************
libamrwb-rpm: amrwb-$(LIBAMR_WB_VERSION).tar.bz2
$(RPM_PREPARE)
cp libamrwb/amrwb.spec rpm/SPECS/libamrwb.spec
sed -e 's/Version: 7.0.0.0/Version: $(LIBAMR_WB_VERSION)/' -e 's/%configure/%configure --prefix=\/usr --enable-shared/' -i.orig rpm/SPECS/libamrwb.spec
$(RPM_BUILD_SPEC)
touch $@
amrwb-$(LIBAMR_WB_VERSION).tar.bz2:
$(WGET) $(LIBAMR_WB)
......@@ -891,7 +993,7 @@ libamrwb: amrwb-$(LIBAMR_WB_VERSION).tar.bz2
(cd $<; $(HOSTCC) ./configure --prefix=$(PREFIX) --enable-shared && make && make install)
touch $@
CLEAN_FILE += .libamrwb
CLEAN_FILE += .libamrwb libamrwb-rpm
CLEAN_PKG += libamrwb
DISTCLEAN_PKG += amrwb-$(LIBAMR_WB_VERSION).tar.bz2
......@@ -899,8 +1001,17 @@ DISTCLEAN_PKG += amrwb-$(LIBAMR_WB_VERSION).tar.bz2
# ffmpeg
# ***************************************************************************
ffmpeg-rpm: ffmpeg.tar.gz
$(RPM_PREPARE)
# sed -e 's/$$(FFMPEGCONF)/$(FFMPEGCONF)/' -e 's/$$(CFLAGS)/$(CFLAGS)/' -e 's/$$(FFMPEG_CFLAGS)/$(FFMPEG_CFLAGS)/' -i.orig rpm/SPECS/ffmpeg.spec
sed -e 's/BuildRequires/#BuildRequires/' -i.orig rpm/SPECS/ffmpeg.spec
$(RPM_BUILD_SPEC)
touch $@
ffmpeg:
$(SVN) co $(FFMPEG_SVN) ffmpeg
$(COMPRESS_TGZ)
ifeq ($(HOST),i586-pc-beos)
(cd $@; patch -p 0 < ../Patches/ffmpeg-svn-beos.patch)
endif
......@@ -929,7 +1040,7 @@ endif
(cd $<; $(HOSTCC) ./configure $(FFMPEGCONF) --prefix=$(PREFIX) --extra-cflags="$(CFLAGS) $(FFMPEG_CFLAGS) -DRUNTIME_CPUDETECT" --extra-ldflags="$(LDFLAGS)" --enable-gpl --enable-pp --disable-vhook --disable-ffserver --disable-network --enable-liba52 --enable-swscaler --disable-ffplay && make install-libs install-headers)
touch $@
CLEAN_FILE += .ffmpeg
CLEAN_FILE += .ffmpeg ffmpeg-rpm
CLEAN_PKG += ffmpeg ffmpeg.cvs
DISTCLEAN_PKG += ffmpeg-$(FFMPEG_VERSION).tar.gz
......@@ -937,10 +1048,18 @@ DISTCLEAN_PKG += ffmpeg-$(FFMPEG_VERSION).tar.gz
# libdvdcss
# ***************************************************************************
libdvdcss-rpm: libdvdcss-$(LIBDVDCSS_VERSION).tar.bz2
$(RPM_PREPARE)
cp libdvdcss/libdvdcss.spec rpm/SPECS/libdvdcss.spec
sed -e 's/%setup -q/%setup -q -n libdvdcss/' -e 's/%configure2_5x/%configure2_5x --disable-doc --prefix=\/usr/' -e 's/Packager/#Packager/' -i.orig rpm/SPECS/libdvdcss.spec
$(RPM_BUILD_SPEC)
touch $@
ifdef SVN
libdvdcss:
$(SVN) co svn://svn.videolan.org/libdvdcss/trunk libdvdcss
cd $@ && sh bootstrap
$(COMPRESS_BZ2)
else
libdvdcss-$(LIBDVDCSS_VERSION).tar.gz:
$(WGET) $(LIBDVDCSS_URL)
......@@ -949,12 +1068,12 @@ libdvdcss: libdvdcss-$(LIBDVDCSS_VERSION).tar.gz
$(EXTRACT_GZ)
endif
.dvdcss: libdvdcss
.libdvdcss: libdvdcss
(cd $<; $(HOSTCC) ./configure $(HOSTCONF) --disable-doc --prefix=$(PREFIX) && make && make install)
$(INSTALL_NAME)
touch $@
CLEAN_FILE += .dvdcss
CLEAN_FILE += .libdvdcss libdvdcss-rpm
CLEAN_PKG += libdvdcss
DISTCLEAN_PKG += libdvdcss-$(LIBDVDCSS_VERSION).tar.gz
......@@ -977,29 +1096,37 @@ DISTCLEAN_PKG += libdvdcss-$(LIBDVDCSS_VERSION).tar.gz
# (cd libdvdread; patch -p 0 < ../Patches/libdvdread-20041028-win32.patch; ./bootstrap)
#endif
#.dvdread: libdvdread .dvdcss
#.dvdread: libdvdread .libdvdcss
# (cd libdvdread; $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) --with-libdvdcss=$(PREFIX) && make && make install)
# $(INSTALL_NAME)
# touch $@
#CLEAN_FILE += .dvdread
#CLEAN_FILE += .libdvdread
#CLEAN_PKG += libdvdread
#DISTCLEAN_PKG += libdvdread-$(LIBDVDREAD_VERSION).tar.bz2
# ***************************************************************************
# dummy dvdread to trigger the INSTALL_NAME script
# ***************************************************************************
.dvdread: .dvdnav
.libdvdread: .libdvdnav
$(INSTALL_NAME)
(install_name_tool -change $(PREFIX)/lib/libdvdread.0.dylib @executable_path/lib/vlc_libdvdread.dylib $(PREFIX)/vlc-lib/vlc_libdvdnav.dylib)
touch $@
CLEAN_FILE += .dvdread
CLEAN_FILE += .libdvdread
# ***************************************************************************
# libdvdnav
# ***************************************************************************
libdvdnav-rpm: libdvdnav-$(LIBDVDNAV_VERSION).tar.bz2
$(RPM_PREPARE)
cp Patches/dvdnav.patch rpm/SOURCES/
cp libdvdnav/misc/libdvdnav.spec rpm/SPECS/
sed -e 's/%define prefix \/home\/jpsaman\/Source\/vlc-0.8.6c-bugfix-m2x.git\/extras\/contrib/%define prefix \/usr/' -e 's/Copyright: GPL/License: GPL\nPatch0: dvdnav.patch/' -e 's/%setup/%setup -n libdvdnav-${LIBDVDNAV_VERSION}\n%patch -p1/' -e 's/%{name}-%{version}.tar.gz/%{name}-${LIBDVDNAV_VERSION}.tar.bz2/' -e 's/#\/dvdnav.m4/%{prefix}\/include\/dvdread\/\*\n%{prefix}\/lib\/libdvdread.\*\n%{prefix}\/share\/aclocal\/dvdnav.m4/' -i.orig rpm/SPECS/libdvdnav.spec
$(RPM_BUILD_SPEC)
touch $@
libdvdnav-$(LIBDVDNAV_VERSION).tar.bz2:
$(WGET) $(LIBDVDNAV_URL)
......@@ -1009,7 +1136,7 @@ libdvdnav: libdvdnav-$(LIBDVDNAV_VERSION).tar.bz2
patch -p 0 < Patches/libdvdnav-mactel.patch
(cd $@; ./autogen.sh noconfig)
.dvdnav: libdvdnav .dvdcss
.libdvdnav: libdvdnav .libdvdcss
ifdef HAVE_WIN32
(cd $<; $(HOSTCC) ./configure $(HOSTCONF) --enable-static --prefix=$(PREFIX) --with-libdvdcss=$(PREFIX) CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS) -Dssize_t=long" && make && make install)
else
......@@ -1018,7 +1145,7 @@ endif
$(INSTALL_NAME)
touch $@
CLEAN_FILE += .dvdnav
CLEAN_FILE += .libdvdnav libdvdnav-rpm
CLEAN_PKG += libdvdnav
DISTCLEAN_PKG += libdvdnav-$(LIBDVDNAV_VERSION).tar.bz2
......@@ -1026,18 +1153,25 @@ DISTCLEAN_PKG += libdvdnav-$(LIBDVDNAV_VERSION).tar.bz2
# libdvbpsi
# ***************************************************************************
libdvbpsi-rpm: libdvbpsi5-$(LIBDVBPSI_VERSION).tar.gz
$(RPM_PREPARE)
cp libdvbpsi/libdvbpsi.spec rpm/SPECS/
sed -e 's/Oct,/Oct/' -e 's/bz2/gz/' -e 's/%define redhat 0/%define redhat 1/' -i.orig rpm/SPECS/libdvbpsi.spec
$(RPM_BUILD_SPEC)
touch $@
libdvbpsi5-$(LIBDVBPSI_VERSION).tar.gz:
$(WGET) $(LIBDVBPSI_URL)
libdvbpsi: libdvbpsi5-$(LIBDVBPSI_VERSION).tar.gz
$(EXTRACT_GZ)
.dvbpsi: libdvbpsi
.libdvbpsi: libdvbpsi
(cd $<; $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) && cd src && make && make install)
$(INSTALL_NAME)
touch $@
CLEAN_FILE += .dvbpsi
CLEAN_FILE += .libdvbpsi libdvbpsi-rpm
CLEAN_PKG += libdvbpsi
DISTCLEAN_PKG += libdvbpsi5-$(LIBDVBPSI_VERSION).tar.gz
......@@ -1045,6 +1179,11 @@ DISTCLEAN_PKG += libdvbpsi5-$(LIBDVBPSI_VERSION).tar.gz
# live
# ***************************************************************************
live-rpm: live555-$(LIVEDOTCOM_VERSION).tar.gz
$(RPM_PREPARE)
$(RPM_BUILD_SPEC)
touch $@
live555-$(LIVEDOTCOM_VERSION).tar.gz:
$(WGET) $(LIVEDOTCOM_URL)
......@@ -1072,7 +1211,7 @@ endif
endif
touch $@
CLEAN_FILE += .live
CLEAN_FILE += .live live-rpm
CLEAN_PKG += live
DISTCLEAN_PKG += live555-$(LIVEDOTCOM_VERSION).tar.gz
......@@ -1098,6 +1237,12 @@ DISTCLEAN_PKG += live555-$(LIVEDOTCOM_VERSION).tar.gz
# goom2k4
# ***************************************************************************
# goom is used as static library so no rpm build necessary
# goom2k4-rpm: goom$(GOOM2k4_VERSION).tar.gz
# $(RPM_PREPARE)
# $(RPM_BUILD_SPEC)
# touch $@
goom$(GOOM2k4_VERSION).tar.gz:
$(WGET) $(GOOM2k4_URL)
mv goom-$(GOOM2k4_VERSION)-src.tar.gz goom$(GOOM2k4_VERSION).tar.gz
......@@ -1130,13 +1275,20 @@ DISTCLEAN_PKG += goom$(GOOM2k4_VERSION).tar.gz
# libcaca
# ***************************************************************************
libcaca-rpm: libcaca-$(LIBCACA_VERSION).tar.gz
$(RPM_PREPARE)
cp libcaca/libcaca.spec rpm/SPECS/libcaca.spec
sed -e 's/%{_prefix}/\/usr/' -e 's/--enable-x11 --enable-imlib2 --enable-doc/--disable-x11 --disable-imlib2 --disable-doc/' -e 's/.bz2/.gz/' -e 's/Buildrequires: imlib2-devel//' -e 's/XFree86-devel,//' -e 's/Buildrequires: doxygen, tetex-latex, tetex-dvips//' -e 's/share\/man/man/' -e 's/\/usr\/man\/man3\/\*//' -e 's/\/usr\/man\/man1\/cacaball.1\*//' -e 's/\/usr\/man\/man1\/cacafire.1\*//' -e 's/\/usr\/man\/man1\/cacamoir.1\*//' -e 's/\/usr\/man\/man1\/cacaplas.1\*//' -i.orig rpm/SPECS/libcaca.spec
$(RPM_BUILD_SPEC)
touch $@
libcaca-$(LIBCACA_VERSION).tar.gz:
$(WGET) $(LIBCACA_URL)
libcaca: libcaca-$(LIBCACA_VERSION).tar.gz
$(EXTRACT_GZ)
.caca: libcaca
.libcaca: libcaca
ifdef HAVE_WIN32
(cd $<; $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) --enable-win32 --disable-x11 --disable-imlib2 --disable-doc && make && make install)
else
......@@ -1144,7 +1296,7 @@ else
endif
touch $@
CLEAN_FILE += .caca
CLEAN_FILE += .libcaca libcaca-rpm
CLEAN_PKG += libcaca
DISTCLEAN_PKG += libcaca-$(LIBCACA_VERSION).tar.gz
......@@ -1152,21 +1304,32 @@ DISTCLEAN_PKG += libcaca-$(LIBCACA_VERSION).tar.gz
# libdca
# ***************************************************************************
libdca-rpm: libdca-svn_35.tar.gz
$(RPM_PREPARE)
$(RPM_BUILD_SPEC)
touch $@
libdca:
$(SVN) co $(LIBDCA_SVN) -r 35 libdca
(cd $@; ./bootstrap)
$(COMPRESS_TGZ)
.libdca: libdca
(cd $<; $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) && make && make install)
touch $@
CLEAN_FILE += .libdca
CLEAN_FILE += .libdca libdca-rpm
CLEAN_PKG += libdca
# ***************************************************************************
# libx264
# ***************************************************************************
x264-rpm: x264-svn-604.tar.gz
$(RPM_PREPARE)
$(RPM_BUILD_SPEC)
touch $@
ifdef SVN
x264:
$(SVN) co svn://svn.videolan.org/x264/trunk/ -r 736 x264
......@@ -1185,7 +1348,7 @@ x264: x264-$(X264_VERSION).tar.gz
ifdef HAVE_WIN32
(cd x264;patch -p 0 <../Patches/x264-20050624-win32.patch)
else
patch -p 0 < Patches/x264.patch
patch -p0 < Patches/x264.patch
rm x264/x264.c
endif
endif
......@@ -1194,7 +1357,7 @@ endif
(cd $<; ./configure $(X264CONF) --prefix="$(PREFIX)" --enable-pic && make && make install)
touch $@
CLEAN_FILE += .x264
CLEAN_FILE += .x264 x264-rpm
CLEAN_PKG += x264
DISTCLEAN_PKG += x264-$(X264_VERSION).tar.gz
......@@ -1202,17 +1365,22 @@ DISTCLEAN_PKG += x264-$(X264_VERSION).tar.gz
# libmodplug
# ***************************************************************************
libmodplug-rpm: libmodplug-$(MODPLUG_VERSION).tar.gz
$(RPM_PREPARE)
$(RPM_BUILD_SPEC)
touch $@
libmodplug-$(MODPLUG_VERSION).tar.gz:
$(WGET) $(MODPLUG_URL)
libmodplug: libmodplug-$(MODPLUG_VERSION).tar.gz
$(EXTRACT_GZ)
.mod: libmodplug
.libmodplug: libmodplug
(cd $<; $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) --disable-shared --enable-static && make && make install)
touch $@
CLEAN_FILE += .mod
CLEAN_FILE += .libmodplug
CLEAN_PKG += libmodplug
DISTCLEAN_PKG += libmodplug-$(MODPLUG_VERSION).tar.gz
......@@ -1298,6 +1466,12 @@ DISTCLEAN_PKG += mash-src-$(MASH_VERSION).tar.gz
# wxWidgets
# ***************************************************************************
wxwidgets-rpm: wxWidgets-$(WXWIDGETS_VERSION).tar.gz
$(RPM_PREPARE)
cp Patches/wxGTK.spec rpm/SPECS/wxwidgets.spec
$(RPM_BUILD_SPEC)
touch $@
wxWidgets-$(WXWIDGETS_VERSION).tar.gz:
$(WGET) $(WXWIDGETS_URL)
......@@ -1311,7 +1485,7 @@ wxwidgets: wxWidgets-$(WXWIDGETS_VERSION).tar.gz
$(INSTALL_NAME)
touch $@
CLEAN_FILE += .wxwidgets
CLEAN_FILE += .wxwidgets wxwidgets-rpm
CLEAN_PKG += wxwidgets
DISTCLEAN_PKG += wxWidgets-$(WXWIDGETS_VERSION).tar.gz
......@@ -1363,25 +1537,30 @@ DISTCLEAN_PKG += pa_snapshot_v$(PORTAUDIO__VERSION).tar.gz
# xml
# ***************************************************************************
libxml2-rpm: libxml2-$(XML_VERSION).tar.gz
$(RPM_PREPARE)
$(RPM_BUILD_SPEC)
touch $@
libxml2-$(XML_VERSION).tar.gz:
$(WGET) $(XML_URL)
xml: libxml2-$(XML_VERSION).tar.gz
libxml2: libxml2-$(XML_VERSION).tar.gz
$(EXTRACT_GZ)
ifdef HAVE_WIN32
patch -p 0 < Patches/xml2-win32.patch
rm -f xml/aclocal.m4
endif
.xml: xml
.libxml2: libxml2
(cd xml; CFLAGS="-DLIBXML_STATIC" $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) --with-minimal --with-catalog --with-reader --with-tree --with-push --with-xptr --with-valid --with-writer --with-output --with-xpath --with-xinclude --with-sax1 --without-zlib --without-iconv --without-http --without-ftp && make && make install)
ifndef HAVE_DARWIN_OS
$(INSTALL_NAME)
endif
touch $@
CLEAN_FILE += .xml
CLEAN_PKG += xml
CLEAN_FILE += .libxml2 libxml2-rpm
CLEAN_PKG += libxml2
DISTCLEAN_PKG += libxml2-$(XML_VERSION).tar.gz
......@@ -1389,6 +1568,11 @@ DISTCLEAN_PKG += libxml2-$(XML_VERSION).tar.gz
# twolame
# ***************************************************************************
twolame-rpm: twolame-$(TWOLAME_VERSION).tar.gz
$(RPM_PREPARE)
$(RPM_BUILD_SPEC)
touch $@
twolame-$(TWOLAME_VERSION).tar.gz:
$(WGET) $(TWOLAME_URL)
......@@ -1409,7 +1593,7 @@ endif
$(INSTALL_NAME)
touch $@
CLEAN_FILE += .twolame
CLEAN_FILE += .twolame twolame-rpm
CLEAN_PKG += twolame
DISTCLEAN_PKG += twolame-$(TWOLAME_VERSION).tar.gz
......@@ -1817,17 +2001,23 @@ DISTCLEAN_PKG += SDL_image-$(SDL_IMAGE_VERSION).tar.gz
# Musepack decoder library (libmpcdec)
# ***************************************************************************
libmpcdec-rpm: libmpcdec-$(MUSE_VERSION).tar.bz2
$(RPM_PREPARE)
cp Patches/mpcdec.patch rpm/SOURCES
$(RPM_BUILD_SPEC)
touch $@
libmpcdec-$(MUSE_VERSION).tar.bz2:
$(WGET) $(MUSE_URL)
mpcdec: libmpcdec-$(MUSE_VERSION).tar.bz2
libmpcdec: libmpcdec-$(MUSE_VERSION).tar.bz2
$(EXTRACT_BZ2)
patch -p 0 < Patches/mpcdec.patch
ifdef HAVE_WIN32
(cd $@; ./autogen.sh)
endif
.mpcdec: mpcdec
.libmpcdec: libmpcdec
ifdef HAVE_WIN32
(cd $<; $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) CFLAGS=-D_PTRDIFF_T=mpc_int32_t && make && make install)
else
......@@ -1838,14 +2028,19 @@ ifdef HAVE_DARWIN_OS
endif
touch $@
CLEAN_FILE += .mpcdec
CLEAN_PKG += mpcdec
CLEAN_FILE += .libmpcdec libmpcdec-rpm
CLEAN_PKG += libmpcdec
DISTCLEAN_PKG += libmpcdec-$(MUSE_VERSION).tar.bz2
# ***************************************************************************
# Dirac
# ***************************************************************************
dirac-rpm: dirac-$(DIRAC_VERSION).tar.gz
$(RPM_PREPARE)
$(RPM_BUILD_SPEC)
touch $@
dirac-$(DIRAC_VERSION).tar.gz:
$(WGET) $(DIRAC_URL)
......@@ -1872,7 +2067,7 @@ endif
$(INSTALL_NAME)
touch $@
CLEAN_FILE += .dirac
CLEAN_FILE += .dirac dirac-rpm
CLEAN_PKG += dirac
DISTCLEAN_PKG += dirac-$(DIRAC_VERSION).tar.gz
......@@ -2010,5 +2205,7 @@ clean: clean-dots
clean-src: clean
rm -rf $(DISTCLEAN_PKG)
distclean: clean-src
clean-rpm:
rm -fr rpm/
distclean: clean-src
Summary: liba52 is a free library for decoding ATSC A/52 streams.
Name: a52dec
Version: 0.7.4
Release: 1
License: GPL
Group: System/Libraries
Source: a52dec-0.7.4.tar.gz
URL: http://liba52.sourceforge.net
BuildRoot: /var/tmp/%{name}-%{version}-root
Prefix: /usr
%prep
%setup
%build
./bootstrap
if test -z "${PREFIX}"; then PREFIX=/usr; fi
CFLAGS=$RPM_OPT_FLAGS ./configure --prefix=${PREFIX} --enable-shared
make
%install
rm -fr $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
%clean
rm -fr $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING HISTORY INSTALL NEWS README TODO
/usr/bin/a52dec
/usr/bin/extract_a52
/usr/lib/liba52.so
/usr/lib/liba52.so.0
/usr/lib/liba52.so.0.0.0
/usr/share/man/man1/a52dec.1
/usr/share/man/man1/extract_a52.1
%description
liba52 is a free library for decoding ATSC A/52 streams. It is released under the terms of the GPL license. The A/52 standard is used in a variety of applications, including digital television and DVD. It is also known as AC-3.
%package devel
Summary: Development headers and libraries for a52.
Group: System/Libraries
%description devel
Development headers and libraries for liba52 is a free library for decoding ATSC A/52 streams. It is released under the terms of the GPL license. The A/52 standard is used
in a variety of applications, including digital television and DVD. It is also known as AC-3.
%files devel
%defattr(-,root,root)
/usr/include/a52dec/a52.h
/usr/include/a52dec/attributes.h
/usr/include/a52dec/audio_out.h
/usr/include/a52dec/mm_accel.h
/usr/lib/liba52.a
/usr/lib/liba52.la
%changelog
* Sun Aug 23 2006 Jean-Paul Saman <jpsaman@videolan.org>
- Initial RPM spec file.
Summary: Dirac is an opensource video codec
Name: dirac
Version: 0.5.4
Release: 1
Group: System/Libraries
Source: dirac-%{version}.tar.gz
Patch0: dirac-cross.patch
URL: http://www.sf.net/dirac/%{name}-%{version}.tar.gz
License: GPL
BuildRoot: /var/tmp/%{name}-%{version}-root
Prefix: /usr
%description
Dirac is an open source video codec. It uses a traditional hybrid video codec
architecture, but with the wavelet transform instead of the usual block
transforms. Motion compensation uses overlapped blocks to reduce block
artefacts that would upset the transform coding stage.
%prep
%setup
%patch0 -p 1
aclocal && autoconf && automake
%clean
rm -fr $RPM_BUILD_ROOT
%build
./configure --prefix=/usr --enable-shared && DOC_DIR="" make
%install
DOC_DIR="" make DESTDIR=$RPM_BUILD_ROOT install
%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING README INSTALL NEWS TODO
/usr/bin/BMPtoRGB
/usr/bin/RGBtoBMP
/usr/bin/RGBtoUYVY
/usr/bin/RGBtoYUV411
/usr/bin/RGBtoYUV420
/usr/bin/RGBtoYUV422
/usr/bin/RGBtoYUV444
/usr/bin/UYVYtoRGB
/usr/bin/YUV411toRGB
/usr/bin/YUV420toRGB
/usr/bin/YUV422toRGB
/usr/bin/YUV444toRGB
/usr/bin/dirac_decoder
/usr/bin/dirac_encoder
/usr/bin/dirac_instrumentation
/usr/lib/libdirac_decoder.so
/usr/lib/libdirac_decoder.so.0
/usr/lib/libdirac_decoder.so.0.0.0
/usr/lib/libdirac_encoder.so
/usr/lib/libdirac_encoder.so.0
/usr/lib/libdirac_encoder.so.0.0.0
%package devel
Summary: Development headers and libraries for Dirac
Group: System/Libraries
Requires: dirac
%description devel
Dirac is an open source video codec. It uses a traditional hybrid video codec
architecture, but with the wavelet transform instead of the usual block
transforms. Motion compensation uses overlapped blocks to reduce block
artefacts that would upset the transform coding stage.
%files devel
%defattr(-,root,root)
/usr/include/dirac/libdirac_common/common_types.h
/usr/include/dirac/libdirac_common/dirac_types.h
/usr/include/dirac/libdirac_decoder/decoder_types.h
/usr/include/dirac/libdirac_decoder/dirac_parser.h
/usr/include/dirac/libdirac_encoder/dirac_encoder.h
/usr/lib/libdirac_decoder.a
/usr/lib/libdirac_decoder.la
/usr/lib/libdirac_encoder.a
/usr/lib/libdirac_encoder.la
/usr/lib/pkgconfig/dirac.pc
%changelog
* Wed Nov 28 2007 Jean-Paul Saman <jpsaman@videolan.org>
- 0.5.3 -> 0.5.4
* Sun Aug 13 2006 Jean-Paul Saman <jpsaman@videolan.org>
- first dirac rpm specfile
Summary: FAAC is based on the ISO MPEG-4 reference code.
Name: faac
Version: 1.24
Release: 1
Group: System/Libraries
License: LGPL
URL: http;//www.audiocoding.com
Source: http://download.videolan.org/pub/videolan/testing/contrib/%{name}-%{version}.tar.bz2
Patch0: faac.patch
BuildRoot: /var/tmp/%{name}-%{version}-root
#BuildRequires: faad2-devel
#Requires: faad2
Prefix: /usr
%prep
%setup
%patch0 -p1
%build
rm -fr $RPM_BUILD_ROOT
rm -f install-sh mkinstalldirs missing
./bootstrap
CFLAGS=${RPM_OPTS_FLAGS} ./configure --prefix=/usr --enable-shared
make
%install
rm -fr $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
%clean
rm -fr $RPM_BUILD_ROOT
%description
FAAC is based on the ISO MPEG-4 reference code. It is dual licensed: for the original code the MPEG ISO/IEC license applies and for changes to the FAAC code the LGPL applies.
%files
%defattr(-,root,root)
%doc AUTHORS COPYING INSTALL NEWS README TODO
/usr/bin/faac
/usr/lib/libfaac.so
/usr/lib/libfaac.so.0
/usr/lib/libfaac.so.0.0.0
%package devel
Summary: FAAC development headers and libraries.
Group: System/Libraries
Provides: %{name}-devel = %{version}-%{release}
Requires: faad2-devel
%description devel
FAAC development headers and libraries.
%files devel
%defattr(-,root,root)
/usr/include/faac.h
/usr/include/faaccfg.h
/usr/lib/libfaac.a
/usr/lib/libfaac.la
%changelog
* Sun Aug 13 2006 Jean-Paul Saman <jpsaman@videolan.org>
- start new specfile.
%define faad_date 20040923
Summary: C library and frontend for decoding MPEG2/4 AAC
Name: faad2
Version: 2.0
Release: 1
License: GPL
Group: Applications/Multimedia
Source0: http://download.videolan.org/pub/videolan/testing/contrib/%{name}-%{faad_date}.tar.bz2
Patch: faad2.patch
BuildRequires: autoconf, automake, libtool, gcc-c++
URL: http://www.audiocoding.com/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Packager: a.kurpiers@nt.tu-darmstadt.de
Prefix: /usr
%description
FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder, completely
written from scratch. FAAD 2 is licensed under the GPL.
Includes libmp4ff, a Quicktime library for UNIX in a freely redistributable,
statically linkable library.
%package devel
Summary: Development libraries the FAAD 2 AAC decoder.
Group: Development/Libraries
Requires: %{name}
%description devel
Header files and development documentation for libfaad.
%prep
%setup -n %{name}-%{faad_date}
%patch -p0
%build
./bootstrap
./configure --host=${HOST} --build=${BUILD} --prefix=/usr CFLAGS="-O3"
sed -i.orig "s/shrext_cmds/shrext/g" libtool
make -C libfaad
make DESTDIR="$RPM_BUILD_ROOT" -C libfaad install
%install
rm -rf %{buildroot}
LIBRARY_PATH="%{buildroot}/usr/lib:${LIBRARY_PATH}" make DESTDIR="$RPM_BUILD_ROOT" -C libfaad install
# Hack to work around a problem with DESTDIR in libtool 1.4.x
#LIBRARY_PATH="%{buildroot}/usr/lib:${LIBRARY_PATH}" make install DESTDIR=%{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf %{buildroot}
%files
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README TODO
%{_libdir}/libfaad.so*
%files devel
%defattr(-, root, root)
%{_libdir}/libfaad.a
%{_libdir}/libfaad.la
%{_includedir}/faad.h
%{_includedir}/neaacdec.h
%changelog
* Fri Jul 14 2006 Jean-Paul Saman <jpsaman@videolan.org>
- Remove xmms and Quicktime from the depedencies. These are not used by VLC.
- This RPM build is primarily for use with VLC.
* Fri Feb 06 2004 Alexander Kurpiers <a.kurpiers@nt.tu-darmstadt.de>
- remove seperate libmp4ff target
* Wed Nov 05 2003 Alexander Kurpiers <a.kurpiers@nt.tu-darmstadt.de>
- include xmms plugins/libmp4v2/libmp4ff into RPM
* Tue Aug 12 2003 Matthias Saou <matthias.saou@est.une.marmotte.net>
- Update to 2.0rc1.
- Introduced LD_LIBRARY_PATH workaround.
- Removed optional xmms plugin build, it seems mandatory now.
- Added gtk+ build dep for the xmms plugin.
* Wed May 14 2003 Matthias Saou <matthias.saou@est.une.marmotte.net>
- Added xmms plugin build.
* Wed Apr 9 2003 Matthias Saou <matthias.saou@est.une.marmotte.net>
- Spec file cleanup.
- Now exclude .la file.
- Update to latest CVS checkout to fix compile problem.
* Fri Aug 10 2002 Alexander Kurpiers <a.kurpiers@nt.tu-darmstadt.de>
- changes to compile v1.1 release
* Tue Jun 18 2002 Alexander Kurpiers <a.kurpiers@nt.tu-darmstadt.de>
- First RPM.
Summary: FFmpeg encoder and decoder libraries
Name: ffmpeg
Version: svn_10886
Release: 1
Group: System/Libraries
License: LGPL
Source: %{name}.tar.gz
URL: svn://svn.mplayerhq.hu/ffmpeg/trunk
BuildRoot: /var/tmp/%{name}-%{version}-root
BuildRequires: faac-devel, lame-devel, a52dec-devel, libamrnb-devel, libamrwb-devel
Requires: faac, lame, a52dec, libamrnb, libamrwb
Prefix: /usr
%description
FFmpeg encoder and decoder libraries.
%clean
rm -fr $RPM_BUILD_ROOT
%prep
%setup -n ffmpeg
%build
./configure --enable-libmp3lame --enable-libfaac --enable-libamr --enable-libamr-nb --enable-libamr-wb --prefix=/usr --extra-cflags="-I/home/jpsaman/Source/vlc-0.8.6c-bugfix-m2x.git/extras/contrib/include -I/usr/include -DRUNTIME_CPUDETECT" --extra-ldflags="-L/home/jpsaman/Source/vlc-0.8.6c-bugfix-m2x.git/extras/contrib/lib" --enable-gpl --enable-pp --disable-vhook --disable-ffserver --disable-network --enable-liba52 --disable-swscaler --disable-ffplay
make
%install
make DESTDIR=$RPM_BUILD_ROOT install
%files
%defattr(-,root,root)
%doc Changelog COPYING.GPL COPYING.LGPL CREDITS INSTALL MAINTAINERS README
/usr/bin/ffmpeg
#/usr/lib/libavcodec.so
#/usr/lib/libavcodec.so.51
#/usr/lib/libavcodec.so.51.11.0
#/usr/lib/libavformat.so
#/usr/lib/libavformat.so.50
#/usr/lib/libavformat.so.50.5.0
#/usr/lib/libavutil.so
#/usr/lib/libavutil.so.49
#/usr/lib/libavutil.so.49.0.0
#/usr/lib/libpostproc.so
#/usr/lib/libpostproc.so.51
#/usr/lib/libpostproc.so.51.11.0
#/usr/man/man1/ffmpeg.1.gz
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%package devel
Summary: FFMPEG development headers and libraries.
#Requires: faac-devel, lame-devel, a52dec-devel, libamrnb-devel, libamrwb-devel
Group: Development/C
%files devel
%defattr(-,root,root)
/usr/include/ffmpeg/adler32.h
/usr/include/ffmpeg/avcodec.h
/usr/include/ffmpeg/avformat.h
/usr/include/ffmpeg/avio.h
/usr/include/ffmpeg/avutil.h
/usr/include/ffmpeg/common.h
/usr/include/ffmpeg/integer.h
/usr/include/ffmpeg/intfloat_readwrite.h
/usr/include/ffmpeg/log.h
/usr/include/ffmpeg/mathematics.h
/usr/include/ffmpeg/md5.h
/usr/include/ffmpeg/rational.h
/usr/include/ffmpeg/rtp.h
/usr/include/ffmpeg/rtsp.h
/usr/include/ffmpeg/rtspcodes.h
/usr/include/ffmpeg/swscale.h
/usr/include/ffmpeg/avstring.h
/usr/include/ffmpeg/base64.h
/usr/include/ffmpeg/fifo.h
/usr/include/ffmpeg/lzo.h
/usr/include/ffmpeg/mem.h
/usr/include/ffmpeg/opt.h
/usr/include/ffmpeg/random.h
/usr/include/ffmpeg/rgb2rgb.h
/usr/lib/libavcodec.a
/usr/lib/libavformat.a
/usr/lib/libavutil.a
/usr/lib/libpostproc.a
/usr/lib/pkgconfig/libavcodec.pc
/usr/lib/pkgconfig/libavformat.pc
/usr/lib/pkgconfig/libavutil.pc
/usr/lib/pkgconfig/libpostproc.pc
/usr/lib/pkgconfig/libswscale.pc
/usr/include/postproc/postprocess.h
%description devel
FFmpeg encoder and decoder libraries.
%changelog
* Mon Nov 26 2007 Jean-Paul Saman <jpsaman@videolan.org>
- new ffmpeg snapshot svn revision 10886
- release 1
* Tue Oct 30 2006 Jean-Paul Saman <jpsaman@videolan.org>
- added manpage for ffmpeg
- increased release 1 -> 2
* Tue Aug 15 2006 Jean-Paul Saman <jpsaman@videolan.org>
- initial rpm specfile
# This spec file creates three packages:
#
# Everything:
# (this is equivalent to two others together)
# fribidiN-version-release-arch.rpm
# Runtime material: Shared library and command line tool
# libfribidiN-version-release-arch.rpm
# Development material: Static library and header files
# (requires libfribidi)
# libfribidiN-devel-version-release-arch.rpm
# Where N is the major version number.
%define name fribidi
%define ver 0.10.4
%define major 0
%define minor 10
%define micro 4
%define apiver 2
%define rel 0
%define prefix %{_prefix}
Name: %{name}
Version: %{ver}
Release: %{rel}
License: LGPL
Source: http://prdownloads.sourceforge.net/%{name}/%{name}-%{ver}.tar.gz
URL: http://%{name}.sourceforge.net/
BuildRoot: %{_tmppath}/%{name}
Patch0: fribidi.patch.real
Patch1: fribidi-win32.patch
Summary: Library implementing the Unicode Bidirectional Algorithm
Group: System/Libraries
%description
A library to handle bidirectional scripts (eg. hebrew, arabic), so that
the display is done in the proper way; while the text data itself is
always written in logical order.
%package -n %{name}%{major}
Summary: Library implementing the Unicode Bidirectional Algorithm
Group: System/Libraries
Provides: lib%{name}%{major}
Provides: lib%{name}%{major}-devel
%description -n %{name}%{major}
A library to handle bidirectional scripts (eg. hebrew, arabic), so that
the display is done in the proper way; while the text data itself is
always written in logical order.
Install %{name}%{major} if you want to run or develop programs that use %{name}.
%package -n lib%{name}%{major}
Summary: Library implementing the Unicode Bidirectional Algorithm
Group: System/Libraries
Conflicts: %{name}%{major}
%description -n lib%{name}%{major}
The lib%{name}%{major} package includes the shared libraries for the %{name}%{major} package.
Install lib%{name}%{major} if you want to run programs which use %{name}.
%package -n lib%{name}%{major}-devel
Summary: Library implementing the Unicode Bidirectional Algorithm
Group: Development/C
Requires: lib%{name}%{major} = %{ver}
Conflicts: %{name}%{major}
%description -n lib%{name}%{major}-devel
The lib%{name}%{major}-devel package includes the static libraries and header files
for the %{name}%{major} package.
Install lib%{name}%{major}-devel if you want to develop programs which will use
%{name}.
%prep
%setup
%patch0 -p1
%patch1 -p1
rm -f configure
%build
if [ ! -x ./configure ];then
./bootstrap
fi
./configure %{_target_platform} \
--prefix=%{_prefix} --exec-prefix=%{_exec_prefix} \
--bindir=%{_bindir} --sbindir=%{_sbindir} \
--sysconfdir=%{_sysconfdir} --datadir=%{_datadir} \
--includedir=%{_includedir} \
--libdir=%{_libdir} --libexecdir=%{_libexecdir} \
--mandir=%{_mandir} --infodir=%{_infodir} \
--localstatedir=%{_localstatedir} --sharedstatedir=%{_sharedstatedir}
make OPT_CFLAGS="$RPM_OPT_FLAGS"
%install
rm -rf "$RPM_BUILD_ROOT"
mkdir -p "$RPM_BUILD_ROOT%{prefix}"
make DESTDIR="$RPM_BUILD_ROOT" install
%clean
rm -rf "$RPM_BUILD_ROOT"
%post -n %{name}%{major} -p /sbin/ldconfig
%postun -n %{name}%{major} -p /sbin/ldconfig
%post -n lib%{name}%{major} -p /sbin/ldconfig
%postun -n lib%{name}%{major} -p /sbin/ldconfig
%files -n %{name}%{major}
%defattr(-,root,root)
%doc README AUTHORS COPYING ChangeLog TODO THANKS NEWS
%{_bindir}/%{name}
%{_bindir}/%{name}-config
%{_libdir}/*.so.*
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/*.a
%{_libdir}/*.la
%{_libdir}/*.so
%{_includedir}/*
%files -n lib%{name}%{major}
%defattr(-, root, root)
%doc README AUTHORS COPYING ChangeLog TODO THANKS NEWS
%{_bindir}/%{name}
%{_bindir}/%{name}-config
%{_libdir}/*.so.*
%files -n lib%{name}%{major}-devel
%defattr(-, root, root)
%{_libdir}/*.a
%{_libdir}/*.la
%{_libdir}/*.so
%{_includedir}/*
%{_libdir}/pkgconfig/%{name}.pc
%changelog
* Fri Jul 14 2006 Jean-Paul Saman <jpsaman@videolan.org>
- Adapted specfile for use in VLC contrib system.
* Tue Mar 12 2002 Behdad Esfahbod <behdad@bamdad.org>
- Use License instead of Copyright
- Moved pkgconfig to devel package instead of lib package.
* Sat Jan 26 2002 Behdad Esfahbod <behdad@bamdad.org>
- CFLAGS changed to OPT_CFLAGS.
* Wed Jan 9 2002 Behdad Esfahbod <behdad@bamdad.org>
- First spec released.
%define name lame
%define ver 3.97b2
%define rel 2
%define prefix %{_usr}
%define docdir %{_defaultdocdir}
Summary : LAME Ain't an MP3 Encoder... but it's the best.
Summary(fr) : LAME n'est pas un encodeur MP3 ;->
Name: %{name}
Version: %{ver}
Release: %{rel}
License: LGPL
Vendor: The LAME Project
URL: http://www.mp3dev.org/mp3
Group: Applications/Multimedia
Source: ftp://lame.sourceforge.net/pub/lame/src/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-root
Requires: ncurses >= 5.0
BuildRequires: gcc >= 3.0.1, /usr/bin/find, ncurses-devel
Provides: mp3encoder
Prefix: /usr
%description
LAME is an educational tool to be used for learning about MP3 encoding. The
goal of the LAME project is to use the open source model to improve the
psycho acoustics, noise shaping and speed of MP3.
%description -l fr
LAME est un outil d'enseignement pour l'apprentissage de l'encodage MP3.
Le but du projet LAME est d'utiliser un mod�le "open source" afin
d'am�liorer la qualit� et la vitesse du MP3.
%package devel
Summary: Shared and static libraries for LAME.
Group: Development/Libraries
Requires: %{name} = %{version}
%description devel
LAME is an educational tool to be used for learning about MP3 encoding.
This package contains both the shared and the static libraries from the
LAME project.
You will also need to install the main lame package in order to install
these libraries.
%prep
%setup -n lame-3.97
%build
# Optimize the mother-fucker to the bone
export CC_OPTS="-O3 -march=i386 -mcpu=i686 -fomit-frame-pointer -funroll-loops -ffast-math -finline-functions -Wall -pedantic"
%ifarch i686
export CC_OPTS="-O3 -fomit-frame-pointer -mcpu=i686 -march=i686 -malign-functions=4 -funroll-loops -fexpensive-optimizations -fschedule-insns2 -Wall -mfancy-math-387 -pipe"
%endif
%ifarch athlon
export CC_OPTS="-O3 -fomit-frame-pointer -fno-strength-reduce -mcpu=athlon -march=athlon -malign-functions=4 -funroll-loops -fexpensive-optimizations -fschedule-insns2 -Wall -mfancy-math-387 -pipe"
%endif
# Vorbis makes the build fail for now. . .
rm -f config.cache
CC="gcc" CFLAGS="${CC_OPTS}" %configure --host=${HOST} --build=${BUILD} --prefix=/usr \
--enable-nasm \
--enable-decoder \
--without-vorbis \
--enable-analyzer=no \
--disable-analyzer-hooks \
--enable-brhist \
--disable-debug
make CC="gcc" CFLAGS="${CC_OPTS}"
%install
rm -rf %{buildroot}
find . -name CVS | xargs rm -rf
mkdir -p $RPM_BUILD_ROOT%{_bindir}
%makeinstall
ln -sf lame/lame.h $RPM_BUILD_ROOT%{_includedir}/lame.h
install -D -m 644 doc/man/lame.1 $RPM_BUILD_ROOT%{_mandir}/man1/lame.1
# move back lame.h
#mv $RPM_BUILD_ROOT%{_includedir}/lame/lame.h $RPM_BUILD_ROOT%{_includedir}/lame.h
find doc/html -name "Makefile*" | xargs rm -f
# remove superflous documentation
rm -fr $RPM_BUILD_ROOT/usr/share/doc/lame
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr (-,root,root)
%doc COPYING ChangeLog README TODO USAGE doc/html
%doc doc/html
%{_bindir}/lame
%{_libdir}/libmp3lame.so.*
%{_mandir}/man1/lame.1*
%files devel
%defattr (-, root, root)
%doc API HACKING STYLEGUIDE
%{_libdir}/libmp3lame.a
%{_libdir}/libmp3lame.la
%{_libdir}/libmp3lame.so
%dir %{_includedir}/lame
%{_includedir}/lame/lame.h
/usr/include/lame.h
%changelog
* Fri Jul 14 2006 Jean-Paul Saman <jpsaman@videolan.org>
- Cross-devel enhancements
- Renamed legacy Copyright into License
* Sat May 11 2002 Yosi Markovich <yosim@bigfoot.com>
- Fixes to the spec file that include:
- Making sure the compiler is gcc version 3.0.1. Lame compiled with a version
greater than 3.0.1 is broken.
- Optimization flags for i686 will use i686 for march and mcpu, and not
athlon.
- Fix the dates in this Changelog section.
- Various small fixes merged from Matthias Saou.
- Thanks Fred Maciel <fred-m@crl.hitachi.co.jp> for his useful comments.
* Tue Jan 22 2002 Mark Taylor <mt@mp3dev.org>
- replaced lame.spec.in with Yosi's version. Merged some stuff from
the prevous lame.spec.in file, and appended changelog below.
* Tue Jan 22 2002 Yosi Markovich <yosim@bigfoot.com>
- Rewrote lame.spec.in to create a correct and nice spec file.
imho, this spec file is not good for anyone who wants to build
daily cvs snapshots. Closes bug #495975
* Tue Dec 11 2001 Yosi Markovich <yosim@bigfoot.com>
- Shamelessly stole Matthias Saou's excellent spec file to create daily
CVS snapshots of Lame. Other than that, nothing is new.
* Tue Oct 23 2001 Matthias Saou <matthias.saou@est.une.marmotte.net>
- Fixed the %pre and %post that should have been %post and %postun, silly me!
- Removed -malign-double (it's evil, Yosi told me and I tested, brrr ;-)).
- Now build with gcc3, VBR encoding gets a hell of a boost, impressive!
I recommend you now use "lame --r3mix", it's the best.
- Tried to re-enable vorbis, but it's a no-go.
* Thu Jul 26 2001 Matthias Saou <matthias.saou@est.une.marmotte.net>
- Build with kgcc to have VBR working.
* Wed Jul 25 2001 Matthias Saou <matthias.saou@est.une.marmotte.net>
- Update to 3.89beta : Must be built with a non-patched version of nasm
to work!
* Mon May 7 2001 Matthias Saou <matthias.saou@est.une.marmotte.net>
- Rebuilt for Red Hat 7.1.
- Disabled the vorbis support since it fails to build with it.
- Added a big optimisation section, thanks to Yosi Markovich
<senna@camelot.com> for this and other pointers.
* Sun Feb 11 2001 Matthias Saou <matthias.saou@est.une.marmotte.net>
- Split the package, there is now a -devel
* Thu Nov 26 2000 Matthias Saou <matthias.saou@est.une.marmotte.net>
- Initial RPM release for RedHat 7.0 from scratch
* Wed Nov 21 2000 Eric Lassauge <lassauge@mail.dotcom.fr>
- Updated and corrected RPM to 3.89beta.
- Added french translations
* Sat Aug 04 2000 Markus Linnala �maage@cs.tut.fi�
- Build and include docs and libs correctly
- Build extra programs
* Tue Aug 01 2000 Stuart Young �cefiar1@optushome.com.au�
- Updated RPM to 3.85beta.
- Modified spec file (merged George and Keitaro's specs)
- Added reasonable info to the specs to reflect the maintainer
- Renamed lame.spec (plain spec is bad, mmkay?).
* Fri Jun 30 2000 Keitaro Yosimura �ramsy@linux.or.jp�
- Updated RPM to 3.84alpha.
- Better attempt at an RPM, independant of 3.83 release.
- (This is all surmise as there was no changelog).
* Thu May 30 2000 Georges Seguin �crow@planete.net�
- First RPM build around 3.83beta
%define name libcaca
%define version 0.9
%define release 1
Name: %{name}
Version: %{version}
Release: %{release}
URL: http://sam.zoy.org/projects/libcaca/
Source: http://sam.zoy.org/projects/libcaca/%{name}-%{version}.tar.gz
License: GPL
Group: System/Libraries
BuildRoot: %{_tmppath}/%{name}-buildroot
Prefix: %{_prefix}
Patch: %{name}-%{version}-doc.patch
Buildrequires: XFree86-devel, ncurses-devel >= 5, slang-devel
Buildrequires: imlib2-devel
Buildrequires: doxygen, tetex-latex, tetex-dvips
Summary: Text mode graphics library
%description
libcaca is the Colour AsCii Art library. It provides high level functions
for colour text drawing, simple primitives for line, polygon and ellipse
drawing, as well as powerful image to text conversion routines.
%package -n %{name}-devel
Summary: Development files for libcaca
Group: Development/C
Requires: XFree86-devel, ncurses-devel >= 5, slang-devel
Provides: %{name}-devel = %{version}-%{release}
%description -n %{name}-devel
libcaca is the Colour AsCii Art library. It provides high level functions
for colour text drawing, simple primitives for line, polygon and ellipse
drawing, as well as powerful image to text conversion routines.
This package contains the header files and static libraries needed to
compile applications or shared objects that use libcaca.
%package -n caca-utils
Summary: Text mode graphics utilities
Group: Graphics
%description -n caca-utils
This package contains utilities and demonstration programs for libcaca, the
Colour AsCii Art library.
cacaview is a simple image viewer for the terminal. It opens most image
formats such as JPEG, PNG, GIF etc. and renders them on the terminal using
ASCII art. The user can zoom and scroll the image, set the dithering method
or enable anti-aliasing.
cacaball is a tiny graphic program that renders animated ASCII metaballs on
the screen, cacafire is a port of AALib's aafire and displays burning ASCII
art flames, cacamoir animates colourful moire circles and cacaplas displays
an old school plasma effect.
cacademo is a simple application that shows the libcaca rendering features
such as line and ellipses drawing, triangle filling and sprite blitting.
%prep
case "${RPM_COMMAND:-all}" in
all)
%setup -q
%patch0 -p1
;;esac
%build
case "${RPM_COMMAND:-all}" in
all)
./configure --prefix=%{_prefix} \
--libdir=%{_libdir} \
--bindir=\${prefix}/bin \
--mandir=\${prefix}/share/man \
--infodir=\${prefix}/share/info \
--enable-slang --enable-ncurses --enable-x11 --enable-imlib2 --enable-doc
;;esac
make
%install
rm -rf %{buildroot}
%makeinstall
mv %{buildroot}/%{_prefix}/share/doc/libcaca-dev %{buildroot}/%{_prefix}/share/doc/libcaca-devel-%{version}
mkdir %{buildroot}/%{_prefix}/share/doc/caca-utils-%{version}
cp `find %{buildroot}/%{_prefix}/share/doc/libcaca-devel-%{version}/ -name '[A-Z]*'` %{buildroot}/%{_prefix}/share/doc/caca-utils-%{version}/
%clean
rm -rf %{buildroot}
%files -n %{name}-devel
%defattr(-,root,root)
%{_libdir}/*
%{_prefix}/bin/caca-config
%{_prefix}/include/*
%{_prefix}/share/doc/libcaca-devel-%{version}/*
%{_prefix}/share/man/man1/caca-config.1*
%{_prefix}/share/man/man3/*
%files -n caca-utils
%defattr(-,root,root)
%{_prefix}/bin/cacaball
%{_prefix}/bin/cacademo
%{_prefix}/bin/cacafire
%{_prefix}/bin/cacamoir
%{_prefix}/bin/cacaplas
%{_prefix}/bin/cacaview
%{_prefix}/share/doc/caca-utils-%{version}/*
%{_prefix}/share/libcaca/*
%{_prefix}/share/man/man1/cacaball.1*
%{_prefix}/share/man/man1/cacademo.1*
%{_prefix}/share/man/man1/cacafire.1*
%{_prefix}/share/man/man1/cacamoir.1*
%{_prefix}/share/man/man1/cacaplas.1*
%{_prefix}/share/man/man1/cacaview.1*
%changelog
* Sun Feb 2 2004 Sam Hocevar (RPM packages) <sam+rpm@zoy.org> 0.9-1
- new release
* Sun Jan 18 2004 Sam Hocevar (RPM packages) <sam+rpm@zoy.org> 0.8-1
- new release
* Sat Jan 7 2004 Sam Hocevar (RPM packages) <sam+rpm@zoy.org> 0.7-1
- new release
* Sat Jan 4 2004 Sam Hocevar (RPM packages) <sam+rpm@zoy.org> 0.6-2
- install documentation into {doc}/package-version instead of {doc}/package
- added tetex-dvips to the build dependencies
* Sat Jan 3 2004 Sam Hocevar (RPM packages) <sam+rpm@zoy.org> 0.6-1
- new release
- more detailed descriptions
- split the RPM into libcaca-devel and caca-utils
- packages are rpmlint clean
* Mon Dec 29 2003 Richard Zidlicky <rz@linux-m68k.org> 0.5-1
- created specfile
Summary: libdca is a free library for decoding DTS Coherenet Acoustics streams.
Name: libdca
Version: svn_35
Release: 1
Group: System/Libraries
License: GPL
URL: http://developers.videolan.org/libdca
Source: %{name}-%{version}.tar.gz
BuildRoot: /var/tmp/%{name}-%{version}-root
Prefix: /usr
%description
libdca is a free library for decoding DTS Coherent Acoustics streams. It is
released under the terms of the GPL license. The DTS Coherent Acoustics
standard is used in a variety of applications, including DVD, DTS audio CD and
radio broadcasting.
%clean
rm -fr $RPM_BUILD_ROOT
%prep
%setup -n libdca
%build
./configure --prefix=/usr --enable-shared
make
%install
make DESTDIR=$RPM_BUILD_ROOT install
%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING INSTALL NEWS README TODO
/usr/bin/dtsdec
/usr/bin/extract_dts
/usr/share/man/man1/dtsdec.1
/usr/share/man/man1/extract_dts.1
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%package devel
Summary: Development headers and libraries for libdca
Group: Development/C
Requires: libdca
%files devel
%defattr(-,root,root)
/usr/include/dts.h
/usr/lib/libdts.a
/usr/lib/libdts_pic.a
/usr/lib/pkgconfig/libdts.pc
%description devel
libdca is a free library for decoding DTS Coherent Acoustics streams. It is
released under the terms of the GPL license. The DTS Coherent Acoustics
standard is used in a variety of applications, including DVD, DTS audio CD and
radio broadcasting.
%changelog
* Wed Nov 28 2007 Jean-Paul Saman <jpsaman@videolan.org>
- bumped up version number to svn_35.
* Sun Aug 13 2006 Jean-Paul Saman <jpsaman@videolan.org>
- initial specfile.
%define prefix /usr
%define name libdvdnav
%define ver 20050211
%define rel 1
Name: %{name}
Summary: DVD Navigation library
Version: %{ver}
Release: %{rel}
Group: Development/Libraries
License: GPL
Url: http://dvd.sourceforge.net/
Source: %{name}-%{version}.tar.bz2
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
%description
libdvdnav provides support to applications wishing to make use of advanced
DVD navigation features.
%prep
%setup
%build
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix}
make
%install
rm -rf $RPM_BUILD_ROOT
make install-strip DESTDIR=$RPM_BUILD_ROOT
%clean
rm -r $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING INSTALL README
%{prefix}/bin/dvdnav-config
%{prefix}/lib/libdvdnav*.la
%{prefix}/lib/libdvdnav*.so.*
%{prefix}/lib/libdvdnav*.so
%{prefix}/include/dvdnav/*
%{prefix}/share/aclocal/dvdnav.m4
%changelog
* Sun Mar 18 2002 Daniel Caujolle-Bert <f1rmb@users.sourceforge.net>
- Add missing files. Fix rpm generation.
* Tue Mar 12 2002 Rich Wareham <richwareham@users.sourceforge.net>
- Canabalisation to form libdvdnav spec file.
* Sun Sep 09 2001 Thomas Vander Stichele <thomas@apestaart.org>
- first spec file
Summary: ID3 tag manipulation library
Name: libid3tag
Version: 0.15.1b
Release: 1
Group: System/Libraries
License: GPL
URL: http://www.underbit.com/products/mad
Source: libid3tag-0.15.1b.tar.gz
BuildRoot: /var/tmp/%{name}-%{version}-root
Prefix: /usr
%description
libid3tag is a library for reading and (eventually) writing ID3 tags, both ID3v1 and the various versions of ID3v2.
%prep
%setup
%clean
rm -fr $RPM_BUILD_ROOT
%build
./configure --prefix=/usr --enable-shared
make
%install
make DESTDIR=$RPM_BUILD_ROOT install
%files
%defattr(-,root,root)
%doc CHANGES COPYING COPYRIGHT CREDITS INSTALL README TODO VERSION
/usr/lib/libid3tag.so
/usr/lib/libid3tag.so.0
/usr/lib/libid3tag.so.0.3.0
%package devel
Summary: MPEG audio decoder library development headers en libraries.
Group: System/Libraries
Requires: libid3tag
%description devel
%files devel
%defattr(-,root,root)
/usr/include/id3tag.h
/usr/lib/libid3tag.a
/usr/lib/libid3tag.la
%changelog
* Sun Nov 24 2007 Jean-Paul Saman <jpsaman@videolan.org>
- Use prefix /usr by default.
* Sun Aug 13 2006 Jean-Paul Saman <jpsaman@videolan.org>
- specfile for libid3tag
Summary: MPEG audio decoder library
Name: libmad
Version: 0.15.1b
Release: 1
Group: System/Libraries
License: GPL
URL: http://www.underbit.com/products/mad
Source: libmad-0.15.1b.tar.gz
BuildRoot: /var/tmp/%{name}-%{version}-root
Prefix: /usr
%description
MAD (libmad) is a high-quality MPEG audio decoder. It currently supports MPEG-1 and the MPEG-2 extension to Lower Sampling Frequencies, as well as
the so-called MPEG 2.5 format. All three audio layers (Layer I, Layer II, and Layer III a.k.a. MP3) are fully implemented.
%prep
%setup
%clean
rm -fr $RPM_BUILD_ROOT
%build
./configure --prefix=/usr --enable-shared --enable-accuracy --enable-fpm=intel
make
%install
make DESTDIR=$RPM_BUILD_ROOT install
%files
%defattr(-,root,root)
%doc CHANGES COPYING COPYRIGHT CREDITS INSTALL README TODO VERSION
/usr/lib/libmad.so
/usr/lib/libmad.so.0
/usr/lib/libmad.so.0.2.1
%package devel
Summary: MPEG audio decoder library development headers en libraries.
Group: System/Libraries
Requires: libmad
%description devel
MAD (libmad) is a high-quality MPEG audio decoder. It currently supports MPEG-1 and the MPEG-2 extension to Lower Sampling Frequencies, as well as
the so-called MPEG 2.5 format. All three audio layers (Layer I, Layer II, and Layer III a.k.a. MP3) are fully implemented.
%files devel
%defattr(-,root,root)
/usr/include/mad.h
/usr/lib/libmad.a
/usr/lib/libmad.la
%changelog
* Sun Aug 13 2006 Jean-Paul Saman <jpsaman@videolan.org>
- specfile for libmad
Summary: Modplug Plugin
Name: libmodplug
Version: 0.8
Release: 1
Group: System/Libraries
Source: libmodplug-0.8.tar.gz
URL: http://download.videolan.org/pub/videolan//testing/contrib/%{name}-%{version}.tar.gz
License: GPL
BuildRoot: /var/tmp/%{name}-%{version}-root
Prefix: /usr
Requires: gzip, zip, bzip2
%description
Modplug Plugin originally developed for XMMS v2.0 / libmodplug v0.7
Plays 22 different mod formats, including:
MOD, S3M, XM, IT, 669, AMF (both of them),
AMS, DBM, DMF, DSM, FAR, MDL, MED, MTM,
OKT, PTM, STM, ULT, UMX, MT2, PSM.
Plays zip, rar, gzip, and bzip2 compressed mods. The following extensions are recognized:
zip: MDZ, S3Z, XMZ, ITZ
rar: MDR, S3R, XMR, ITR
gzip: MDGZ, S3GZ, XMGZ, ITGZ
You can also load plain old ZIP, RAR, and GZ files. If ModPlug finds a mod in them, it will play it.
Note: To play these formats, you need to have the associated decompression utilities (unzip, gunzip, unrar) installed.
Note(2): The format of the mod is NOT determined from the extension on compressed mods. For example, if you zipped a UMX mod and gave it the extension MDZ, it would work fine.
%prep
%setup
%clean
rm -fr $RPM_BUILD_ROOT
%build
./configure --prefix=/usr --enable-shared
make
%install
make DESTDIR=$RPM_BUILD_ROOT install
%files
%defattr(-,root,root)
%doc AUTHORS COPYING INSTALL NEWS README TODO
/usr/lib/libmodplug.so
/usr/lib/libmodplug.so.0
/usr/lib/libmodplug.so.0.0.0
%package devel
Summary: Development headers and libraries for libmodplugin
Group: Development/C
%files devel
%defattr(-,root,root)
/usr/include/libmodplug/it_defs.h
/usr/include/libmodplug/modplug.h
/usr/include/libmodplug/sndfile.h
/usr/include/libmodplug/stdafx.h
/usr/lib/libmodplug.la
/usr/lib/pkgconfig/libmodplug.pc
%description devel
Modplug Plugin originally developed for XMMS v2.0 / libmodplug v0.7 Plays 22 different mod formats, including: MOD, S3M, XM, IT, 669, AMF (both of them),
AMS, DBM, DMF, DSM, FAR, MDL, MED, MTM,
OKT, PTM, STM, ULT, UMX, MT2, PSM.
Plays zip, rar, gzip, and bzip2 compressed mods. The following extensions are recognized:
zip: MDZ, S3Z, XMZ, ITZ
rar: MDR, S3R, XMR, ITR
gzip: MDGZ, S3GZ, XMGZ, ITGZ
You can also load plain old ZIP, RAR, and GZ files. If ModPlug finds a mod in them, it will play it.
Note: To play these formats, you need to have the associated decompression utilities (unzip, gunzip, unrar) installed.
Note(2): The format of the mod is NOT determined from the extension on compressed mods. For example, if you zipped a UMX mod and gave it the extension MDZ, it would work fine.
%changelog
* Tue Nov 27 2007 Jean-Paul Saman <jpsaman@videolan.org>
- version 0.7 -> 0.8
* Tue Aug 15 2006 Jean-Paul Saman <jpsaman@videolan.org>
- initial specfile
Summary: Musepack Decoder Library
Name: libmpcdec
Version: 1.2.2
Release: 1
Group: System/Libraries
Source: %{name}-%{version}.tar.bz2
Patch0: mpcdec.patch
License: Musepack
URL: http://files.musepack.net/source/libmpcdec-%{version}.tar.bz2
BuildRoot: /var/tmp/%{name}-%{version}-root
Prefix: /usr
%description
Musepack Decoder Library
%clean
rm -fr $RPM_BUILD_ROOT
%prep
%setup
%patch0 -p1
%build
%configure --prefix=%{_prefix} --enable-shared
make
%install
make DESTDIR=$RPM_BUILD_ROOT install
%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING INSTALL README
/usr/lib/libmpcdec.so
/usr/lib/libmpcdec.so.3
/usr/lib/libmpcdec.so.3.1.1
%package devel
Summary: Development headers and libraries for Musepack decoder library
Group: System/Libraries
Requires: libmpcdec
%files devel
%defattr(-,root,root)
/usr/include/mpcdec/config_types.h
/usr/include/mpcdec/decoder.h
/usr/include/mpcdec/huffman.h
/usr/include/mpcdec/math.h
/usr/include/mpcdec/mpcdec.h
/usr/include/mpcdec/reader.h
/usr/include/mpcdec/requant.h
/usr/include/mpcdec/streaminfo.h
/usr/lib/libmpcdec.a
/usr/lib/libmpcdec.la
%description devel
Development headers and libraries for Musepack decoder library.
%changelog
* Wed Nov 28 2007 Jean-Paul Saman <jpsaman@videolan.org>
- version 1.2.1 -> 1.2.2
* Sun Aug 13 2006 Jean-Paul Saman <jpsaman@videolan.org>
- initial spec file.
Summary: Library providing XML and HTML support
Name: libxml2
Version: 2.6.26
Release: 1
License: MIT
Group: Development/Libraries
Source: ftp://xmlsoft.org/libxml2-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: python python-devel zlib-devel
URL: http://xmlsoft.org/
Prefix: %{_prefix}
Docdir: %{_docdir}
%description
This library allows to manipulate XML files. It includes support
to read, modify and write XML and HTML files. There is DTDs support
this includes parsing and validation even with complex DtDs, either
at parse time or later once the document has been modified. The output
can be a simple SAX stream or and in-memory DOM like representations.
In this case one can use the built-in XPath and XPointer implementation
to select subnodes or ranges. A flexible Input/Output mechanism is
available, with existing HTTP and FTP modules and combined to an
URI library.
%package devel
Summary: Libraries, includes, etc. to develop XML and HTML applications
Group: Development/Libraries
Requires: libxml2 = %{version}
Requires: zlib-devel
Requires: pkgconfig
%description devel
Libraries, include files, etc you can use to develop XML applications.
This library allows to manipulate XML files. It includes support
to read, modify and write XML and HTML files. There is DTDs support
this includes parsing and validation even with complex DtDs, either
at parse time or later once the document has been modified. The output
can be a simple SAX stream or and in-memory DOM like representations.
In this case one can use the built-in XPath and XPointer implementation
to select subnodes or ranges. A flexible Input/Output mechanism is
available, with existing HTTP and FTP modules and combined to an
URI library.
%package python
Summary: Python bindings for the libxml2 library
Group: Development/Libraries
Requires: libxml2 = %{version}
Requires: %{_libdir}/python%(echo `python -c "import sys; print sys.version[0:3]"`)
%description python
The libxml2-python package contains a module that permits applications
written in the Python programming language to use the interface
supplied by the libxml2 library to manipulate XML files.
This library allows to manipulate XML files. It includes support
to read, modify and write XML and HTML files. There is DTDs support
this includes parsing and validation even with complex DTDs, either
at parse time or later once the document has been modified.
%prep
%setup -q
%build
%configure
make
gzip -9 ChangeLog
%install
rm -fr %{buildroot}
%makeinstall
(cd doc/examples ; make clean ; rm -rf .deps)
gzip -9 doc/libxml2-api.xml
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
%clean
rm -fr %{buildroot}
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
%defattr(-, root, root)
%doc AUTHORS ChangeLog.gz NEWS README Copyright TODO
%doc %{_mandir}/man1/xmllint.1*
%doc %{_mandir}/man1/xmlcatalog.1*
%doc %{_mandir}/man3/libxml.3*
%{_libdir}/lib*.so.*
%{prefix}/bin/xmllint
%{prefix}/bin/xmlcatalog
%files devel
%defattr(-, root, root)
%doc %{_mandir}/man1/xml2-config.1*
%doc AUTHORS ChangeLog.gz NEWS README Copyright TODO
%doc doc/*.html doc/html doc/*.gif doc/*.png
%doc doc/tutorial doc/libxml2-api.xml.gz
%doc doc/examples
%doc %{_datadir}/gtk-doc/html/libxml2/*.devhelp
%doc %{_datadir}/gtk-doc/html/libxml2/*.html
%doc %{_datadir}/gtk-doc/html/libxml2/*.png
%doc %{_datadir}/gtk-doc/html/libxml2/*.css
%{_libdir}/lib*.so
%{_libdir}/*a
%{_libdir}/*.sh
%{prefix}/include/*
%{prefix}/bin/xml2-config
%{prefix}/share/aclocal/libxml.m4
%{_libdir}/pkgconfig/libxml-2.0.pc
%files python
%defattr(-, root, root)
%doc AUTHORS ChangeLog.gz NEWS README Copyright
%{_libdir}/python*/site-packages/libxml2.py*
%{_libdir}/python*/site-packages/drv_libxml2.py*
%{_libdir}/python*/site-packages/libxml2mod*
%doc python/TODO
%doc python/libxml2class.txt
%doc python/tests/*.py
%doc doc/*.py
%doc doc/python.html
%{prefix}/share/doc/libxml2-2.6.26/html/*
%{prefix}/share/doc/libxml2-2.6.26/Copyright
%{prefix}/share/doc/libxml2-2.6.26/examples/*
%{prefix}/share/doc/libxml2-python-2.6.26/TODO
%{prefix}/share/doc/libxml2-python-2.6.26/examples/*
%changelog
* Wed Oct 31 2007 Daniel Veillard <veillard@redhat.com>
- upstream release 2.6.26 see http://xmlsoft.org/news.html
Summary: Live555 provides RTP/RTCP, RTSP, SIP multimedia streaming libraries
Name: live555
Version: 2007.10.31
Release: 1
License: GPL
URL: http://live555.com
Group: System/Libraries
Source: http://live555.com/liveMedia/public/%{name}-latest.tar.gz
Patch0: live.patch
Patch1: live-starttime.patch
Patch2: live-config.patch
BuildRoot: %_tmppath/%{name}-%{version}-%{release}-root
BuildRequires: sed
%package devel
Summary: Development tools, libraries and headerfiles for live555 RTP/RTCP, RTSP, SIP multimedia streaming library.
Group: Development/C
Provides: %{name}-devel = %{version}-cvs-%{release}
Requires: %{name} = %{version}-%{release}
%description
This code forms a set of C++ libraries for multimedia streaming, using open standard protocols (RTP/RTCP, RTSP, SIP). These libraries - which can be compiled for Unix (including Linux and Mac OS X), Windows, and QNX (and other POSIX-compliant systems) - can be used to build streaming applications. The libraries are already being used to implement applications such as "liveCaster" and "playRTPMPEG" (for streaming MP3 audio using RTP/RTCP), and "vobStreamer" (for streaming DVD content using RTP/RTCP/RTSP). The libraries can also be used to stream, receive, and process MPEG, H.263+ or JPEG video, and several audio codecs. They can easily be extended to support additional (audio and/or video) codecs, and can also be used to build basic RTSP or SIP clients and servers, and have been used to add streaming support to existing media player applications, such as "VLC" and "MPlayer"
%description devel
Development headers and libraries for live555 multimedia streaming.
%prep
%setup -n live
%patch0 -p1
%patch1 -p1
sed -e 's/.*LIVEMEDIA_LIBRARY_VERSION_INT.*/#define LIVEMEDIA_LIBRARY_VERSION_INT 9999999999/' -i.bak liveMedia/include/liveMedia_version.hh
%patch2 -p1
%build
#sed -e 's/=/= EXTRA_CPPFLAGS/' -e 's/%EXTRA_CPPFLAGS%/-I\/include/' -i.orig groupsock/Makefile.head
sed -e 's/=/= EXTRA_CPPFLAGS/' -e 's/EXTRA_CPPFLAGS/-I\/include/' -i.orig groupsock/Makefile.head
./genMakefiles linux
CFLAGS="$RPM_OPT_FLAGS" make
%install
mkdir -p $RPM_BUILD_ROOT/usr/include/live555
mkdir -p $RPM_BUILD_ROOT/usr/lib/live555
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/live555
# copy headerfiles
cp -r liveMedia/include $RPM_BUILD_ROOT/usr/include/live555
cp -r groupsock/include $RPM_BUILD_ROOT/usr/include/live555
cp -r UsageEnvironment/include $RPM_BUILD_ROOT/usr/include/live555
cp -r BasicUsageEnvironment/include $RPM_BUILD_ROOT/usr/include/live555
# copy documentation
cp -r COPYING README $RPM_BUILD_ROOT/usr/share/doc/live555
# copy libraries
cp liveMedia/libliveMedia.a $RPM_BUILD_ROOT/usr/lib/live555/
cp groupsock/libgroupsock.a $RPM_BUILD_ROOT/usr/lib/live555/
cp UsageEnvironment/libUsageEnvironment.a $RPM_BUILD_ROOT/usr/lib/live555/
cp BasicUsageEnvironment/libBasicUsageEnvironment.a $RPM_BUILD_ROOT/usr/lib/live555/
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc COPYING README
%dir /usr/share/doc/live555
/usr/share/doc/live555/COPYING
/usr/share/doc/live555/README
%files devel
%defattr(-,root,root)
%dir /usr/lib/live555
%dir /usr/include/live555
/usr/lib/live555/*
/usr/include/live555/*
%changelog
* Mon Nov 26 2007 Jean-Paul Saman <jpsaman@videolan.org>
- Updated to latest live555 version of 31 October 2007
* Thu Jul 19 2006 Jean-Paul Saman <jpsaman@videolan.org>
- start new specfile.
Summary: Tools and library for decoding MPEG 1/2 files
Name: mpeg2dec
Version: 0.4.1
Release: 1
License: GPL
URL: http://download.videolan.org/pub/videolan
Group: System/Libraries
Source: http://download.videolan.org/pub/videolan/%{name}-%{version}.tar.gz
BuildRoot: %_tmppath/%{name}-%{version}-%{release}-root
Prefix: /usr
%package devel
Summary: Development tools for programs which will use mpeg2dec library.
Group: Development/C
Provides: %{name}-devel = %{version}-%{release}
Requires: %{name} = %{version}-%{release}
%description
libmpeg2 is a free library for decoding mpeg-2 and mpeg-1 video
streams. It is released under the terms of the GPL license.
%description devel
libmpeg2 develop libraries and headers.
%prep
%setup -n %{name}-%{version}
%build
./bootstrap
CFLAGS="$RPM_OPT_FLAGS" ./configure -host=${HOST} --build=${BUILD} --prefix=/usr --without-x --disable-sdl
make
%install
make DESTDIR="$RPM_BUILD_ROOT" install
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS README TODO
/usr/bin/corrupt_mpeg2
/usr/bin/extract_mpeg2
/usr/bin/mpeg2dec
/usr/share/man/man1/extract_mpeg2.1
/usr/share/man/man1/mpeg2dec.1
%files devel
%defattr(-,root,root)
%doc CodingStyle INSTALL
/usr/include/mpeg2dec/mpeg2.h
/usr/include/mpeg2dec/mpeg2convert.h
/usr/lib/libmpeg2.a
/usr/lib/libmpeg2convert.a
/usr/lib/libmpeg2convert.la
/usr/lib/libmpeg2.la
/usr/lib/pkgconfig/libmpeg2convert.pc
/usr/lib/pkgconfig/libmpeg2.pc
#%dir /usr/share/doc/mpeg2dec-devel-%{version}
%changelog
* Sat Nov 24 2007 Jean-Paul Saman <jpsaman@videolan.org>
- Use official mpeg2dec release.
* Thu Jul 19 2006 Jean-Paul Saman <jpsaman@videolan.org>
- start new specfile.
Summary: TwoLAME is an optimized MPEG Audio Layer 2 (MP2) encoder
Name: twolame
Version: 0.3.9
Release: 1
License: LGPL
Group: Development/Libraries
Source: http://heanet.dl.sourceforge.net/sourceforge/twolame/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-root
URL: http://www.twolame.org/
Prefix: %{_prefix}
Docdir: %{_docdir}
%description
TwoLAME is an optimized MPEG Audio Layer 2 (MP2) encoder.
It is based heavily on:
- tooLAME by Michael Cheng
- the ISO dist10 code
- improvement to algorithms as part of the LAME project (lame.sf.net)
- other contributors (see AUTHORS)
TwoLAME should be able to be used as a drop-in replacement for
LAME (a MPEG Layer 3 encoder). The frontend takes very similar
command line options to LAME, and the backend library has a very
similar API to LAME.
%prep
%setup -q
%build
CFLAGS="${CFLAGS} -DLIBTWOLAME_STATIC" %configure --prefix=%{_prefix}
make
%install
rm -fr $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
%clean
rm -fr %{buildroot}
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
%defattr(-, root, root)
%doc ChangeLog AUTHORS COPYING README TODO
%{_libdir}/libtwolame.so*
/usr/man/man1/twolame.1
%package devel
Summary: TwoLAME is an optimized MPEG Audio Layer 2 (MP2) encoder
Group: System/Libraries
Provides: %{name}-devel = %{version}-%{release}
Requires: faad2-devel
%description devel
TwoLAME is an optimized MPEG Audio Layer 2 (MP2) encoder.
It is based heavily on:
- tooLAME by Michael Cheng
- the ISO dist10 code
- improvement to algorithms as part of the LAME project (lame.sf.net)
- other contributors (see AUTHORS)
TwoLAME should be able to be used as a drop-in replacement for
LAME (a MPEG Layer 3 encoder). The frontend takes very similar
command line options to LAME, and the backend library has a very
similar API to LAME.
%files devel
%defattr(-, root, root)
%{_libdir}/libtwolame.a
%{_libdir}/libtwolame.la
%{_includedir}/twolame.h
%{_libdir}/pkgconfig/twolame.pc
%{_datadir}/*
%changelog
* Wed Nov 28 2007 Jean-Paul Saman <jpsaman@videolan.org>
- First specfile
%define _prefix /opt/gnome
%define ver 2.6.3
%define ver2 2.6
%define rel 1
# Configurable settings (use --with(out) {unicode,gtk2} on rpmbuild cmd line):
%define unicode 1
%{?_with_unicode: %{expand: %%define unicode 1}}
%{?_without_unicode: %{expand: %%define unicode 0}}
%define gtk2 1
%{?_with_gtk2: %{expand: %%define gtk2 1}}
%{?_without_gtk2: %{expand: %%define gtk2 0}}
# "buildname" needs to be e.g. gtk2ud for debug builds
%if %{gtk2}
%define gtkver 2
%define portname gtk2
%if %{unicode}
%define buildname gtk2u
%else
%define buildname gtk2
%endif
%else
%define gtkver 1.2
%define portname gtk
%define buildname gtk
%endif
%if %{unicode}
%define name wx-%{portname}-unicode
%define wxconfig %{portname}-unicode-release-%{ver2}
%define wxconfigstatic %{portname}-unicode-release-static-%{ver2}
%define wxconfiglink wx%{portname}u-%{ver2}-config
%else
%define name wx-%{portname}-ansi
%define wxconfig %{portname}-ansi-release-%{ver2}
%define wxconfigstatic %{portname}-ansi-release-static-%{ver2}
%define wxconfiglink wx%{portname}-%{ver2}-config
%endif
%if %{unicode}
%define wxbasename wx-base-unicode
%define wxbaseconfig base-unicode-release-%{ver2}
%define wxbaseconfigstatic base-unicode-release-static-%{ver2}
%define wxbaseconfiglink wxbaseu-%{ver2}-config
%else
%define wxbasename wx-base-ansi
%define wxbaseconfig base-ansi-release-%{ver2}
%define wxbaseconfigstatic base-ansi-release-static-%{ver2}
%define wxbaseconfiglink wxbase-%{ver2}-config
%endif
Summary: The GTK+ %{gtkver} port of the wxWidgets library
Name: %{name}
Version: %{ver}
Release: %{rel}
License: wxWindows Licence
Group: X11/Libraries
Source: wxWidgets-%{ver}.tar.gz
Patch0: wxwidgets_uri.patch
URL: http://www.wxwidgets.org
Packager: Vadim Zeitlin <vadim@wxwindows.org>
Prefix: %{_prefix}
BuildRoot: %{_tmppath}/%{name}-root
Requires: %{wxbasename} = %{ver}
%if %{portname} == gtk2
# BuildRequires: gtk+-2.0-devel
%else
# BuildRequires: gtk+-devel >= 1.2.0
%endif
BuildRequires: zlib-devel, libjpeg-devel, libpng-devel, libtiff-devel
# all packages providing an implementation of wxWidgets library (regardless of
# the toolkit used) should provide the (virtual) wxwin package, this makes it
# possible to require wxwin instead of requiring "wxgtk or wxmotif or wxuniv..."
Provides: wxwin
Provides: wxGTK
%description
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif, MS Windows, MacOS X, Windows CE, GPE) from the same source code.
%package -n wx-i18n
Summary: The translations for the wxWidgets library.
Group: X11/Libraries
%description -n wx-i18n
The translations files for the wxWidgets library.
%package devel
Summary: The GTK+ %{gtkver} port of the wxWidgets library
Group: X11/Libraries
Requires: %{name} = %{ver}
Requires: %{wxbasename}-devel = %{ver}
Provides: wxGTK-devel
%description devel
The GTK+ %{gtkver} port of the wxWidgets library, header files.
%package gl
Summary: The GTK+ %{gtkver} port of the wxWidgets library, OpenGL add-on.
Group: X11/Libraries
Requires: %{name} = %{ver}
Provides: wxGTK-gl
%description gl
OpenGL add-on library for wxGTK, the GTK+ %{gtkver} port of the wxWidgets library.
%package -n %{wxbasename}
Summary: wxBase library - non-GUI support classes of the wxWidgets toolkit
Group: Development/Libraries
Provides: wxBase
%description -n %{wxbasename}
wxBase is a collection of C++ classes providing basic data structures (strings,
lists, arrays), portable wrappers around many OS-specific funstions (file
operations, time/date manipulations, threads, processes, sockets, shared
library loading) as well as other utility classes (streams, archive and
compression). wxBase currently supports Win32, most Unix variants (Linux,
FreeBSD, Solaris, HP-UX) and MacOS X (Carbon and Mach-0).
%package -n %{wxbasename}-devel
Summary: wxBase library, header files.
Group: Development/Libraries
Provides: wxBase-devel
%description -n %{wxbasename}-devel
wxBase library - non-GUI support classes of the wxWidgets toolkit,
header files.
%package contrib
Summary: The GTK+ %{gtkver} port of the wxWidgets library, contributed libraries.
Group: X11/Libraries
Requires: %{name} = %{ver}
%description contrib
Contributed libraries for wxGTK, the GTK+ %{gtkver} port of the wxWidgets library.
%package contrib-devel
Summary: The GTK+ %{gtkver} port of the wxWidgets library
Group: X11/Libraries
Requires: %{name}-contrib = %{ver}
Requires: %{name}-devel = %{ver}
%description contrib-devel
Header files for contributed libraries for wxGTK, the GTK+ %{gtkver} port of the wxWidgets library.
%prep
%setup -q -n wxWidgets-%{ver}
%patch0 -p0
%build
if [ "$SMP" != "" ]; then
export MAKE="make -j$SMP"
else
export MAKE="make"
fi
mkdir obj-shared-no-gui
cd obj-shared-no-gui
../configure --prefix=%{_prefix} \
--disable-gui \
%if %{unicode}
--enable-unicode
%else
--disable-unicode
%endif
$MAKE
cd ..
mkdir obj-shared
cd obj-shared
../configure --prefix=%{_prefix} \
%if ! %{gtk2}
--with-gtk=1 \
%else
--with-gtk=2 \
%endif
%if %{unicode}
--enable-unicode \
%else
--disable-unicode \
--with-odbc \
%endif
--with-opengl
$MAKE
cd contrib/src
$MAKE
cd ../../..
mkdir obj-static-no-gui
cd obj-static-no-gui
../configure --prefix=%{_prefix} \
--disable-gui \
--disable-shared \
%if %{unicode}
--enable-unicode
%else
--disable-unicode
%endif
$MAKE
cd ..
mkdir obj-static
cd obj-static
../configure --prefix=%{_prefix} \
%if ! %{gtk2}
--with-gtk=1 \
%else
--with-gtk=2 \
%endif
--disable-shared \
%if %{unicode}
--enable-unicode \
%else
--disable-unicode \
--with-odbc \
%endif
--with-opengl
$MAKE
cd contrib/src
$MAKE
cd ../../..
%install
rm -rf $RPM_BUILD_ROOT
(cd obj-static-no-gui; make DESTDIR=$RPM_BUILD_ROOT install)
(cd obj-static; make DESTDIR=$RPM_BUILD_ROOT install)
(cd obj-shared-no-gui; make DESTDIR=$RPM_BUILD_ROOT install)
(cd obj-shared; make DESTDIR=$RPM_BUILD_ROOT install)
rm -f $RPM_BUILD_ROOT/opt/gnome/bin/wx-config
# --- wxBase headers list begins here ---
cat <<EOF >wxbase-headers.files
wx/afterstd.h
wx/app.h
wx/apptrait.h
wx/archive.h
wx/arrimpl.cpp
wx/arrstr.h
wx/beforestd.h
wx/buffer.h
wx/build.h
wx/chkconf.h
wx/clntdata.h
wx/cmdline.h
wx/confbase.h
wx/config.h
wx/containr.h
wx/datetime.h
wx/datstrm.h
wx/dde.h
wx/debug.h
wx/defs.h
wx/dir.h
wx/dlimpexp.h
wx/dynarray.h
wx/dynlib.h
wx/dynload.h
wx/encconv.h
wx/event.h
wx/except.h
wx/features.h
wx/ffile.h
wx/file.h
wx/fileconf.h
wx/filefn.h
wx/filename.h
wx/filesys.h
wx/fontenc.h
wx/fontmap.h
wx/fs_mem.h
wx/fs_zip.h
wx/hash.h
wx/hashmap.h
wx/hashset.h
wx/html/forcelnk.h
wx/iconloc.h
wx/init.h
wx/intl.h
wx/iosfwrap.h
wx/ioswrap.h
wx/ipc.h
wx/ipcbase.h
wx/isql.h
wx/isqlext.h
wx/list.h
wx/listimpl.cpp
wx/log.h
wx/longlong.h
wx/math.h
wx/memconf.h
wx/memory.h
wx/memtext.h
wx/mimetype.h
wx/module.h
wx/msgout.h
wx/mstream.h
wx/object.h
wx/platform.h
wx/process.h
wx/ptr_scpd.h
wx/recguard.h
wx/regex.h
wx/scopeguard.h
wx/snglinst.h
wx/sstream.h
wx/stack.h
wx/stackwalk.h
wx/stdpaths.h
wx/stockitem.h
wx/stopwatch.h
wx/strconv.h
wx/stream.h
wx/string.h
wx/sysopt.h
wx/textbuf.h
wx/textfile.h
wx/thread.h
wx/thrimpl.cpp
wx/timer.h
wx/tokenzr.h
wx/txtstrm.h
wx/types.h
wx/uri.h
wx/utils.h
wx/variant.h
wx/vector.h
wx/version.h
wx/volume.h
wx/wfstream.h
wx/wx.h
wx/wxchar.h
wx/wxprec.h
wx/xti.h
wx/xtistrm.h
wx/zipstrm.h
wx/zstream.h
wx/unix/apptbase.h
wx/unix/apptrait.h
wx/unix/execute.h
wx/unix/mimetype.h
wx/unix/pipe.h
wx/unix/stackwalk.h
wx/unix/stdpaths.h
wx/fs_inet.h
wx/gsocket.h
wx/protocol/file.h
wx/protocol/ftp.h
wx/protocol/http.h
wx/protocol/protocol.h
wx/sckaddr.h
wx/sckipc.h
wx/sckstrm.h
wx/socket.h
wx/url.h
wx/unix/gsockunx.h
wx/xml/xml.h
wx/xtixml.h
wx/db.h
wx/dbkeyg.h
wx/dbtable.h
EOF
# --- wxBase headers list ends here ---
cat <<EOF >wxbase-headers.paths
%{_includedir}/wx-%{ver2}/wx/afterstd.h
%{_includedir}/wx-%{ver2}/wx/app.h
%{_includedir}/wx-%{ver2}/wx/apptrait.h
%{_includedir}/wx-%{ver2}/wx/archive.h
%{_includedir}/wx-%{ver2}/wx/arrimpl.cpp
%{_includedir}/wx-%{ver2}/wx/arrstr.h
%{_includedir}/wx-%{ver2}/wx/beforestd.h
%{_includedir}/wx-%{ver2}/wx/buffer.h
%{_includedir}/wx-%{ver2}/wx/build.h
%{_includedir}/wx-%{ver2}/wx/chkconf.h
%{_includedir}/wx-%{ver2}/wx/clntdata.h
%{_includedir}/wx-%{ver2}/wx/cmdline.h
%{_includedir}/wx-%{ver2}/wx/confbase.h
%{_includedir}/wx-%{ver2}/wx/config.h
%{_includedir}/wx-%{ver2}/wx/containr.h
%{_includedir}/wx-%{ver2}/wx/datetime.h
%{_includedir}/wx-%{ver2}/wx/datstrm.h
%{_includedir}/wx-%{ver2}/wx/dde.h
%{_includedir}/wx-%{ver2}/wx/debug.h
%{_includedir}/wx-%{ver2}/wx/defs.h
%{_includedir}/wx-%{ver2}/wx/dir.h
%{_includedir}/wx-%{ver2}/wx/dlimpexp.h
%{_includedir}/wx-%{ver2}/wx/dynarray.h
%{_includedir}/wx-%{ver2}/wx/dynlib.h
%{_includedir}/wx-%{ver2}/wx/dynload.h
%{_includedir}/wx-%{ver2}/wx/encconv.h
%{_includedir}/wx-%{ver2}/wx/event.h
%{_includedir}/wx-%{ver2}/wx/except.h
%{_includedir}/wx-%{ver2}/wx/features.h
%{_includedir}/wx-%{ver2}/wx/ffile.h
%{_includedir}/wx-%{ver2}/wx/file.h
%{_includedir}/wx-%{ver2}/wx/fileconf.h
%{_includedir}/wx-%{ver2}/wx/filefn.h
%{_includedir}/wx-%{ver2}/wx/filename.h
%{_includedir}/wx-%{ver2}/wx/filesys.h
%{_includedir}/wx-%{ver2}/wx/fontenc.h
%{_includedir}/wx-%{ver2}/wx/fontmap.h
%{_includedir}/wx-%{ver2}/wx/fs_mem.h
%{_includedir}/wx-%{ver2}/wx/fs_zip.h
%{_includedir}/wx-%{ver2}/wx/hash.h
%{_includedir}/wx-%{ver2}/wx/hashmap.h
%{_includedir}/wx-%{ver2}/wx/hashset.h
%{_includedir}/wx-%{ver2}/wx/html/forcelnk.h
%{_includedir}/wx-%{ver2}/wx/iconloc.h
%{_includedir}/wx-%{ver2}/wx/init.h
%{_includedir}/wx-%{ver2}/wx/intl.h
%{_includedir}/wx-%{ver2}/wx/iosfwrap.h
%{_includedir}/wx-%{ver2}/wx/ioswrap.h
%{_includedir}/wx-%{ver2}/wx/ipc.h
%{_includedir}/wx-%{ver2}/wx/ipcbase.h
%{_includedir}/wx-%{ver2}/wx/isql.h
%{_includedir}/wx-%{ver2}/wx/isqlext.h
%{_includedir}/wx-%{ver2}/wx/list.h
%{_includedir}/wx-%{ver2}/wx/listimpl.cpp
%{_includedir}/wx-%{ver2}/wx/log.h
%{_includedir}/wx-%{ver2}/wx/longlong.h
%{_includedir}/wx-%{ver2}/wx/math.h
%{_includedir}/wx-%{ver2}/wx/memconf.h
%{_includedir}/wx-%{ver2}/wx/memory.h
%{_includedir}/wx-%{ver2}/wx/memtext.h
%{_includedir}/wx-%{ver2}/wx/mimetype.h
%{_includedir}/wx-%{ver2}/wx/module.h
%{_includedir}/wx-%{ver2}/wx/msgout.h
%{_includedir}/wx-%{ver2}/wx/mstream.h
%{_includedir}/wx-%{ver2}/wx/object.h
%{_includedir}/wx-%{ver2}/wx/platform.h
%{_includedir}/wx-%{ver2}/wx/process.h
%{_includedir}/wx-%{ver2}/wx/ptr_scpd.h
%{_includedir}/wx-%{ver2}/wx/recguard.h
%{_includedir}/wx-%{ver2}/wx/regex.h
%{_includedir}/wx-%{ver2}/wx/scopeguard.h
%{_includedir}/wx-%{ver2}/wx/snglinst.h
%{_includedir}/wx-%{ver2}/wx/sstream.h
%{_includedir}/wx-%{ver2}/wx/stack.h
%{_includedir}/wx-%{ver2}/wx/stackwalk.h
%{_includedir}/wx-%{ver2}/wx/stdpaths.h
%{_includedir}/wx-%{ver2}/wx/stockitem.h
%{_includedir}/wx-%{ver2}/wx/stopwatch.h
%{_includedir}/wx-%{ver2}/wx/strconv.h
%{_includedir}/wx-%{ver2}/wx/stream.h
%{_includedir}/wx-%{ver2}/wx/string.h
%{_includedir}/wx-%{ver2}/wx/sysopt.h
%{_includedir}/wx-%{ver2}/wx/textbuf.h
%{_includedir}/wx-%{ver2}/wx/textfile.h
%{_includedir}/wx-%{ver2}/wx/thread.h
%{_includedir}/wx-%{ver2}/wx/thrimpl.cpp
%{_includedir}/wx-%{ver2}/wx/timer.h
%{_includedir}/wx-%{ver2}/wx/tokenzr.h
%{_includedir}/wx-%{ver2}/wx/txtstrm.h
%{_includedir}/wx-%{ver2}/wx/types.h
%{_includedir}/wx-%{ver2}/wx/uri.h
%{_includedir}/wx-%{ver2}/wx/utils.h
%{_includedir}/wx-%{ver2}/wx/variant.h
%{_includedir}/wx-%{ver2}/wx/vector.h
%{_includedir}/wx-%{ver2}/wx/version.h
%{_includedir}/wx-%{ver2}/wx/volume.h
%{_includedir}/wx-%{ver2}/wx/wfstream.h
%{_includedir}/wx-%{ver2}/wx/wx.h
%{_includedir}/wx-%{ver2}/wx/wxchar.h
%{_includedir}/wx-%{ver2}/wx/wxprec.h
%{_includedir}/wx-%{ver2}/wx/xti.h
%{_includedir}/wx-%{ver2}/wx/xtistrm.h
%{_includedir}/wx-%{ver2}/wx/zipstrm.h
%{_includedir}/wx-%{ver2}/wx/zstream.h
%{_includedir}/wx-%{ver2}/wx/fs_inet.h
%{_includedir}/wx-%{ver2}/wx/gsocket.h
%{_includedir}/wx-%{ver2}/wx/protocol/file.h
%{_includedir}/wx-%{ver2}/wx/protocol/ftp.h
%{_includedir}/wx-%{ver2}/wx/protocol/http.h
%{_includedir}/wx-%{ver2}/wx/protocol/protocol.h
%{_includedir}/wx-%{ver2}/wx/sckaddr.h
%{_includedir}/wx-%{ver2}/wx/sckipc.h
%{_includedir}/wx-%{ver2}/wx/sckstrm.h
%{_includedir}/wx-%{ver2}/wx/socket.h
%{_includedir}/wx-%{ver2}/wx/url.h
%{_includedir}/wx-%{ver2}/wx/xml/xml.h
%{_includedir}/wx-%{ver2}/wx/xtixml.h
%{_includedir}/wx-%{ver2}/wx/db.h
%{_includedir}/wx-%{ver2}/wx/dbkeyg.h
%{_includedir}/wx-%{ver2}/wx/dbtable.h
%{_includedir}/wx-%{ver2}/wx/unix/apptbase.h
%{_includedir}/wx-%{ver2}/wx/unix/apptrait.h
%{_includedir}/wx-%{ver2}/wx/unix/execute.h
%{_includedir}/wx-%{ver2}/wx/unix/gsockunx.h
%{_includedir}/wx-%{ver2}/wx/unix/mimetype.h
%{_includedir}/wx-%{ver2}/wx/unix/pipe.h
%{_includedir}/wx-%{ver2}/wx/unix/stackwalk.h
%{_includedir}/wx-%{ver2}/wx/unix/stdpaths.h
EOF
# --- wxBase headers list ends here ---
# temporarily remove base headers
mkdir $RPM_BUILD_ROOT/_save_dir
cp -r $RPM_BUILD_ROOT%{_includedir}/wx-%{ver2} $RPM_BUILD_ROOT/_save_dir
for f in `cat wxbase-headers.files` ; do
rm -f $RPM_BUILD_ROOT%{_includedir}/wx-%{ver2}/$f
done
# list of all core headers:
find $RPM_BUILD_ROOT%{_includedir}/wx-%{ver2} -type f | sed -e "s,$RPM_BUILD_ROOT,,g" >core-headers.files
# move base headers (actually all headers) back again
cp -f -r $RPM_BUILD_ROOT/_save_dir/* $RPM_BUILD_ROOT%{_includedir}
rm -rf $RPM_BUILD_ROOT/_save_dir
# contrib stuff:
(cd obj-shared/contrib/src; make DESTDIR=$RPM_BUILD_ROOT install)
(cd obj-shared/utils/wxrc; make DESTDIR=$RPM_BUILD_ROOT install)
%clean
rm -rf $RPM_BUILD_ROOT
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%post devel
# link wx-config when you install RPM.
%if %{unicode}
ln -sf %{_libdir}/wx/config/%{wxconfig} %{_bindir}/wx-config
%endif
# link wx-config with explicit name.
ln -sf %{_libdir}/wx/config/%{wxconfig} %{_bindir}/%{wxconfiglink}
/sbin/ldconfig
%postun devel
/sbin/ldconfig
%preun devel
%if %{unicode}
rm -f %{_bindir}/wx-config
%endif
rm -f %{_bindir}/%{wxconfiglink}
%post -n %{wxbasename}
/sbin/ldconfig
%postun -n %{wxbasename}
/sbin/ldconfig
%post -n %{wxbasename}-devel
# link wx-config with explicit name.
ln -sf %{_libdir}/wx/config/%{wxbaseconfig} %{_bindir}/%{wxbaseconfiglink}
/sbin/ldconfig
%postun -n %{wxbasename}-devel
/sbin/ldconfig
%preun -n %{wxbasename}-devel
rm -f %{_bindir}/%{wxbaseconfiglink}
%post gl
/sbin/ldconfig
%postun gl
/sbin/ldconfig
%post contrib
/sbin/ldconfig
%postun contrib
/sbin/ldconfig
%post contrib-devel
/sbin/ldconfig
%postun contrib-devel
/sbin/ldconfig
%files
%defattr(-,root,root)
%doc COPYING.LIB *.txt
%{_libdir}/libwx_%{buildname}_adv-%{ver2}.so.*
%{_libdir}/libwx_%{buildname}_core-%{ver2}.so.*
%if !%{unicode}
%{_libdir}/libwx_%{buildname}_dbgrid-%{ver2}.so.*
%endif
%{_libdir}/libwx_%{buildname}_html-%{ver2}.so.*
%{_libdir}/libwx_%{buildname}_media-%{ver2}.so.*
%{_libdir}/libwx_%{buildname}_qa-%{ver2}.so.*
%{_libdir}/libwx_%{buildname}_xrc-%{ver2}.so.*
%files -n wx-i18n
%defattr(-,root,root)
%{_datadir}/locale/*/*
%files devel -f core-headers.files
%defattr(-,root,root)
# shared libs
%{_libdir}/libwx_%{buildname}_adv-%{ver2}.so
%{_libdir}/libwx_%{buildname}_core-%{ver2}.so
%if !%{unicode}
%{_libdir}/libwx_%{buildname}_dbgrid-%{ver2}.so
%endif
%{_libdir}/libwx_%{buildname}_gl-%{ver2}.so
%{_libdir}/libwx_%{buildname}_html-%{ver2}.so
%{_libdir}/libwx_%{buildname}_media-%{ver2}.so
%{_libdir}/libwx_%{buildname}_qa-%{ver2}.so
%{_libdir}/libwx_%{buildname}_xrc-%{ver2}.so
# static libs
%{_libdir}/libwx_%{buildname}_adv-%{ver2}.a
%{_libdir}/libwx_%{buildname}_core-%{ver2}.a
%if !%{unicode}
%{_libdir}/libwx_%{buildname}_dbgrid-%{ver2}.a
%endif
%{_libdir}/libwx_%{buildname}_gl-%{ver2}.a
%{_libdir}/libwx_%{buildname}_html-%{ver2}.a
%{_libdir}/libwx_%{buildname}_media-%{ver2}.a
%{_libdir}/libwx_%{buildname}_qa-%{ver2}.a
%{_libdir}/libwx_%{buildname}_xrc-%{ver2}.a
%dir %{_libdir}/wx
%{_libdir}/wx/config/%{wxconfig}
%{_libdir}/wx/include/%{wxconfig}/wx/setup.h
%{_libdir}/wx/config/%{wxconfigstatic}
%{_libdir}/wx/include/%{wxconfigstatic}/wx/setup.h
%{_bindir}/wxrc*
%files -n %{wxbasename}
%defattr(-,root,root)
%{_libdir}/libwx_base*-%{ver2}.so.*
%files -n %{wxbasename}-devel -f wxbase-headers.paths
%defattr (-,root,root)
%dir %{_includedir}/wx-%{ver2}
%{_libdir}/libwx_base*-%{ver2}.so
%{_libdir}/libwx_base*-%{ver2}.a
%dir %{_datadir}/bakefile/presets
%{_datadir}/bakefile/presets/wx.bkl
%{_datadir}/bakefile/presets/wx_unix.bkl
%{_datadir}/bakefile/presets/wx_win32.bkl
%if %{unicode}
%{_libdir}/libwxregexu-%{ver2}.a
%endif
%dir %{_libdir}/wx
%{_libdir}/wx/config/%{wxbaseconfig}
%{_libdir}/wx/include/%{wxbaseconfig}/wx/setup.h
%{_libdir}/wx/config/%{wxbaseconfigstatic}
%{_libdir}/wx/include/%{wxbaseconfigstatic}/wx/setup.h
%{_datadir}/aclocal/*.m4
%files gl
%defattr(-,root,root)
%{_libdir}/libwx_%{buildname}_gl-%{ver2}.so.*
%files contrib
%defattr(-,root,root)
%{_libdir}/libwx_%{buildname}_animate-%{ver2}.so.*
%{_libdir}/libwx_%{buildname}_deprecated-%{ver2}.so.*
%{_libdir}/libwx_%{buildname}_fl-%{ver2}.so.*
%{_libdir}/libwx_%{buildname}_gizmos-%{ver2}.so.*
%{_libdir}/libwx_%{buildname}_gizmos_xrc-%{ver2}.so.*
%{_libdir}/libwx_%{buildname}_mmedia-%{ver2}.so.*
%{_libdir}/libwx_%{buildname}_ogl-%{ver2}.so.*
%{_libdir}/libwx_%{buildname}_plot-%{ver2}.so.*
%{_libdir}/libwx_%{buildname}_stc-%{ver2}.so.*
%{_libdir}/libwx_%{buildname}_svg-%{ver2}.so.*
%files contrib-devel
%defattr(-,root,root)
%dir %{_includedir}/wx-%{ver2}/wx/animate
%{_includedir}/wx-%{ver2}/wx/animate/*
%{_libdir}/libwx_%{buildname}_animate-%{ver2}.so
%dir %{_includedir}/wx-%{ver2}/wx/deprecated
%{_includedir}/wx-%{ver2}/wx/deprecated/*
%{_libdir}/libwx_%{buildname}_deprecated-%{ver2}.so
%dir %{_includedir}/wx-%{ver2}/wx/fl
%{_includedir}/wx-%{ver2}/wx/fl/*
%{_libdir}/libwx_%{buildname}_fl-%{ver2}.so
%dir %{_includedir}/wx-%{ver2}/wx/gizmos
%{_includedir}/wx-%{ver2}/wx/gizmos/*
%{_libdir}/libwx_%{buildname}_gizmos-%{ver2}.so
%{_libdir}/libwx_%{buildname}_gizmos_xrc-%{ver2}.so
%dir %{_includedir}/wx-%{ver2}/wx/mmedia
%{_includedir}/wx-%{ver2}/wx/mmedia/*
%{_libdir}/libwx_%{buildname}_mmedia-%{ver2}.so
%dir %{_includedir}/wx-%{ver2}/wx/ogl
%{_includedir}/wx-%{ver2}/wx/ogl/*
%{_libdir}/libwx_%{buildname}_ogl-%{ver2}.so
%dir %{_includedir}/wx-%{ver2}/wx/plot
%{_includedir}/wx-%{ver2}/wx/plot/*
%{_libdir}/libwx_%{buildname}_plot-%{ver2}.so
%dir %{_includedir}/wx-%{ver2}/wx/stc
%{_includedir}/wx-%{ver2}/wx/stc/*
%{_libdir}/libwx_%{buildname}_stc-%{ver2}.so
%dir %{_includedir}/wx-%{ver2}/wx/svg
%{_includedir}/wx-%{ver2}/wx/svg/*
%{_libdir}/libwx_%{buildname}_svg-%{ver2}.so
Summary: x264 - a free h264/avc encoder
Name: x264
Version: svn.604
Release: 1
Group: System/Libraries
License: GPL
Source: x264-svn-604.tar.gz
URL: http://developers.videolan.org/x264/
BuildRoot: /var/tmp/%{name}-%{version}-root
Prefix: /usr
%description
x264 is a free library for encoding H264/AVC video streams. The code is written from scratch by Laurent Aimar, Loren Merritt, Eric Petit (OS X), Min Chen (vfw/asm), Justin Clay (vfw), Måns Rullgård, Radek Czyz, Christian Heine (asm), Alex Izvorski, and Alex Wright. It is released under the terms of the GPL license.
%clean
rm -fr $RPM_BUILD_ROOT
%prep
%setup -n x264
%build
./configure --prefix=/usr --enable-pic --enable-shared
make
%install
make DESTDIR=$RPM_BUILD_ROOT install
#fix up symlink
rm $RPM_BUILD_ROOT/usr/lib/libx264.so
cd $RPM_BUILD_ROOT/usr/lib/
ln -s libx264.so.45 libx264.so
cd -
%files
%defattr(-,root,root)
%doc AUTHORS COPYING
/usr/bin/x264
/usr/lib/libx264.so
/usr/lib/libx264.so.54
%post -p /sbin/ldconfig
#ln -s /usr/lib/libx264.so.45 /usr/lib/libx264.so
%package devel
Summary: x264 - a free h264/avc encoder
Group: Development/C
Requires: x264
%files devel
%defattr(-,root,root)
/usr/include/x264.h
/usr/lib/libx264.a
/usr/lib/pkgconfig/x264.pc
%description devel
x264 is a free library for encoding H264/AVC video streams. The code is written from scratch by Laurent Aimar, Loren Merritt, Eric Petit (OS X), Min Chen (vfw/asm), Justin Clay (vfw), Måns Rullgård, Radek Czyz, Christian Heine (asm), Alex Izvorski, and Alex Wright. It is released under the terms of the GPL license.
%changelog
* Tue Nov 27 2007 Jean-Paul Saman <jpsaman@videolan.org>
- svn 501 -> svn 604
* Sun Aug 13 2006 Jean-Paul Saman <jpsaman@videolan.org>
- initial specfile.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment