udns/udns.spec

Tue, 27 Oct 2009 21:42:51 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 27 Oct 2009 21:42:51 +0100
changeset 221
dae77b684675
child 222
c59522753b78
permissions
-rw-r--r--

Import package vendor original specs for necessary manipulations.

michael@221 1 ##
michael@221 2 ## udns.spec -- OpenPKG RPM Package Specification
michael@221 3 ## Copyright (c) 2000-2009 OpenPKG Foundation e.V. <http://openpkg.net/>
michael@221 4 ##
michael@221 5 ## Permission to use, copy, modify, and distribute this software for
michael@221 6 ## any purpose with or without fee is hereby granted, provided that
michael@221 7 ## the above copyright notice and this permission notice appear in all
michael@221 8 ## copies.
michael@221 9 ##
michael@221 10 ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
michael@221 11 ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
michael@221 12 ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
michael@221 13 ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
michael@221 14 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
michael@221 15 ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
michael@221 16 ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
michael@221 17 ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
michael@221 18 ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
michael@221 19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
michael@221 20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
michael@221 21 ## SUCH DAMAGE.
michael@221 22 ##
michael@221 23
michael@221 24 # package information
michael@221 25 Name: udns
michael@221 26 Summary: Asynchronous DNS Resolver Library
michael@221 27 URL: http://www.corpit.ru/mjt/udns.html
michael@221 28 Vendor: Michael Tokarev
michael@221 29 Packager: OpenPKG Foundation e.V.
michael@221 30 Distribution: OpenPKG Community
michael@221 31 Class: EVAL
michael@221 32 Group: DNS
michael@221 33 License: LGPL
michael@221 34 Version: 0.0.9
michael@221 35 Release: 20080523
michael@221 36
michael@221 37 # list of sources
michael@221 38 Source0: http://www.corpit.ru/mjt/udns/udns_%{version}.tar.gz
michael@221 39
michael@221 40 # build information
michael@221 41 Prefix: %{l_prefix}
michael@221 42 BuildRoot: %{l_buildroot}
michael@221 43 BuildPreReq: OpenPKG, openpkg >= 20060823
michael@221 44 PreReq: OpenPKG, openpkg >= 20060823
michael@221 45 AutoReq: no
michael@221 46 AutoReqProv: no
michael@221 47
michael@221 48 %description
michael@221 49 UDNS is a stub DNS resolver library with ability to perform both
michael@221 50 syncronous and asyncronous DNS queries.
michael@221 51
michael@221 52 %track
michael@221 53 prog udns = {
michael@221 54 version = %{version}
michael@221 55 url = http://www.corpit.ru/mjt/udns/
michael@221 56 regex = udns[_-](__VER__)\.tar\.gz
michael@221 57 }
michael@221 58
michael@221 59 %prep
michael@221 60 %setup -q
michael@221 61
michael@221 62 %build
michael@221 63 CC="%{l_cc}" \
michael@221 64 CFLAGS="%{l_cflags -O}" \
michael@221 65 ./configure
michael@221 66 %{l_make} %{l_mflags}
michael@221 67
michael@221 68 %install
michael@221 69 rm -rf $RPM_BUILD_ROOT
michael@221 70 %{l_shtool} mkdir -f -p -m 755 \
michael@221 71 $RPM_BUILD_ROOT%{l_prefix}/include \
michael@221 72 $RPM_BUILD_ROOT%{l_prefix}/lib \
michael@221 73 $RPM_BUILD_ROOT%{l_prefix}/man/man3
michael@221 74 %{l_shtool} install -c -m 644 \
michael@221 75 udns.h $RPM_BUILD_ROOT%{l_prefix}/include/
michael@221 76 %{l_shtool} install -c -m 644 \
michael@221 77 libudns.a $RPM_BUILD_ROOT%{l_prefix}/lib/
michael@221 78 %{l_shtool} install -c -m 644 \
michael@221 79 udns.3 $RPM_BUILD_ROOT%{l_prefix}/man/man3/
michael@221 80 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
michael@221 81
michael@221 82 %files -f files
michael@221 83
michael@221 84 %clean
michael@221 85 rm -rf $RPM_BUILD_ROOT
michael@221 86

mercurial