OpenPKG CVS Repository http://cvs.openpkg.org/ ____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall Root: /v/openpkg/cvs Email: r...@openpkg.org Module: openpkg-src Date: 17-Oct-2009 22:14:12 Branch: HEAD Handle: 2009101721141200 Modified files: openpkg-src/asciidoc asciidoc.spec Log: repackage (not such nice with share/) in order to git it working under run-time (where security checks are done with subdirs) Summary: Revision Changes Path 1.28 +7 -44 openpkg-src/asciidoc/asciidoc.spec ____________________________________________________________________________ patch -p0 <<'@@ .' Index: openpkg-src/asciidoc/asciidoc.spec ============================================================================ $ cvs diff -u -r1.27 -r1.28 asciidoc.spec --- openpkg-src/asciidoc/asciidoc.spec 17 Oct 2009 20:01:45 -0000 1.27 +++ openpkg-src/asciidoc/asciidoc.spec 17 Oct 2009 20:14:12 -0000 1.28 @@ -64,55 +64,18 @@ %setup -q %build + ./configure \ + --prefix=%{l_prefix} \ + --sysconfdir=%{l_prefix}/etc \ + --mandir=%{l_prefix}/man + %{l_make} %{l_mflags -O} %install rm -rf $RPM_BUILD_ROOT - - # install binaries - %{l_shtool} mkdir -f -p -m 755 \ - $RPM_BUILD_ROOT%{l_prefix}/bin - %{l_shtool} install -c -m 755 \ - -e 's;^#!/usr/bin/env python;#!%{l_prefix}/bin/python;g' \ - -e 's;/etc/asciidoc;%{l_prefix}/etc/asciidoc;g' \ - asciidoc.py \ - $RPM_BUILD_ROOT%{l_prefix}/bin/asciidoc - %{l_shtool} install -c -m 755 \ - -e 's;^#!/bin/bash;#!%{l_prefix}/bin/bash;g' \ - -e 's;/etc/asciidoc;%{l_prefix}/etc/asciidoc;g' \ - a2x \ - $RPM_BUILD_ROOT%{l_prefix}/bin/ - - # install configuration files - %{l_shtool} mkdir -f -p -m 755 \ - $RPM_BUILD_ROOT%{l_prefix}/etc/asciidoc - %{l_shtool} install -c -m 644 \ - -e 's;\.\(/stylesheets\);%{l_prefix}/share/asciidoc\1;g' \ - *.conf \ - $RPM_BUILD_ROOT%{l_prefix}/etc/asciidoc/ - - # install man pages - %{l_shtool} mkdir -f -p -m 755 \ - $RPM_BUILD_ROOT%{l_prefix}/man/man1 - %{l_shtool} install -c -m 644 \ - doc/*.1 \ - $RPM_BUILD_ROOT%{l_prefix}/man/man1/ - - # install architecture-independent shared data - for i in doc docbook-xsl examples filters images stylesheets; do - %{l_shtool} mkdir -f -p -m 755 \ - $RPM_BUILD_ROOT%{l_prefix}/share/asciidoc/$i - %{l_tar} cf - $i | %{l_tar} xf - --no-same-permissions \ - -C $RPM_BUILD_ROOT%{l_prefix}/share/asciidoc/ - done - - # strip installation - rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/asciidoc/{doc,examples} \ - >/dev/null 2>&1 || true - - # determine installation files + %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ %{l_files_std} \ - '%config %{l_prefix}/etc/asciidoc/*' + '%config %{l_prefix}/etc/asciidoc/*.conf' %files -f files @@ . ______________________________________________________________________ OpenPKG http://openpkg.org CVS Repository Commit List openpkg-cvs@openpkg.org