# HG changeset patch # User Michael Schloh von Bennewitz # Date 1231776613 -3600 # Node ID 1b746d93c8f04683ccda67b91ac09ca41c97d816 # Parent 84180bd0cb45fe9a50630b37abcd8c31ce5401b6 Import new package specs for introduction into repository. diff -r 84180bd0cb45 -r 1b746d93c8f0 jhead/jhead.spec --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jhead/jhead.spec Mon Jan 12 17:10:13 2009 +0100 @@ -0,0 +1,87 @@ +## +## jhead.spec -- OpenPKG RPM Specification +## Copyright (c) 2009 Michael Schloh von Bennewitz +## +## Permission to use, copy, modify, and distribute this software for +## any purpose with or without fee is hereby granted, provided that +## the above copyright notice and this permission notice appear in all +## copies. +## +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +## SUCH DAMAGE. +## + + +# package information +Name: jhead +Summary: JPEG Header Manipulation Utility +URL: http://www.sentex.net/~mwandel/jhead/ +Vendor: Matthias Wandel +Packager: Michael Schloh von Bennewitz +Distribution: Michael Schloh von Bennewitz +Class: EVAL +Group: Graphics +License: Public Domain +Version: 2.84 +Release: 20090106 + +# list of sources +Source0: http://www.sentex.net/~mwandel/jhead/jhead-%{version}.tar.gz + +# build information +Prefix: %{l_prefix} +BuildRoot: %{l_buildroot} +BuildPreReq: OpenPKG, openpkg >= 20040130 +PreReq: OpenPKG, openpkg >= 20040130 +AutoReq: no +AutoReqProv: no + +%description + Jhead is a command line driven program for manipulating the + non-image parts of Exif flavour JPEG files that most digital + cameras produce. + +%track + prog jhead = { + version = %{version} + url = http://www.sentex.net/~mwandel/jhead/ + regex = jhead-(__VER__)\.tar\.gz + } + +%prep + # unpack distribution + %setup -q + +%build + # build program + %{l_make} %{l_mflags -O} + +%install + rm -rf $RPM_BUILD_ROOT + + # create directory structure + %{l_shtool} mkdir -f -p -m 755 \ + $RPM_BUILD_ROOT%{l_prefix}/bin + + # install program binary + %{l_shtool} install -c -s -m 755 \ + jhead $RPM_BUILD_ROOT%{l_prefix}/bin/ + + # determine installation files + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} + +%files -f files + +%clean + rm -rf $RPM_BUILD_ROOT + diff -r 84180bd0cb45 -r 1b746d93c8f0 libupnp/libupnp.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libupnp/libupnp.patch Mon Jan 12 17:10:13 2009 +0100 @@ -0,0 +1,48 @@ +Index: upnp/sample/tvctrlpt/linux/upnp_tv_ctrlpt_main.c +diff -Nau upnp/sample/tvctrlpt/linux/upnp_tv_ctrlpt_main.c.orig upnp/sample/tvctrlpt/linux/upnp_tv_ctrlpt_main.c +--- upnp/sample/tvctrlpt/linux/upnp_tv_ctrlpt_main.c.orig 2008-03-22 17:48:13.000000000 +0100 ++++ upnp/sample/tvctrlpt/linux/upnp_tv_ctrlpt_main.c 2009-01-12 16:05:10.847325711 +0100 +@@ -429,7 +429,11 @@ + */ + sigemptyset( &sigs_to_catch ); + sigaddset( &sigs_to_catch, SIGINT ); ++#if (defined(sun) && defined(__svr4__)) ++ sigwait( &sigs_to_catch ); ++#else + sigwait( &sigs_to_catch, &sig ); ++#endif + + SampleUtil_Print( "Shutting down on signal %d...", sig ); + #else +Index: upnp/sample/tvcombo/linux/upnp_tv_combo_main.c +diff -Nau upnp/sample/tvcombo/linux/upnp_tv_combo_main.c.orig upnp/sample/tvcombo/linux/upnp_tv_combo_main.c +--- upnp/sample/tvcombo/linux/upnp_tv_combo_main.c.orig 2009-01-12 16:12:00.406762331 +0100 ++++ upnp/sample/tvcombo/linux/upnp_tv_combo_main.c 2009-01-12 16:14:23.401611284 +0100 +@@ -477,7 +477,11 @@ + */ + sigemptyset( &sigs_to_catch ); + sigaddset( &sigs_to_catch, SIGINT ); ++#if (defined(sun) && defined(__svr4__)) ++ sigwait( &sigs_to_catch ); ++#else + sigwait( &sigs_to_catch, &sig ); ++#endif + + SampleUtil_Print( "Shutting down on signal %d...\n", sig ); + #else +Index: upnp/sample/tvdevice/linux/upnp_tv_device_main.c +diff -Nau upnp/sample/tvdevice/linux/upnp_tv_device_main.c.orig upnp/sample/tvdevice/linux/upnp_tv_device_main.c +--- upnp/sample/tvdevice/linux/upnp_tv_device_main.c.orig 2008-03-22 18:04:30.000000000 +0100 ++++ upnp/sample/tvdevice/linux/upnp_tv_device_main.c 2009-01-12 16:19:03.504059810 +0100 +@@ -184,7 +184,11 @@ + */ + sigemptyset( &sigs_to_catch ); + sigaddset( &sigs_to_catch, SIGINT ); ++#if (defined(sun) && defined(__svr4__)) ++ sigwait( &sigs_to_catch ); ++#else + sigwait( &sigs_to_catch, &sig ); ++#endif + + SampleUtil_Print( "Shutting down on signal %d...\n", sig ); + #else diff -r 84180bd0cb45 -r 1b746d93c8f0 libupnp/libupnp.spec --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libupnp/libupnp.spec Mon Jan 12 17:10:13 2009 +0100 @@ -0,0 +1,148 @@ +## +## libupnp.spec -- OpenPKG RPM Specification +## Copyright (c) 2009 Michael Schloh von Bennewitz +## +## Permission to use, copy, modify, and distribute this software for +## any purpose with or without fee is hereby granted, provided that +## the above copyright notice and this permission notice appear in all +## copies. +## +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +## SUCH DAMAGE. +## + + +# package information +Name: libupnp +Summary: Universal Plug and Play (UPnP) SDK +URL: http://pupnp.sourceforge.net/ +Vendor: Michel Pfeiffer +Packager: Michael Schloh von Bennewitz +Distribution: Michael Schloh von Bennewitz +Class: EVAL +Group: Network +License: BSD +Version: 1.6.6 +Release: 20090106 + +# list of sources +Source0: http://switch.dl.sourceforge.net/pupnp/libupnp-%{version}.tar.bz2 +Patch0: libupnp.patch + +# build information +Prefix: %{l_prefix} +BuildRoot: %{l_buildroot} +BuildPreReq: OpenPKG, openpkg >= 20040130 +PreReq: OpenPKG, openpkg >= 20040130 +AutoReq: no +AutoReqProv: no + +%description + The portable Universal Plug and Play (UPnP) SDK provides support + for building UPnP compliant control points, devices, and bridges + that are compliant with version 1.0 of the Universal Plug and + Play device architecture specification. + +%track + prog libupnp = { + version = %{version} + url = http://prdownloads.sourceforge.net/upnp/ + regex = libupnp-(__VER__)\.tar\.bz2 + } + +%prep + # unpack sources + %setup -q + %patch -p0 + + # apply coorections + %{l_shtool} subst \ + -e 's;#if defined(_sun);#if (defined(sun) \&\& defined(__svr4__));' \ + upnp/src/api/upnpapi.c + %{l_shtool} subst \ + -e 's;defined(SPARC_SOLARIS);(defined(sun) \&\& defined(__svr4__));' \ + upnp/src/genlib/net/uri/uri.c + %{l_shtool} subst \ + -e 's;\(uuid_create_from_name\);\1_upnp;g' \ + -e 's;\(uuid_compare\);\1_upnp;g' \ + -e 's;\(uuid_create\);\1_upnp;g' \ + -e 's;\(uuid_unpack\);\1_upnp;g' \ + upnp/src/gena/gena_device.c \ + upnp/src/gena/gena_ctrlpt.c \ + upnp/src/uuid/uuid.c \ + upnp/src/inc/uuid.h + %{l_shtool} subst \ + -e 's;\(PTHREAD_MUTEX_[^_]*\)_NP;\1;g' \ + -e 's;\(pthread_mutexattr_[gs]et\)kind_np;\1type;g' \ + threadutil/inc/ithread.h + +%build + # query for platform specific libraries + loclibs="" + case "%{l_platform -t}" in + *-sunos* ) loclibs="-lsocket -lnsl -lrt" ;; + esac + + # prepare build configuration + CC="%{l_cc}" \ + CFLAGS="%{l_cflags -O}" \ + CPPFLAGS="%{l_cppflags}" \ + LDFLAGS="%{l_ldflags}" \ + LIBS="$loclibs" \ + ./configure \ + --prefix=%{l_prefix} \ + --disable-shared + + # build using parallel make + %{l_make} %{l_mflags -O} + +%install + # remove previously existing installations + rm -rf $RPM_BUILD_ROOT + + # run the native installation logic + %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT + + # install docs + %{l_shtool} mkdir -f -p -m 755 \ + $RPM_BUILD_ROOT%{l_prefix}/share/libupnp/doc/pdf + %{l_shtool} install -c -m 755 \ + docs/dist/html $RPM_BUILD_ROOT%{l_prefix}/share/libupnp/doc/ + %{l_shtool} install -c -m 644 \ + docs/dist/*.pdf $RPM_BUILD_ROOT%{l_prefix}/share/libupnp/doc/pdf/ + + # install examples + %{l_shtool} mkdir -f -p -m 755 \ + $RPM_BUILD_ROOT%{l_prefix}/share/libupnp/examples + %{l_shtool} install -c -m 755 \ + upnp/sample/upnp_tv_combo \ + upnp/sample/upnp_tv_ctrlpt \ + upnp/sample/upnp_tv_device \ + $RPM_BUILD_ROOT%{l_prefix}/share/libupnp/examples/ + + # determine installation files + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} + +%files -f files + +%clean + rm -rf $RPM_BUILD_ROOT + +%post + # after installing or upgrading package networking reminder + ( echo "Before using UPnP, the network must be able to multicast route." + echo "The following command may add a static multicast route:" + echo " # route add -net 239.0.0.0 netmask 255.0.0.0 eth0" + ) | %{l_rpmtool} msg -b -t notice + exit 0 + diff -r 84180bd0cb45 -r 1b746d93c8f0 taglib/taglib.spec --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/taglib/taglib.spec Mon Jan 12 17:10:13 2009 +0100 @@ -0,0 +1,101 @@ +## +## taglib.spec -- OpenPKG RPM Specification +## Copyright (c) 2009 Michael Schloh von Bennewitz +## +## Permission to use, copy, modify, and distribute this software for +## any purpose with or without fee is hereby granted, provided that +## the above copyright notice and this permission notice appear in all +## copies. +## +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +## SUCH DAMAGE. +## + + +# package information +Name: taglib +Summary: Audio Metadata Manipulation Utility +URL: http://developer.kde.org/~wheeler/taglib.html +Vendor: Scott Wheeler +Packager: Michael Schloh von Bennewitz +Distribution: Michael Schloh von Bennewitz +Class: EVAL +Group: Audio +License: LGPL +Version: 1.5 +Release: 20090106 + +# list of sources +Source0: http://developer.kde.org/~wheeler/files/src/taglib-%{version}.tar.gz + +# build information +Prefix: %{l_prefix} +BuildRoot: %{l_buildroot} +BuildPreReq: OpenPKG, openpkg >= 20040130, gcc +PreReq: OpenPKG, openpkg >= 20040130 +AutoReq: no +AutoReqProv: no + +%description + TagLib is a library for reading and editing the metadata of several + popular audio formats. Currently it supports both ID3v1 and ID3v2 + for MP3 files, Ogg Vorbis comments and ID3 tags and Vorbis comments + in FLAC files as well as MPC. + +%track + prog taglib = { + version = %{version} + url = http://developer.kde.org/~wheeler/files/src/ + regex = taglib-(__VER__)\.tar\.gz + } + +%prep + # unpack sources + %setup -q + + # correct build configuration + %{l_shtool} subst \ + -e 's;\(if\) test \! \-f \$libstdcpp;\1 false;' \ + configure + chmod +x admin/install-sh + +%build + # prepare configuration + CC="%{l_cc}" \ + CXX="%{l_cxx}" \ + CFLAGS="%{l_cflags -O}" \ + CXXFLAGS="%{l_cflags -O}" \ + CPPFLAGS="%{l_cppflags}" \ + LDFLAGS="%{l_ldflags}" \ + ./configure \ + --prefix=%{l_prefix} \ + --disable-shared + + # build using parallel make + %{l_make} %{l_mflags -O} + +%install + # remove previously existing installations + rm -rf $RPM_BUILD_ROOT + + # run the native installation logic + %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT + + # determine installation files + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} + +%files -f files + +%clean + rm -rf $RPM_BUILD_ROOT +