michael@360: ## michael@360: ## perl-openpkg.spec -- OpenPKG RPM Package Specification michael@360: ## Copyright (c) 2000-2010 OpenPKG Foundation e.V. michael@360: ## michael@360: ## Permission to use, copy, modify, and distribute this software for michael@360: ## any purpose with or without fee is hereby granted, provided that michael@360: ## the above copyright notice and this permission notice appear in all michael@360: ## copies. michael@360: ## michael@360: ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED michael@360: ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF michael@360: ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. michael@360: ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR michael@360: ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, michael@360: ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT michael@360: ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF michael@360: ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND michael@360: ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, michael@360: ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT michael@360: ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF michael@360: ## SUCH DAMAGE. michael@360: ## michael@360: michael@360: # package version michael@360: %define V_perl 5.14.1 michael@360: michael@360: # package information michael@360: Name: perl-openpkg michael@360: Summary: OpenPKG Perl Module Build Utility michael@360: URL: - michael@360: Vendor: The OpenPKG Project michael@360: Packager: OpenPKG Foundation e.V. michael@360: Distribution: OpenPKG Community michael@360: Class: BASE michael@360: Group: Perl michael@360: License: PD michael@360: Version: %{V_perl} michael@360: Release: 20110914 michael@360: michael@360: # list of sources michael@360: Source0: perl-openpkg.pl michael@360: michael@360: # build information michael@360: Prefix: %{l_prefix} michael@360: BuildRoot: %{l_buildroot} michael@360: BuildPreReq: OpenPKG, openpkg >= 20060823, perl >= %{V_perl} michael@360: PreReq: OpenPKG, openpkg >= 20060823, perl >= %{V_perl} michael@360: PreReq: gcc michael@360: AutoReq: no michael@360: AutoReqProv: no michael@360: michael@360: %description michael@360: perl-openpkg is a small OpenPKG-specific packaging utility which michael@360: simplifies the build procedures in the various OpenPKG packages michael@360: which include Perl modules. It is intended for internal use by those michael@360: OpenPKG packages only. michael@360: michael@360: %track michael@360: prog perl-openpkg = { michael@360: disabled michael@360: comment = "rse: no vendor tarball possible, because we are the vendor ;-)" michael@360: version = 0 michael@360: url = http://cvs.openpkg.org/openpkg-src/ michael@360: regex = perl-openpkg.sh michael@360: } michael@360: michael@360: %prep michael@360: %setup -T -c michael@360: cp %{SOURCE perl-openpkg.pl} . michael@360: michael@360: %build michael@360: %{l_prefix}/bin/pod2man \ michael@360: --quotes=none \ michael@360: --section=1 --center='OpenPKG Perl Module Build Utility' \ michael@360: --release="%{release}" --date='%{l_openpkg_release}' \ michael@360: perl-openpkg.pl >perl-openpkg.1 michael@360: michael@360: %install michael@360: rm -rf $RPM_BUILD_ROOT michael@360: %{l_shtool} mkdir -f -p -m 755 \ michael@360: $RPM_BUILD_ROOT%{l_prefix}/bin \ michael@360: $RPM_BUILD_ROOT%{l_prefix}/man/man1 michael@360: %{l_shtool} install -c -m 755 %{l_value -s -a} \ michael@360: perl-openpkg.pl \ michael@360: $RPM_BUILD_ROOT%{l_prefix}/bin/perl-openpkg michael@360: %{l_shtool} install -c -m 644 \ michael@360: perl-openpkg.1 \ michael@360: $RPM_BUILD_ROOT%{l_prefix}/man/man1/ michael@360: %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} michael@360: michael@360: %files -f files michael@360: michael@360: %clean michael@360: rm -rf $RPM_BUILD_ROOT michael@360: