mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
164 lines
7.5 KiB
RPMSpec
164 lines
7.5 KiB
RPMSpec
#****h* calc/calc.spec.in
|
|
#
|
|
# calc.spec.in - template specfile for calc
|
|
#
|
|
# Copyright (C) 2003-2007 Petteri Kettunen and Landon Curt Noll
|
|
#
|
|
# Calc is open software; you can redistribute it and/or modify it under
|
|
# the terms of the version 2.1 of the GNU Lesser General Public License
|
|
# as published by the Free Software Foundation.
|
|
#
|
|
# Calc is distributed in the hope that it will be useful, but WITHOUT
|
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
|
|
# Public License for more details.
|
|
#
|
|
# A copy of version 2.1 of the GNU Lesser General Public License is
|
|
# distributed with calc under the filename COPYING-LGPL. You should have
|
|
# received a copy with calc; if not, write to Free Software Foundation, Inc.
|
|
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
#
|
|
# @(#) $Revision: 30.4 $
|
|
# @(#) $Id: calc.spec.in,v 30.4 2007/09/02 05:38:34 chongo Exp $
|
|
# @(#) $Source: /usr/local/src/cmd/calc/RCS/calc.spec.in,v $
|
|
#
|
|
# Under source code control: 2003/02/16 20:21:39
|
|
# File existed as early as: 2003
|
|
#
|
|
# calculator by David I. Bell with help/mods from others
|
|
# Makefile by Petteri Kettunen with modifications from Landon Curt Noll
|
|
|
|
# BUGS
|
|
# - Uninstalling calc and calc-devel leaves empty dirs /usr/include/calc
|
|
# and /usr/share/calc and its subdirs. In case e.g. %{_includedir}/calc
|
|
# is defined in `%files devel' section, then rpmbuild complains that
|
|
# header files are defined twice - rpmbuild bug or bug in specfile conf???
|
|
|
|
Summary: Arbitrary precision calculator.
|
|
Name: calc
|
|
Version: <<<PROJECT_VERSION>>>
|
|
Release: 1.0
|
|
License: LGPL
|
|
Group: Applications/Engineering
|
|
Source: %{name}-%{version}.tar.gz
|
|
URL: http://www.isthe.com/chongo/tech/comp/calc/index.html
|
|
Requires: ncurses >= 5.2-26, readline >= 4.2, less >= 358
|
|
BuildRequires: ncurses-devel >= 5.2-26, readline-devel >= 4.2
|
|
BuildRoot: %{_tmppath}/%{name}-root
|
|
|
|
%description
|
|
Calc is arbitrary precision C-like arithmetic system that is a
|
|
calculator, an algorithm prototype and mathematical research
|
|
tool. Calc comes with a rich set of builtin mathematical and
|
|
programmatic functions.
|
|
|
|
For the latest calc release, see the calc project home page:
|
|
|
|
http://www.isthe.com/chongo/tech/comp/calc/index.html
|
|
|
|
%package devel
|
|
Summary: Development files and documentation for calc.
|
|
Group: Development/Libraries
|
|
PreReq: %{name} = %{version}-%{release}
|
|
|
|
%description devel
|
|
This package contains the header files and static libraries for developing
|
|
calc (arbitrary precision calculator).
|
|
|
|
For the latest calc release, see the project home page:
|
|
|
|
http://www.isthe.com/chongo/tech/comp/calc/index.html
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
echo '-=- calc.spec beginning make clobber -=-'
|
|
make %{?_smp_mflags} T=%{buildroot} BINDIR=%{_bindir} LIBDIR=%{_libdir} CALC_SHAREDIR=%{_datadir}/%{name} CALC_INCDIR=%{_includedir}/calc MANDIR=%{_mandir}/man1 EXT= V=@ clobber
|
|
echo '-=- calc.spec ending make clobber -=-'
|
|
echo '-=- calc.spec beginning make calc-static-only -=-'
|
|
make %{?_smp_mflags} T=%{buildroot} BINDIR=%{_bindir} LIBDIR=%{_libdir} CALC_SHAREDIR=%{_datadir}/%{name} CALC_INCDIR=%{_includedir}/calc MANDIR=%{_mandir}/man1 EXT= V=@ calc-static-only BLD_TYPE=calc-static-only
|
|
echo '-=- calc.spec ending make calc-static-only -=-'
|
|
echo '-=- calc.spec beginning make rpm-hide-static -=-'
|
|
make %{?_smp_mflags} T=%{buildroot} BINDIR=%{_bindir} LIBDIR=%{_libdir} CALC_SHAREDIR=%{_datadir}/%{name} CALC_INCDIR=%{_includedir}/calc MANDIR=%{_mandir}/man1 EXT= V=@ rpm-hide-static
|
|
echo '-=- calc.spec ending make rpm-hide-static -=-'
|
|
echo '-=- calc.spec beginning make clobber (again) -=-'
|
|
make %{?_smp_mflags} T=%{buildroot} BINDIR=%{_bindir} LIBDIR=%{_libdir} CALC_SHAREDIR=%{_datadir}/%{name} CALC_INCDIR=%{_includedir}/calc MANDIR=%{_mandir}/man1 EXT= V=@ clobber
|
|
echo '-=- calc.spec ending make clobber (again) -=-'
|
|
echo '-=- calc.spec beginning make calc-dynamic-only -=-'
|
|
make %{?_smp_mflags} T=%{buildroot} BINDIR=%{_bindir} LIBDIR=%{_libdir} CALC_SHAREDIR=%{_datadir}/%{name} CALC_INCDIR=%{_includedir}/calc MANDIR=%{_mandir}/man1 EXT= V=@ calc-dynamic-only BLD_TYPE=calc-dynamic-only
|
|
echo '-=- calc.spec ending make calc-dynamic-only -=-'
|
|
echo '-=- calc.spec beginning make chk -=-'
|
|
make %{?_smp_mflags} T=%{buildroot} BINDIR=%{_bindir} LIBDIR=%{_libdir} CALC_SHAREDIR=%{_datadir}/%{name} CALC_INCDIR=%{_includedir}/calc MANDIR=%{_mandir}/man1 EXT= V=@ chk
|
|
echo '-=- calc.spec ending make chk -=-'
|
|
echo '-=- calc.spec beginning make rpm-unhide-static -=-'
|
|
make %{?_smp_mflags} T=%{buildroot} BINDIR=%{_bindir} LIBDIR=%{_libdir} CALC_SHAREDIR=%{_datadir}/%{name} CALC_INCDIR=%{_includedir}/calc MANDIR=%{_mandir}/man1 EXT= V=@ rpm-unhide-static
|
|
echo '-=- calc.spec ending make rpm-unhide-static -=-'
|
|
echo '-=- calc.spec beginning make rpm-clean-static -=-'
|
|
make %{?_smp_mflags} T=%{buildroot} BINDIR=%{_bindir} LIBDIR=%{_libdir} CALC_SHAREDIR=%{_datadir}/%{name} CALC_INCDIR=%{_includedir}/calc MANDIR=%{_mandir}/man1 EXT= V=@ rpm-clean-static
|
|
echo '-=- calc.spec ending make rpm-clean-static -=-'
|
|
echo '-=- calc.spec beginning make rpm-chk-static -=-'
|
|
make %{?_smp_mflags} T=%{buildroot} BINDIR=%{_bindir} LIBDIR=%{_libdir} CALC_SHAREDIR=%{_datadir}/%{name} CALC_INCDIR=%{_includedir}/calc MANDIR=%{_mandir}/man1 EXT= V=@ rpm-chk-static
|
|
echo '-=- calc.spec ending make rpm-chk-static -=-'
|
|
|
|
%install
|
|
rm -rf %{buildroot}
|
|
mkdir -p %{buildroot}
|
|
echo '-=- calc.spec beginning make install -=-'
|
|
make T=%{buildroot} BINDIR=%{_bindir} LIBDIR=%{_libdir} CALC_SHAREDIR=%{_datadir}/%{name} CALC_INCDIR=%{_includedir}/calc MANDIR=%{_mandir}/man1 EXT= V=@ install
|
|
echo '-=- calc.spec ending make install -=-'
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-, root, root)
|
|
%doc BUGS CHANGES COPYING COPYING-LGPL
|
|
%attr(755, root, root) %{_bindir}/calc
|
|
%attr(755, root, root) %{_bindir}/cscript/*
|
|
%attr(644, root, root) %{_mandir}/man1/calc.1.gz
|
|
%attr(644, root, root) %{_datadir}/%{name}/README
|
|
%attr(644, root, root) %{_datadir}/%{name}/bindings
|
|
%attr(644, root, root) %{_datadir}/%{name}/custhelp/*
|
|
%attr(644, root, root) %{_datadir}/%{name}/custom/*.cal
|
|
%attr(644, root, root) %{_datadir}/%{name}/help/*
|
|
%attr(644, root, root) %{_datadir}/%{name}/*.cal
|
|
%attr(644, root, root) %{_datadir}/%{name}/*.line
|
|
%attr(644, root, root) %{_libdir}/libcalc.so.%{version}
|
|
%attr(644, root, root) %{_libdir}/libcustcalc.so.%{version}
|
|
|
|
%files devel
|
|
%defattr(-, root, root)
|
|
%doc BUGS COPYING COPYING-LGPL LIBRARY
|
|
%attr(755, root, root) %{_bindir}/calc-static
|
|
%attr(644, root, root) %{_includedir}/calc/*
|
|
%attr(644, root, root) %{_libdir}/libcalc.a
|
|
%attr(644, root, root) %{_libdir}/libcustcalc.a
|
|
|
|
%changelog
|
|
* Sun Sep 01 2007 Landon Curt Noll http://www.isthe.com/chongo
|
|
- Release of calc-2.12.2
|
|
- Calc builds with shared libraries
|
|
* Sun Jun 25 2006 Landon Curt Noll http://www.isthe.com/chongo
|
|
- Changed Copyright to License as per new rpm v4.4 syntax
|
|
* Sun May 20 2006 Landon Curt Noll http://www.isthe.com/chongo
|
|
- Release of calc-2.12.0
|
|
- Added *.line set files to the list of packaged files
|
|
* Sun Dec 11 2005 Landon Curt Noll http://www.isthe.com/chongo
|
|
- Release of calc-2.11.11
|
|
- Fixed description in spec file
|
|
* Wed Feb 26 2003 Landon Curt Noll http://www.isthe.com/chongo
|
|
- Release of calc-2.11.7-2
|
|
- Fixed attributes on include and lib calc-devel files
|
|
- Added BUGS to calc-devel as well as calc
|
|
* Tue Feb 25 2003 Landon Curt Noll http://www.isthe.com/chongo
|
|
- Release of calc-2.11.7-1
|
|
- Require ncurses, readline and less to install.
|
|
- Require ncurses-devel and readline-devel to build.
|
|
* Tue Feb 18 2003 Landon Curt Noll http://www.isthe.com/chongo
|
|
- Misc changes to fit local directory setup
|
|
* Sun Feb 16 2003 Petteri Kettunen <petterik@users.sourceforge.net>
|
|
- initial RPM build
|
|
|
|
#****
|