Import new package specs for introduction into repository.

Mon, 12 Jan 2009 17:10:13 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Mon, 12 Jan 2009 17:10:13 +0100
changeset 70
1b746d93c8f0
parent 69
84180bd0cb45
child 71
4f2be5694fa1

Import new package specs for introduction into repository.

jhead/jhead.spec file | annotate | diff | comparison | revisions
libupnp/libupnp.patch file | annotate | diff | comparison | revisions
libupnp/libupnp.spec file | annotate | diff | comparison | revisions
taglib/taglib.spec file | annotate | diff | comparison | revisions
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/jhead/jhead.spec	Mon Jan 12 17:10:13 2009 +0100
     1.3 @@ -0,0 +1,87 @@
     1.4 +##
     1.5 +##  jhead.spec -- OpenPKG RPM Specification
     1.6 +##  Copyright (c) 2009 Michael Schloh von Bennewitz <michael@schloh.com>
     1.7 +##
     1.8 +##  Permission to use, copy, modify, and distribute this software for
     1.9 +##  any purpose with or without fee is hereby granted, provided that
    1.10 +##  the above copyright notice and this permission notice appear in all
    1.11 +##  copies.
    1.12 +##
    1.13 +##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    1.14 +##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    1.15 +##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    1.16 +##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
    1.17 +##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    1.18 +##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    1.19 +##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    1.20 +##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    1.21 +##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    1.22 +##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    1.23 +##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    1.24 +##  SUCH DAMAGE.
    1.25 +##
    1.26 +
    1.27 +
    1.28 +#   package information
    1.29 +Name:         jhead
    1.30 +Summary:      JPEG Header Manipulation Utility
    1.31 +URL:          http://www.sentex.net/~mwandel/jhead/
    1.32 +Vendor:       Matthias Wandel
    1.33 +Packager:     Michael Schloh von Bennewitz
    1.34 +Distribution: Michael Schloh von Bennewitz
    1.35 +Class:        EVAL
    1.36 +Group:        Graphics
    1.37 +License:      Public Domain
    1.38 +Version:      2.84
    1.39 +Release:      20090106
    1.40 +
    1.41 +#   list of sources
    1.42 +Source0:      http://www.sentex.net/~mwandel/jhead/jhead-%{version}.tar.gz
    1.43 +
    1.44 +#   build information
    1.45 +Prefix:       %{l_prefix}
    1.46 +BuildRoot:    %{l_buildroot}
    1.47 +BuildPreReq:  OpenPKG, openpkg >= 20040130
    1.48 +PreReq:       OpenPKG, openpkg >= 20040130
    1.49 +AutoReq:      no
    1.50 +AutoReqProv:  no
    1.51 +
    1.52 +%description
    1.53 +    Jhead is a command line driven program for manipulating the
    1.54 +    non-image parts of Exif flavour JPEG files that most digital
    1.55 +    cameras produce.
    1.56 +
    1.57 +%track
    1.58 +    prog jhead = {
    1.59 +        version   = %{version}
    1.60 +        url       = http://www.sentex.net/~mwandel/jhead/
    1.61 +        regex     = jhead-(__VER__)\.tar\.gz
    1.62 +    }
    1.63 +
    1.64 +%prep
    1.65 +    #   unpack distribution
    1.66 +    %setup -q
    1.67 +
    1.68 +%build
    1.69 +    #   build program
    1.70 +    %{l_make} %{l_mflags -O}
    1.71 +
    1.72 +%install
    1.73 +    rm -rf $RPM_BUILD_ROOT
    1.74 +
    1.75 +    #   create directory structure
    1.76 +    %{l_shtool} mkdir -f -p -m 755 \
    1.77 +        $RPM_BUILD_ROOT%{l_prefix}/bin
    1.78 +
    1.79 +    #   install program binary
    1.80 +    %{l_shtool} install -c -s -m 755 \
    1.81 +        jhead $RPM_BUILD_ROOT%{l_prefix}/bin/
    1.82 +
    1.83 +    #   determine installation files
    1.84 +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
    1.85 +
    1.86 +%files -f files
    1.87 +
    1.88 +%clean
    1.89 +    rm -rf $RPM_BUILD_ROOT
    1.90 +
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/libupnp/libupnp.patch	Mon Jan 12 17:10:13 2009 +0100
     2.3 @@ -0,0 +1,48 @@
     2.4 +Index: upnp/sample/tvctrlpt/linux/upnp_tv_ctrlpt_main.c
     2.5 +diff -Nau upnp/sample/tvctrlpt/linux/upnp_tv_ctrlpt_main.c.orig upnp/sample/tvctrlpt/linux/upnp_tv_ctrlpt_main.c
     2.6 +--- upnp/sample/tvctrlpt/linux/upnp_tv_ctrlpt_main.c.orig	2008-03-22 17:48:13.000000000 +0100
     2.7 ++++ upnp/sample/tvctrlpt/linux/upnp_tv_ctrlpt_main.c	2009-01-12 16:05:10.847325711 +0100
     2.8 +@@ -429,7 +429,11 @@
     2.9 +      */
    2.10 +     sigemptyset( &sigs_to_catch );
    2.11 +     sigaddset( &sigs_to_catch, SIGINT );
    2.12 ++#if (defined(sun) && defined(__svr4__))
    2.13 ++    sigwait( &sigs_to_catch );
    2.14 ++#else
    2.15 +     sigwait( &sigs_to_catch, &sig );
    2.16 ++#endif
    2.17 + 
    2.18 +     SampleUtil_Print( "Shutting down on signal %d...", sig );
    2.19 + #else
    2.20 +Index: upnp/sample/tvcombo/linux/upnp_tv_combo_main.c
    2.21 +diff -Nau upnp/sample/tvcombo/linux/upnp_tv_combo_main.c.orig upnp/sample/tvcombo/linux/upnp_tv_combo_main.c
    2.22 +--- upnp/sample/tvcombo/linux/upnp_tv_combo_main.c.orig	2009-01-12 16:12:00.406762331 +0100
    2.23 ++++ upnp/sample/tvcombo/linux/upnp_tv_combo_main.c	2009-01-12 16:14:23.401611284 +0100
    2.24 +@@ -477,7 +477,11 @@
    2.25 +      */
    2.26 +     sigemptyset( &sigs_to_catch );
    2.27 +     sigaddset( &sigs_to_catch, SIGINT );
    2.28 ++#if (defined(sun) && defined(__svr4__))
    2.29 ++    sigwait( &sigs_to_catch );
    2.30 ++#else
    2.31 +     sigwait( &sigs_to_catch, &sig );
    2.32 ++#endif
    2.33 + 
    2.34 +     SampleUtil_Print( "Shutting down on signal %d...\n", sig );
    2.35 + #else
    2.36 +Index: upnp/sample/tvdevice/linux/upnp_tv_device_main.c
    2.37 +diff -Nau upnp/sample/tvdevice/linux/upnp_tv_device_main.c.orig upnp/sample/tvdevice/linux/upnp_tv_device_main.c
    2.38 +--- upnp/sample/tvdevice/linux/upnp_tv_device_main.c.orig	2008-03-22 18:04:30.000000000 +0100
    2.39 ++++ upnp/sample/tvdevice/linux/upnp_tv_device_main.c	2009-01-12 16:19:03.504059810 +0100
    2.40 +@@ -184,7 +184,11 @@
    2.41 +      */
    2.42 +     sigemptyset( &sigs_to_catch );
    2.43 +     sigaddset( &sigs_to_catch, SIGINT );
    2.44 ++#if (defined(sun) && defined(__svr4__))
    2.45 ++    sigwait( &sigs_to_catch );
    2.46 ++#else
    2.47 +     sigwait( &sigs_to_catch, &sig );
    2.48 ++#endif
    2.49 + 
    2.50 +     SampleUtil_Print( "Shutting down on signal %d...\n", sig );
    2.51 + #else
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/libupnp/libupnp.spec	Mon Jan 12 17:10:13 2009 +0100
     3.3 @@ -0,0 +1,148 @@
     3.4 +##
     3.5 +##  libupnp.spec -- OpenPKG RPM Specification
     3.6 +##  Copyright (c) 2009 Michael Schloh von Bennewitz <michael@schloh.com>
     3.7 +##
     3.8 +##  Permission to use, copy, modify, and distribute this software for
     3.9 +##  any purpose with or without fee is hereby granted, provided that
    3.10 +##  the above copyright notice and this permission notice appear in all
    3.11 +##  copies.
    3.12 +##
    3.13 +##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    3.14 +##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    3.15 +##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    3.16 +##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
    3.17 +##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    3.18 +##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    3.19 +##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    3.20 +##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    3.21 +##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    3.22 +##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    3.23 +##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    3.24 +##  SUCH DAMAGE.
    3.25 +##
    3.26 +
    3.27 +
    3.28 +#   package information
    3.29 +Name:         libupnp
    3.30 +Summary:      Universal Plug and Play (UPnP) SDK
    3.31 +URL:          http://pupnp.sourceforge.net/
    3.32 +Vendor:       Michel Pfeiffer
    3.33 +Packager:     Michael Schloh von Bennewitz
    3.34 +Distribution: Michael Schloh von Bennewitz
    3.35 +Class:        EVAL
    3.36 +Group:        Network
    3.37 +License:      BSD
    3.38 +Version:      1.6.6
    3.39 +Release:      20090106
    3.40 +
    3.41 +#   list of sources
    3.42 +Source0:      http://switch.dl.sourceforge.net/pupnp/libupnp-%{version}.tar.bz2
    3.43 +Patch0:       libupnp.patch
    3.44 +
    3.45 +#   build information
    3.46 +Prefix:       %{l_prefix}
    3.47 +BuildRoot:    %{l_buildroot}
    3.48 +BuildPreReq:  OpenPKG, openpkg >= 20040130
    3.49 +PreReq:       OpenPKG, openpkg >= 20040130
    3.50 +AutoReq:      no
    3.51 +AutoReqProv:  no
    3.52 +
    3.53 +%description
    3.54 +    The portable Universal Plug and Play (UPnP) SDK provides support
    3.55 +    for building UPnP compliant control points, devices, and bridges
    3.56 +    that are compliant with version 1.0 of the Universal Plug and
    3.57 +    Play device architecture specification.
    3.58 +
    3.59 +%track
    3.60 +    prog libupnp = {
    3.61 +        version   = %{version}
    3.62 +        url       = http://prdownloads.sourceforge.net/upnp/
    3.63 +        regex     = libupnp-(__VER__)\.tar\.bz2
    3.64 +    }
    3.65 +
    3.66 +%prep
    3.67 +    #   unpack sources
    3.68 +    %setup -q
    3.69 +    %patch -p0
    3.70 +
    3.71 +    #   apply coorections
    3.72 +    %{l_shtool} subst \
    3.73 +        -e 's;#if defined(_sun);#if (defined(sun) \&\& defined(__svr4__));' \
    3.74 +        upnp/src/api/upnpapi.c
    3.75 +    %{l_shtool} subst \
    3.76 +        -e 's;defined(SPARC_SOLARIS);(defined(sun) \&\& defined(__svr4__));' \
    3.77 +        upnp/src/genlib/net/uri/uri.c
    3.78 +    %{l_shtool} subst \
    3.79 +        -e 's;\(uuid_create_from_name\);\1_upnp;g' \
    3.80 +        -e 's;\(uuid_compare\);\1_upnp;g' \
    3.81 +        -e 's;\(uuid_create\);\1_upnp;g' \
    3.82 +        -e 's;\(uuid_unpack\);\1_upnp;g' \
    3.83 +        upnp/src/gena/gena_device.c \
    3.84 +        upnp/src/gena/gena_ctrlpt.c \
    3.85 +        upnp/src/uuid/uuid.c \
    3.86 +        upnp/src/inc/uuid.h
    3.87 +    %{l_shtool} subst \
    3.88 +        -e 's;\(PTHREAD_MUTEX_[^_]*\)_NP;\1;g' \
    3.89 +        -e 's;\(pthread_mutexattr_[gs]et\)kind_np;\1type;g' \
    3.90 +        threadutil/inc/ithread.h
    3.91 +
    3.92 +%build
    3.93 +    #   query for platform specific libraries
    3.94 +    loclibs=""
    3.95 +    case "%{l_platform -t}" in
    3.96 +        *-sunos* ) loclibs="-lsocket -lnsl -lrt" ;;
    3.97 +    esac
    3.98 +
    3.99 +    #   prepare build configuration
   3.100 +    CC="%{l_cc}" \
   3.101 +    CFLAGS="%{l_cflags -O}" \
   3.102 +    CPPFLAGS="%{l_cppflags}" \
   3.103 +    LDFLAGS="%{l_ldflags}" \
   3.104 +    LIBS="$loclibs" \
   3.105 +    ./configure \
   3.106 +        --prefix=%{l_prefix} \
   3.107 +        --disable-shared
   3.108 +
   3.109 +    #   build using parallel make
   3.110 +    %{l_make} %{l_mflags -O}
   3.111 +
   3.112 +%install
   3.113 +    #   remove previously existing installations
   3.114 +    rm -rf $RPM_BUILD_ROOT
   3.115 +
   3.116 +    #   run the native installation logic
   3.117 +    %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
   3.118 +
   3.119 +    #   install docs
   3.120 +    %{l_shtool} mkdir -f -p -m 755 \
   3.121 +        $RPM_BUILD_ROOT%{l_prefix}/share/libupnp/doc/pdf
   3.122 +    %{l_shtool} install -c -m 755 \
   3.123 +        docs/dist/html $RPM_BUILD_ROOT%{l_prefix}/share/libupnp/doc/
   3.124 +    %{l_shtool} install -c -m 644 \
   3.125 +        docs/dist/*.pdf $RPM_BUILD_ROOT%{l_prefix}/share/libupnp/doc/pdf/
   3.126 +
   3.127 +    #   install examples
   3.128 +    %{l_shtool} mkdir -f -p -m 755 \
   3.129 +        $RPM_BUILD_ROOT%{l_prefix}/share/libupnp/examples
   3.130 +    %{l_shtool} install -c -m 755 \
   3.131 +        upnp/sample/upnp_tv_combo \
   3.132 +        upnp/sample/upnp_tv_ctrlpt \
   3.133 +        upnp/sample/upnp_tv_device \
   3.134 +        $RPM_BUILD_ROOT%{l_prefix}/share/libupnp/examples/
   3.135 +
   3.136 +    #   determine installation files
   3.137 +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
   3.138 +
   3.139 +%files -f files
   3.140 +
   3.141 +%clean
   3.142 +    rm -rf $RPM_BUILD_ROOT
   3.143 +
   3.144 +%post
   3.145 +    #   after installing or upgrading package networking reminder
   3.146 +    ( echo "Before using UPnP, the network must be able to multicast route."
   3.147 +      echo "The following command may add a static multicast route:"
   3.148 +      echo "  # route add -net 239.0.0.0 netmask 255.0.0.0 eth0"
   3.149 +    ) | %{l_rpmtool} msg -b -t notice
   3.150 +    exit 0
   3.151 +
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/taglib/taglib.spec	Mon Jan 12 17:10:13 2009 +0100
     4.3 @@ -0,0 +1,101 @@
     4.4 +##
     4.5 +##  taglib.spec -- OpenPKG RPM Specification
     4.6 +##  Copyright (c) 2009 Michael Schloh von Bennewitz <michael@schloh.com>
     4.7 +##
     4.8 +##  Permission to use, copy, modify, and distribute this software for
     4.9 +##  any purpose with or without fee is hereby granted, provided that
    4.10 +##  the above copyright notice and this permission notice appear in all
    4.11 +##  copies.
    4.12 +##
    4.13 +##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    4.14 +##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    4.15 +##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    4.16 +##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
    4.17 +##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    4.18 +##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    4.19 +##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    4.20 +##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    4.21 +##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    4.22 +##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    4.23 +##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    4.24 +##  SUCH DAMAGE.
    4.25 +##
    4.26 +
    4.27 +
    4.28 +#   package information
    4.29 +Name:         taglib
    4.30 +Summary:      Audio Metadata Manipulation Utility
    4.31 +URL:          http://developer.kde.org/~wheeler/taglib.html
    4.32 +Vendor:       Scott Wheeler
    4.33 +Packager:     Michael Schloh von Bennewitz
    4.34 +Distribution: Michael Schloh von Bennewitz
    4.35 +Class:        EVAL
    4.36 +Group:        Audio
    4.37 +License:      LGPL
    4.38 +Version:      1.5
    4.39 +Release:      20090106
    4.40 +
    4.41 +#   list of sources
    4.42 +Source0:      http://developer.kde.org/~wheeler/files/src/taglib-%{version}.tar.gz
    4.43 +
    4.44 +#   build information
    4.45 +Prefix:       %{l_prefix}
    4.46 +BuildRoot:    %{l_buildroot}
    4.47 +BuildPreReq:  OpenPKG, openpkg >= 20040130, gcc
    4.48 +PreReq:       OpenPKG, openpkg >= 20040130
    4.49 +AutoReq:      no
    4.50 +AutoReqProv:  no
    4.51 +
    4.52 +%description
    4.53 +    TagLib is a library for reading and editing the metadata of several
    4.54 +    popular audio formats. Currently it supports both ID3v1 and ID3v2
    4.55 +    for MP3 files, Ogg Vorbis comments and ID3 tags and Vorbis comments
    4.56 +    in FLAC files as well as MPC.
    4.57 +
    4.58 +%track
    4.59 +    prog taglib = {
    4.60 +        version   = %{version}
    4.61 +        url       = http://developer.kde.org/~wheeler/files/src/
    4.62 +        regex     = taglib-(__VER__)\.tar\.gz
    4.63 +    }
    4.64 +
    4.65 +%prep
    4.66 +    #   unpack sources
    4.67 +    %setup -q
    4.68 +
    4.69 +    #   correct build configuration
    4.70 +    %{l_shtool} subst \
    4.71 +        -e 's;\(if\) test \! \-f \$libstdcpp;\1 false;' \
    4.72 +        configure
    4.73 +    chmod +x admin/install-sh
    4.74 +
    4.75 +%build
    4.76 +    #   prepare configuration
    4.77 +    CC="%{l_cc}" \
    4.78 +    CXX="%{l_cxx}" \
    4.79 +    CFLAGS="%{l_cflags -O}" \
    4.80 +    CXXFLAGS="%{l_cflags -O}" \
    4.81 +    CPPFLAGS="%{l_cppflags}" \
    4.82 +    LDFLAGS="%{l_ldflags}" \
    4.83 +    ./configure \
    4.84 +        --prefix=%{l_prefix} \
    4.85 +        --disable-shared
    4.86 +
    4.87 +    #   build using parallel make
    4.88 +    %{l_make} %{l_mflags -O}
    4.89 +
    4.90 +%install
    4.91 +    #   remove previously existing installations
    4.92 +    rm -rf $RPM_BUILD_ROOT
    4.93 +
    4.94 +    #   run the native installation logic
    4.95 +    %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
    4.96 +
    4.97 +    #   determine installation files
    4.98 +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
    4.99 +
   4.100 +%files -f files
   4.101 +
   4.102 +%clean
   4.103 +    rm -rf $RPM_BUILD_ROOT
   4.104 +

mercurial