michael@458: ## michael@458: ## diffutils.spec -- OpenPKG RPM Package Specification michael@458: ## Copyright (c) 2000-2012 OpenPKG Foundation e.V. michael@458: ## michael@458: ## Permission to use, copy, modify, and distribute this software for michael@458: ## any purpose with or without fee is hereby granted, provided that michael@458: ## the above copyright notice and this permission notice appear in all michael@458: ## copies. michael@458: ## michael@458: ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED michael@458: ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF michael@458: ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. michael@458: ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR michael@458: ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, michael@458: ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT michael@458: ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF michael@458: ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND michael@458: ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, michael@458: ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT michael@458: ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF michael@458: ## SUCH DAMAGE. michael@458: ## michael@458: michael@458: # package information michael@458: Name: diffutils michael@458: Summary: GNU Diff Utilities michael@458: URL: http://www.gnu.org/software/diffutils/ michael@458: Vendor: Free Software Foundation michael@458: Packager: OpenPKG Foundation e.V. michael@458: Distribution: OpenPKG Community michael@458: Class: BASE michael@458: Group: Patching michael@458: License: GPL michael@458: Version: 3.2 michael@459: Release: 20120800 michael@458: michael@458: # list of sources michael@458: Source0: ftp://ftp.gnu.org/gnu/diffutils/diffutils-%{version}.tar.gz michael@458: Patch0: diffutils.patch michael@458: michael@458: # build information michael@458: BuildPreReq: OpenPKG, openpkg >= 20100101, texinfo, make, gcc michael@458: PreReq: OpenPKG, openpkg >= 20100101 michael@458: michael@458: %description michael@458: The GNU set of diff utilities: cmp, diff, diff3 and sdiff. michael@458: michael@458: %track michael@458: prog diffutils = { michael@458: version = %{version} michael@458: url = ftp://ftp.gnu.org/gnu/diffutils/ michael@458: regex = diffutils-(__VER__)\.tar\.gz michael@458: } michael@458: michael@458: %prep michael@458: %setup -q michael@458: %patch -p0 michael@458: michael@458: %build michael@458: CC="%{l_cc}" \ michael@458: CFLAGS="%{l_cflags -O}" \ michael@458: ./configure \ michael@458: --prefix=%{l_prefix} \ michael@458: --mandir=%{l_prefix}/man \ michael@458: --infodir=%{l_prefix}/info \ michael@458: --disable-nls michael@459: touch man/diff.1 man/diff3.1 && %{l_make} %{l_mflags -O} michael@458: michael@458: %install michael@458: %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT michael@458: rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir michael@458: rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/charset.alias michael@458: strip $RPM_BUILD_ROOT%{l_prefix}/bin/* 2>/dev/null || true michael@458: %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} michael@458: michael@458: %files -f files michael@458: michael@458: %clean michael@458: