michael@700: ## michael@700: ## sipcalc.spec -- OpenPKG RPM Package Specification michael@700: ## Copyright (c) 2000-2009 OpenPKG Foundation e.V. michael@700: ## michael@700: ## Permission to use, copy, modify, and distribute this software for michael@700: ## any purpose with or without fee is hereby granted, provided that michael@700: ## the above copyright notice and this permission notice appear in all michael@700: ## copies. michael@700: ## michael@700: ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED michael@700: ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF michael@700: ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. michael@700: ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR michael@700: ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, michael@700: ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT michael@700: ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF michael@700: ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND michael@700: ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, michael@700: ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT michael@700: ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF michael@700: ## SUCH DAMAGE. michael@700: ## michael@700: michael@700: # package information michael@700: Name: sipcalc michael@700: Summary: IP Subnet Calculator michael@700: URL: http://www.routemeister.net/projects/sipcalc/ michael@700: Vendor: Simon Ekstrand michael@700: Packager: OpenPKG Foundation e.V. michael@700: Distribution: OpenPKG Community michael@700: Class: PLUS michael@700: Group: Mapping michael@700: License: GPL michael@700: Version: 1.1.5 michael@701: Release: 20120800 michael@700: michael@700: # list of sources michael@700: Source0: http://www.routemeister.net/projects/sipcalc/files/sipcalc-%{version}.tar.gz michael@700: Patch0: sipcalc.patch michael@700: michael@700: # build information michael@701: BuildPreReq: OpenPKG, openpkg >= 20100101, gcc, make michael@701: PreReq: OpenPKG, openpkg >= 20100101 michael@700: michael@700: %description michael@700: SipCalc is an IP subnet calculator. michael@700: michael@700: %track michael@700: prog sipcalc = { michael@700: version = %{version} michael@700: url = http://www.routemeister.net/projects/sipcalc/download.html michael@700: regex = sipcalc-(\d+\.\d+\.\d+)\.tar\.gz michael@700: } michael@700: michael@700: %prep michael@700: %setup -q michael@700: %patch -p0 michael@700: michael@700: %build michael@700: CC="%{l_cc}" \ michael@700: CFLAGS="%{l_cflags -O}" \ michael@700: GREP="grep" \ michael@700: ./configure \ michael@701: --prefix=%{l_prefix} \ michael@701: --mandir=%{l_prefix}/man michael@700: %{l_make} %{l_mflags -O} michael@700: michael@700: %install michael@700: %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" michael@700: strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true michael@700: %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} michael@700: michael@700: %files -f files michael@700: michael@700: %clean michael@700: