Tue, 28 Aug 2012 18:28:40 +0200
Import package vendor original specs for necessary manipulations.
michael@360 | 1 | ## |
michael@360 | 2 | ## perl-openpkg.spec -- OpenPKG RPM Package Specification |
michael@360 | 3 | ## Copyright (c) 2000-2010 OpenPKG Foundation e.V. <http://openpkg.net/> |
michael@360 | 4 | ## |
michael@360 | 5 | ## Permission to use, copy, modify, and distribute this software for |
michael@360 | 6 | ## any purpose with or without fee is hereby granted, provided that |
michael@360 | 7 | ## the above copyright notice and this permission notice appear in all |
michael@360 | 8 | ## copies. |
michael@360 | 9 | ## |
michael@360 | 10 | ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED |
michael@360 | 11 | ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
michael@360 | 12 | ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
michael@360 | 13 | ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR |
michael@360 | 14 | ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
michael@360 | 15 | ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
michael@360 | 16 | ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF |
michael@360 | 17 | ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
michael@360 | 18 | ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
michael@360 | 19 | ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT |
michael@360 | 20 | ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
michael@360 | 21 | ## SUCH DAMAGE. |
michael@360 | 22 | ## |
michael@360 | 23 | |
michael@360 | 24 | # package version |
michael@360 | 25 | %define V_perl 5.14.1 |
michael@360 | 26 | |
michael@360 | 27 | # package information |
michael@360 | 28 | Name: perl-openpkg |
michael@360 | 29 | Summary: OpenPKG Perl Module Build Utility |
michael@360 | 30 | URL: - |
michael@360 | 31 | Vendor: The OpenPKG Project |
michael@360 | 32 | Packager: OpenPKG Foundation e.V. |
michael@360 | 33 | Distribution: OpenPKG Community |
michael@360 | 34 | Class: BASE |
michael@360 | 35 | Group: Perl |
michael@360 | 36 | License: PD |
michael@360 | 37 | Version: %{V_perl} |
michael@360 | 38 | Release: 20110914 |
michael@360 | 39 | |
michael@360 | 40 | # list of sources |
michael@360 | 41 | Source0: perl-openpkg.pl |
michael@360 | 42 | |
michael@360 | 43 | # build information |
michael@360 | 44 | Prefix: %{l_prefix} |
michael@360 | 45 | BuildRoot: %{l_buildroot} |
michael@360 | 46 | BuildPreReq: OpenPKG, openpkg >= 20060823, perl >= %{V_perl} |
michael@360 | 47 | PreReq: OpenPKG, openpkg >= 20060823, perl >= %{V_perl} |
michael@360 | 48 | PreReq: gcc |
michael@360 | 49 | AutoReq: no |
michael@360 | 50 | AutoReqProv: no |
michael@360 | 51 | |
michael@360 | 52 | %description |
michael@360 | 53 | perl-openpkg is a small OpenPKG-specific packaging utility which |
michael@360 | 54 | simplifies the build procedures in the various OpenPKG packages |
michael@360 | 55 | which include Perl modules. It is intended for internal use by those |
michael@360 | 56 | OpenPKG packages only. |
michael@360 | 57 | |
michael@360 | 58 | %track |
michael@360 | 59 | prog perl-openpkg = { |
michael@360 | 60 | disabled |
michael@360 | 61 | comment = "rse: no vendor tarball possible, because we are the vendor ;-)" |
michael@360 | 62 | version = 0 |
michael@360 | 63 | url = http://cvs.openpkg.org/openpkg-src/ |
michael@360 | 64 | regex = perl-openpkg.sh |
michael@360 | 65 | } |
michael@360 | 66 | |
michael@360 | 67 | %prep |
michael@360 | 68 | %setup -T -c |
michael@360 | 69 | cp %{SOURCE perl-openpkg.pl} . |
michael@360 | 70 | |
michael@360 | 71 | %build |
michael@360 | 72 | %{l_prefix}/bin/pod2man \ |
michael@360 | 73 | --quotes=none \ |
michael@360 | 74 | --section=1 --center='OpenPKG Perl Module Build Utility' \ |
michael@360 | 75 | --release="%{release}" --date='%{l_openpkg_release}' \ |
michael@360 | 76 | perl-openpkg.pl >perl-openpkg.1 |
michael@360 | 77 | |
michael@360 | 78 | %install |
michael@360 | 79 | rm -rf $RPM_BUILD_ROOT |
michael@360 | 80 | %{l_shtool} mkdir -f -p -m 755 \ |
michael@360 | 81 | $RPM_BUILD_ROOT%{l_prefix}/bin \ |
michael@360 | 82 | $RPM_BUILD_ROOT%{l_prefix}/man/man1 |
michael@360 | 83 | %{l_shtool} install -c -m 755 %{l_value -s -a} \ |
michael@360 | 84 | perl-openpkg.pl \ |
michael@360 | 85 | $RPM_BUILD_ROOT%{l_prefix}/bin/perl-openpkg |
michael@360 | 86 | %{l_shtool} install -c -m 644 \ |
michael@360 | 87 | perl-openpkg.1 \ |
michael@360 | 88 | $RPM_BUILD_ROOT%{l_prefix}/man/man1/ |
michael@360 | 89 | %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} |
michael@360 | 90 | |
michael@360 | 91 | %files -f files |
michael@360 | 92 | |
michael@360 | 93 | %clean |
michael@360 | 94 | rm -rf $RPM_BUILD_ROOT |
michael@360 | 95 |