Tue, 28 Aug 2012 18:28:35 +0200
Write a explicit dependency to pkgconfig file for getaddrinfo(3). The SVR4
dependencies libsocket and libnsl are needed by libgio and libglib at least,
and allow dependent software like gmime to build unmodified.
michael@521 | 1 | ## |
michael@521 | 2 | ## xmlto.spec -- OpenPKG RPM Package Specification |
michael@521 | 3 | ## Copyright (c) 2000-2010 OpenPKG Foundation e.V. <http://openpkg.net/> |
michael@521 | 4 | ## |
michael@521 | 5 | ## Permission to use, copy, modify, and distribute this software for |
michael@521 | 6 | ## any purpose with or without fee is hereby granted, provided that |
michael@521 | 7 | ## the above copyright notice and this permission notice appear in all |
michael@521 | 8 | ## copies. |
michael@521 | 9 | ## |
michael@521 | 10 | ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED |
michael@521 | 11 | ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
michael@521 | 12 | ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
michael@521 | 13 | ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR |
michael@521 | 14 | ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
michael@521 | 15 | ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
michael@521 | 16 | ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF |
michael@521 | 17 | ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
michael@521 | 18 | ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
michael@521 | 19 | ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT |
michael@521 | 20 | ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
michael@521 | 21 | ## SUCH DAMAGE. |
michael@521 | 22 | ## |
michael@521 | 23 | |
michael@521 | 24 | # package information |
michael@521 | 25 | Name: xmlto |
michael@521 | 26 | Summary: XML/DocBook and XML/XSL-FO Converter |
michael@521 | 27 | URL: http://cyberelk.net/tim/xmlto/ |
michael@521 | 28 | Vendor: Tim Waugh |
michael@521 | 29 | Packager: OpenPKG Foundation e.V. |
michael@521 | 30 | Distribution: OpenPKG Community |
michael@521 | 31 | Class: EVAL |
michael@521 | 32 | Group: XML |
michael@521 | 33 | License: GPL |
michael@522 | 34 | Version: 0.0.25 |
michael@522 | 35 | Release: 20120800 |
michael@521 | 36 | |
michael@521 | 37 | # list of sources |
michael@522 | 38 | Source0: http://fedorahosted.org/releases/x/m/xmlto/xmlto-%{version}.tar.bz2 |
michael@521 | 39 | |
michael@521 | 40 | # build information |
michael@522 | 41 | BuildPreReq: OpenPKG, openpkg >= 20100101, make |
michael@522 | 42 | PreReq: OpenPKG, openpkg >= 20100101 |
michael@521 | 43 | BuildPreReq: libxml, libxslt, tetex, docbook, getopt, mktemp |
michael@521 | 44 | PreReq: libxml, libxslt, tetex, docbook, getopt, mktemp |
michael@521 | 45 | |
michael@521 | 46 | %description |
michael@521 | 47 | xmlto converts an XML input format (DocBook or XSL-FO) into a |
michael@521 | 48 | specified output format (PS, PDF, HTML, man, ASCII, XSL-FO, etc.) |
michael@521 | 49 | by applying an appropriate XSL-T stylesheet and then performing |
michael@521 | 50 | whatever post-processing is necessary. |
michael@521 | 51 | |
michael@521 | 52 | %track |
michael@521 | 53 | prog xmlto = { |
michael@521 | 54 | version = %{version} |
michael@521 | 55 | url = http://cyberelk.net/tim/data/xmlto/stable/ |
michael@521 | 56 | regex = xmlto-(\d+\.\d+\.\d+).tar.bz2 |
michael@521 | 57 | } |
michael@521 | 58 | |
michael@521 | 59 | %prep |
michael@521 | 60 | %setup -q |
michael@521 | 61 | %{l_shtool} subst \ |
michael@521 | 62 | -e 's;sh \("\$(dirname "\$0")\);%{l_bash} \1;g' \ |
michael@521 | 63 | format/docbook/dvi format/docbook/pdf format/docbook/ps |
michael@521 | 64 | |
michael@521 | 65 | %build |
michael@521 | 66 | CC="%{l_cc}" \ |
michael@521 | 67 | CFLAGS="%{l_cflags -O}" \ |
michael@521 | 68 | CPPFLAGS="%{l_cppflags}" \ |
michael@521 | 69 | LDFLAGS="%{l_ldflags}" \ |
michael@521 | 70 | ./configure \ |
michael@521 | 71 | --prefix=%{l_prefix} \ |
michael@522 | 72 | --mandir=%{l_prefix}/man |
michael@521 | 73 | %{l_make} %{l_mflags -O} |
michael@521 | 74 | |
michael@521 | 75 | %install |
michael@521 | 76 | %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" |
michael@521 | 77 | strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true |
michael@521 | 78 | %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} |
michael@521 | 79 | |
michael@521 | 80 | %files -f files |
michael@521 | 81 | |
michael@521 | 82 | %clean |
michael@521 | 83 |