modified: src1/input.c
[GalaxyCodeBases.git] / c_cpp / etc / calc / calc.spec.in
blobc354ce1a13fef44d464de01c0f3c2b17af2a9923
1 #****h* calc/calc.spec.in
3 # calc.spec.in - template specfile for calc
5 # Copyright (C) 2003-2013 Petteri Kettunen and Landon Curt Noll
7 # Calc is open software; you can redistribute it and/or modify it under
8 # the terms of the version 2.1 of the GNU Lesser General Public License
9 # as published by the Free Software Foundation.
11 # Calc is distributed in the hope that it will be useful, but WITHOUT
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
14 # Public License for more details.
16 # A copy of version 2.1 of the GNU Lesser General Public License is
17 # distributed with calc under the filename COPYING-LGPL. You should have
18 # received a copy with calc; if not, write to Free Software Foundation, Inc.
19 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 # @(#) $Revision: 30.11 $
22 # @(#) $Id: calc.spec.in,v 30.11 2013/08/11 08:41:38 chongo Exp $
23 # @(#) $Source: /usr/local/src/bin/calc/RCS/calc.spec.in,v $
25 # Under source code control: 2003/02/16 20:21:39
26 # File existed as early as: 2003
28 # calculator by David I. Bell with help/mods from others
29 # Makefile by Petteri Kettunen with modifications from Landon Curt Noll
31 # BUGS
32 # - Uninstalling calc and calc-devel leaves empty dirs /usr/include/calc
33 # and /usr/share/calc and its subdirs. In case e.g. %{_includedir}/calc
34 # is defined in `%files devel' section, then rpmbuild complains that
35 # header files are defined twice - rpmbuild bug or bug in specfile conf???
37 Summary: Arbitrary precision calculator.
38 Name: calc
39 Version: <<<PROJECT_VERSION>>>
40 Release: 10
41 License: LGPL
42 Group: Applications/Engineering
43 Source: http://www.isthe.com/chongo/src/calc/%{name}-%{version}.tar.bz2
44 URL: http://www.isthe.com/chongo/tech/comp/calc/index.html
45 Vendor: Landon Noll and Associates
46 Packager: Landon Noll and Associates (http://www.isthe.com/chongo/index.html)
47 Requires: ncurses >= 5.5-24, readline >= 5.1-3, less >= 358
48 BuildRequires: ncurses-devel >= 5.5-24, readline-devel >= 5.1-3
49 BuildRoot: %{_tmppath}/build-root
51 %description
52 Calc is arbitrary precision C-like arithmetic system that is a
53 calculator, an algorithm prototype and mathematical research
54 tool. Calc comes with a rich set of builtin mathematical and
55 programmatic functions.
57 For the latest calc release, see the calc project home page:
59 http://www.isthe.com/chongo/tech/comp/calc/index.html
61 %package devel
62 Summary: Development files and documentation for calc.
63 Group: Applications/Engineering
64 Requires: calc = %{version}-%{release}
66 %description devel
67 This package contains the header files and static libraries for developing
68 calc (arbitrary precision calculator).
70 For the latest calc release, see the project home page:
72 http://www.isthe.com/chongo/tech/comp/calc/index.html
74 %prep
75 %setup -T -b 0
77 %build
78 echo '-=- calc.spec beginning make clobber -=-'
79 make %{?_smp_mflags} T=%{_buildroot} BINDIR=%{_bindir} LIBDIR=%{_libdir} \
80 CALC_SHAREDIR=%{_datadir}/%{name} CALC_INCDIR=%{_includedir}/calc \
81 MANDIR=%{_mandir}/man1 EXT= V=@ clobber
82 echo '-=- calc.spec ending make clobber -=-'
83 echo '-=- calc.spec beginning make calc-static-only -=-'
84 make %{?_smp_mflags} T=%{_buildroot} BINDIR=%{_bindir} LIBDIR=%{_libdir} \
85 CALC_SHAREDIR=%{_datadir}/%{name} CALC_INCDIR=%{_includedir}/calc \
86 MANDIR=%{_mandir}/man1 EXT= V=@ calc-static-only BLD_TYPE=calc-static-only
87 echo '-=- calc.spec ending make calc-static-only -=-'
88 echo '-=- calc.spec beginning make rpm-hide-static -=-'
89 make %{?_smp_mflags} T=%{_buildroot} BINDIR=%{_bindir} LIBDIR=%{_libdir} \
90 CALC_SHAREDIR=%{_datadir}/%{name} CALC_INCDIR=%{_includedir}/calc \
91 MANDIR=%{_mandir}/man1 EXT= V=@ rpm-hide-static
92 echo '-=- calc.spec ending make rpm-hide-static -=-'
93 echo '-=- calc.spec beginning make clobber (again) -=-'
94 make %{?_smp_mflags} T=%{_buildroot} BINDIR=%{_bindir} LIBDIR=%{_libdir} \
95 CALC_SHAREDIR=%{_datadir}/%{name} CALC_INCDIR=%{_includedir}/calc \
96 MANDIR=%{_mandir}/man1 EXT= V=@ clobber
97 echo '-=- calc.spec ending make clobber (again) -=-'
98 echo '-=- calc.spec beginning make calc-dynamic-only -=-'
99 make %{?_smp_mflags} T=%{_buildroot} BINDIR=%{_bindir} LIBDIR=%{_libdir} \
100 CALC_SHAREDIR=%{_datadir}/%{name} CALC_INCDIR=%{_includedir}/calc \
101 MANDIR=%{_mandir}/man1 EXT= V=@ calc-dynamic-only \
102 BLD_TYPE=calc-dynamic-only LD_SHARE=
103 echo '-=- calc.spec ending make calc-dynamic-only -=-'
104 echo '-=- calc.spec beginning make chk -=-'
105 make %{?_smp_mflags} T=%{_buildroot} BINDIR=%{_bindir} LIBDIR=%{_libdir} \
106 CALC_SHAREDIR=%{_datadir}/%{name} CALC_INCDIR=%{_includedir}/calc \
107 MANDIR=%{_mandir}/man1 EXT= V=@ chk
108 echo '-=- calc.spec ending make chk -=-'
109 echo '-=- calc.spec beginning make rpm-unhide-static -=-'
110 make %{?_smp_mflags} T=%{_buildroot} BINDIR=%{_bindir} LIBDIR=%{_libdir} \
111 CALC_SHAREDIR=%{_datadir}/%{name} CALC_INCDIR=%{_includedir}/calc \
112 MANDIR=%{_mandir}/man1 EXT= V=@ rpm-unhide-static
113 echo '-=- calc.spec ending make rpm-unhide-static -=-'
114 echo '-=- calc.spec beginning make rpm-clean-static -=-'
115 make %{?_smp_mflags} T=%{_buildroot} BINDIR=%{_bindir} LIBDIR=%{_libdir} \
116 CALC_SHAREDIR=%{_datadir}/%{name} CALC_INCDIR=%{_includedir}/calc \
117 MANDIR=%{_mandir}/man1 EXT= V=@ rpm-clean-static
118 echo '-=- calc.spec ending make rpm-clean-static -=-'
119 echo '-=- calc.spec beginning make rpm-chk-static -=-'
120 make %{?_smp_mflags} T=%{_buildroot} BINDIR=%{_bindir} LIBDIR=%{_libdir} \
121 CALC_SHAREDIR=%{_datadir}/%{name} CALC_INCDIR=%{_includedir}/calc \
122 MANDIR=%{_mandir}/man1 EXT= V=@ rpm-chk-static
123 echo '-=- calc.spec ending make rpm-chk-static -=-'
125 %install
126 echo '-=- calc.spec beginning make install -=-'
127 rm -rf %{_buildroot}
128 mkdir -p %{_buildroot}
129 make T=%{_buildroot} BINDIR=%{_bindir} LIBDIR=%{_libdir} \
130 CALC_SHAREDIR=%{_datadir}/%{name} CALC_INCDIR=%{_includedir}/calc \
131 MANDIR=%{_mandir}/man1 EXT= V=@ install
132 echo '-=- calc.spec ending make install -=-'
134 %clean
135 rm -rf %{_buildroot}
137 %files
138 %defattr(-, root, root)
139 %doc BUGS CHANGES COPYING COPYING-LGPL
140 %attr(755, root, root) %{_bindir}/calc
141 %attr(755, root, root) %{_bindir}/cscript/*
142 %attr(644, root, root) %{_mandir}/man1/calc.1.gz
143 %attr(644, root, root) %{_datadir}/%{name}/README
144 %attr(644, root, root) %{_datadir}/%{name}/bindings
145 %attr(644, root, root) %{_datadir}/%{name}/custhelp/*
146 %attr(644, root, root) %{_datadir}/%{name}/custom/*.cal
147 %attr(644, root, root) %{_datadir}/%{name}/help/*
148 %attr(644, root, root) %{_datadir}/%{name}/*.cal
149 %attr(644, root, root) %{_datadir}/%{name}/*.line
150 %attr(644, root, root) %{_libdir}/libcalc.so
151 %attr(644, root, root) %{_libdir}/libcalc.so.*
152 %attr(644, root, root) %{_libdir}/libcustcalc.so
153 %attr(644, root, root) %{_libdir}/libcustcalc.so.*
155 %files devel
156 %defattr(-, root, root)
157 %doc BUGS COPYING COPYING-LGPL LIBRARY
158 %attr(755, root, root) %{_bindir}/calc-static
159 %attr(644, root, root) %{_includedir}/calc/*
160 %attr(644, root, root) %{_libdir}/libcalc.a
161 %attr(644, root, root) %{_libdir}/libcustcalc.a
163 %changelog
164 * Sat May 05 2013 Landon Curt Noll http://www.isthe.com/chongo
165 - Release: 10
166 - Major bug rpm build process bug fix
167 - Source: is a URL as per rpm requirements
168 - Requires: ncurses >= 5.5-24, readline >= 5.1-3, less >= 358
169 - BuildRequires: ncurses-devel >= 5.5-24, readline-devel >= 5.1-3
170 - BuildRoot: %{_tmppath}/build-root
171 - Fixed use of %{_buildroot}
172 - Fixed permissions so that rpm build services can modify libraries
173 - Added missing files to files section
174 * Mon Mar 25 2013 Landon Curt Noll http://www.isthe.com/chongo
175 - Release: 9 (was 1.1)
176 - Removed deprecated PreReq for calc-devel, using Requires
177 * Sun Sep 01 2007 Landon Curt Noll http://www.isthe.com/chongo
178 - Release: 8
179 - Release of calc-2.12.2
180 - Calc builds with shared libraries
181 * Sun Jun 25 2006 Landon Curt Noll http://www.isthe.com/chongo
182 - Release: 7
183 - Changed Copyright to License as per new rpm v4.4 syntax
184 * Sun May 20 2006 Landon Curt Noll http://www.isthe.com/chongo
185 - Release: 6
186 - Release of calc-2.12.0
187 - Added *.line set files to the list of packaged files
188 * Sun Dec 11 2005 Landon Curt Noll http://www.isthe.com/chongo
189 - Release: 5
190 - Release of calc-2.11.11
191 - Fixed description in spec file
192 * Wed Feb 26 2003 Landon Curt Noll http://www.isthe.com/chongo
193 - Release: 4
194 - Release of calc-2.11.7-2
195 - Fixed attributes on include and lib calc-devel files
196 - Added BUGS to calc-devel as well as calc
197 * Tue Feb 25 2003 Landon Curt Noll http://www.isthe.com/chongo
198 - Release: 3
199 - Release of calc-2.11.7-1
200 - Require ncurses, readline and less to install.
201 - Require ncurses-devel and readline-devel to build.
202 * Tue Feb 18 2003 Landon Curt Noll http://www.isthe.com/chongo
203 - Release: 2
204 - Misc changes to fit local directory setup
205 * Sun Feb 16 2003 Petteri Kettunen <petterik@users.sourceforge.net>
206 - Release: 1
207 - initial RPM build
209 #****