gdcalc.spec.in (gdcalc-2.20) | : | gdcalc.spec.in (gdcalc-3.0) | ||
---|---|---|---|---|
# $Id: gdcalc.spec.in,v 1.3 2006/12/31 01:17:41 bhepple Exp $ | # $Id: gdcalc.spec.in,v 1.3 2006/12/31 01:17:41 bhepple Exp $ | |||
# NO LONGER USED - SEE THE OUT-OF-TREE SPEC FILE | ||||
%define ver @VERSION@ | %define ver @VERSION@ | |||
%define rel 1 | %define rel 1 | |||
%define prefix /usr | %define prefix /usr | |||
Summary: gdcalc - a financial, statistics, scientific and programmers calculator for GTK+ | Summary: gdcalc - a financial, statistics, scientific and programmers calculator for GTK+ | |||
Name: gdcalc | Name: gdcalc | |||
Version: %{ver} | Version: %{ver} | |||
Release: %{rel} | Release: %{rel} | |||
License: GPL | License: GPL | |||
Group: Applications/Productivity | Group: Applications/Productivity | |||
Source: gdcalc-%{ver}.tar.gz | Source: gdcalc-%{ver}.tar.gz | |||
Packager: Bob Hepple <bob.hepple@gmail.com> | Packager: Bob Hepple <bob.hepple@gmail.com> | |||
Buildroot: /var/tmp/%{name}-root | ||||
requires: units | BuildRequires: gcc | |||
BuildRequires: make | ||||
BuildRequires: ncurses-devel | ||||
BuildRequires: pkgconfig(gtk+-3.0) | ||||
BuildRequires: autoconf, automake | ||||
BuildRequires: desktop-file-utils | ||||
Requires: units | ||||
%description | %description | |||
gdcalc is a financial, statistics, scientific and programmers | gdcalc is a financial, statistics, scientific and programmers | |||
calculator for gtk+-based under Unix and Linux. | calculator for gtk+-based under Unix and Linux. | |||
It has both Algebraic notation (ie. conventional, TI or Casio-like) | It has both Algebraic notation (ie. conventional, TI or Casio-like) | |||
and Reverse Polish Notation (HP-style). | and Reverse Polish Notation (HP-style). | |||
To get better fonts for the numbers and buttons, copy the file | To customise for fonts & colours: | |||
/usr/local/etc/gdcalc.rc to .gdcalc.rc in your home directory and | ||||
customise. | mkdir ~/.config/%{name} | |||
cp /etc/%{name}/%{name}.css ~/.config/%{name}/ | ||||
gdcalc is based on my venerable dcalc RPN calculator which I wrote | ||||
about a million years ago to learn C and curses - about 1983, I | gdcalc is based on my venerable dcalc RPN calculator which I wrote a | |||
suppose. | million years ago to learn C and curses - about 1983, I suppose. | |||
This package includes the original dcalc for curses (Unix console) | This package includes the original dcalc for curses (Unix console) | |||
If you want to know more about RPN calculators (and why they are more | If you want to know more about RPN calculators (and why they are more | |||
intuitive than algebraic calculators with their = sign) take a look at | intuitive than algebraic calculators with their = sign) take a look at | |||
http://www.hpcalc.org | http://www.hpcalc.org | |||
Have fun with it! Bob Hepple: mailto:bob.hepple@gmail.com | ||||
%prep | %prep | |||
rm -rf $RPM_BUILD_ROOT | rm -rf $RPM_BUILD_ROOT | |||
%setup | %setup | |||
%build | %build | |||
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} | CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} | |||
make | make | |||
%install | %install | |||
make prefix=${RPM_BUILD_ROOT}%{prefix} install | make prefix=${RPM_BUILD_ROOT}%{prefix} install | |||
install -Dpm0644 %{name}.glade %{buildroot}%{_datadir}/%{name}/%{name}.glade | ||||
install -Dpm0644 %{name}.css %{buildroot}%{_sysconfdir}/%{name}/%{name}.css | ||||
install -Dpm0644 pixmaps/HP-16C-48.png %{buildroot}%{_datadir}/icons/hicolor/48x | ||||
48/apps/%{name}.png | ||||
desktop-file-install --dir %{buildroot}/%{_datadir}/applications %{name}.desktop | ||||
%clean | %clean | |||
rm -rf ${RPM_BUILD_ROOT} | rm -rf ${RPM_BUILD_ROOT} | |||
%files | %files | |||
%defattr(-,root,root) | %defattr(-,root,root) | |||
%doc README COPYING doc/manual_en.html gdcalc.rc | %doc README COPYING doc/manual_en.html | |||
%{prefix}/bin/* | %{_bindir}/* | |||
%{prefix}/share/* | %{_datadir}/%{name}/ | |||
%{_datadir}/applications/* | ||||
%{_datadir}/icons/hicolor/48x48/apps/* | ||||
%{_sysconfdir}/%{name}/ | ||||
%changelog | ||||
* Thu Sep 30 2020 Bob Hepple <bob.hepple@gmail.com> - 3.0-1 | ||||
- ported from GTK-2 to GTK-3 | ||||
End of changes. 6 change blocks. | ||||
11 lines changed or deleted | 24 lines changed or added |