Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.1:Update
calc
calc.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File calc.spec of Package calc
# # spec file for package calc # # Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define soname 1 %define libname libcalc%{soname} Name: calc Version: 2.12.5.0 Release: 0 Summary: C-style arbitrary precision system License: LGPL-2.1 Group: Productivity/Scientific/Math Url: http://sourceforge.net/projects/calc Source0: http://sourceforge.net/projects/calc/files/calc/%{version}/%{name}-%{version}.tar.bz2 Source2: README.openSUSE # PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines Patch1: calc-2.12.3.3-no-rpath.patch BuildRequires: fdupes %description Calc is arbitrary precision C-like arithmetic system that is a calculator, an algorithm prototyper and mathematical research tool. Calc comes with a rich set of builtin mathematical and programmatic functions. %package -n %{libname} Summary: Arbitrary precision math library Group: System/Libraries %description -n %{libname} Part of the calc release consists of an arbitrary precision math link library. This link library is used by the calc program to perform its own calculations. If you wish, you can ignore the calc program entirely and call the arbitrary precision math routines from your own C programs. %package devel Summary: Development files for libcalc Group: Development/Libraries/C and C++ Requires: %{libname} = %{version} %description devel Part of the calc release consists of an arbitrary precision math link library. This link library is used by the calc program to perform its own calculations. If you wish, you can ignore the calc program entirely and call the arbitrary precision math routines from your own C programs. This package contains the files needed for building programs that use this library. %prep %setup -q %patch1 cp "%{SOURCE2}" . %build make EXTRA_CFLAGS="%{optflags}" HAVE_FPOS="-DHAVE_NO_FPOS" %install make T=%{buildroot} LIBDIR=%{_libdir} SCRIPTDIR=%{_datadir}/calc/cscript install %fdupes %{buildroot}%{_datadir}/calc/ %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig %files %defattr(-, root, root) %doc README README.openSUSE %{_bindir}/calc %{_datadir}/calc %{_mandir}/man1/calc.1* %files -n %{libname} %defattr(-, root, root) %{_libdir}/*.so.* %files devel %defattr(-, root, root) %doc LIBRARY sample_many.c sample_rand.c sample.README README README.openSUSE %{_includedir}/* %{_libdir}/*.so %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor