LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File ralcalc.spec of Package ralcalc (Project home:oojah)

#
# spec file for package ralcalc (Version 1.4.2)
#
# Copyright 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright 2009,2011 Roger Light <roger@atchoo.org>
#
# 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.

Name:			ralcalc
Version:		1.4.2
Release:		0
Summary:		Simple command line calculator with SI prefix support

Group:			Productivity/Scientific/Math
License:		GPLv3
URL:			http://atchoo.org/tools/ralcalc/
Source0:		http://atchoo.org/tools/ralcalc/files/ralcalc-%{version}.tar.gz

BuildRoot:		%{_tmppath}/%{name}-%{version}-build
%if %{defined suse_version}
BuildRequires:	glibc-devel, fdupes
%else
BuildRequires:  glibc-devel
%endif

%description
ralcalc is a simple command line calculator designed to take a single line
input and produce a result. It is also installed as the "=" command.

Both the input and output make use of SI prefixes for easier input and
reading of results.

%prep
%setup -q -n ralcalc-%{version}

%build
sed -i 's/\$(LDFLAGS) -o \$@ \$\^/-o $@ $^ $(LDFLAGS)/' src/Makefile
%{__make} prefix="/usr"

%install
%{__make} prefix="/usr" INSTALL="install -p" DESTDIR=%{buildroot} install
%find_lang %{name}
%if %{defined suse_version}
%fdupes -s $RPM_BUILD_ROOT/%_mandir
%endif
%clean
%{__make} clean

%files -f %{name}.lang
%defattr(-, root, root, 0755)
%{_bindir}/%{name}
%{_bindir}/=
%{_mandir}/da
%{_mandir}/da/man1
%{_mandir}/en_GB
%{_mandir}/en_GB/man1
%{_mandir}/es
%{_mandir}/es/man1
%{_mandir}/eu
%{_mandir}/eu/man1
%{_mandir}/fr
%{_mandir}/fr/man1
%{_mandir}/it
%{_mandir}/it/man1
%{_mandir}/nl
%{_mandir}/nl/man1
%{_mandir}/pl
%{_mandir}/pl/man1
%{_mandir}/pt
%{_mandir}/pt/man1
%{_mandir}/pt_BR
%{_mandir}/pt_BR/man1
%{_mandir}/tr
%{_mandir}/tr/man1
%{_mandir}/vi
%{_mandir}/vi/man1
%attr(0644, root, root) %doc %{_mandir}/man1/%{name}.1.gz
%attr(0644, root, root) %doc %{_mandir}/man1/=.1.gz
%attr(0644, root, root) %doc %{_mandir}/da/man1/%{name}.1.gz
%attr(0644, root, root) %doc %{_mandir}/da/man1/=.1.gz
%attr(0644, root, root) %doc %{_mandir}/en_GB/man1/%{name}.1.gz
%attr(0644, root, root) %doc %{_mandir}/en_GB/man1/=.1.gz
%attr(0644, root, root) %doc %{_mandir}/es/man1/%{name}.1.gz
%attr(0644, root, root) %doc %{_mandir}/es/man1/=.1.gz
%attr(0644, root, root) %doc %{_mandir}/eu/man1/%{name}.1.gz
%attr(0644, root, root) %doc %{_mandir}/eu/man1/=.1.gz
%attr(0644, root, root) %doc %{_mandir}/fr/man1/%{name}.1.gz
%attr(0644, root, root) %doc %{_mandir}/fr/man1/=.1.gz
%attr(0644, root, root) %doc %{_mandir}/it/man1/%{name}.1.gz
%attr(0644, root, root) %doc %{_mandir}/it/man1/=.1.gz
%attr(0644, root, root) %doc %{_mandir}/nl/man1/%{name}.1.gz
%attr(0644, root, root) %doc %{_mandir}/nl/man1/=.1.gz
%attr(0644, root, root) %doc %{_mandir}/pl/man1/%{name}.1.gz
%attr(0644, root, root) %doc %{_mandir}/pl/man1/=.1.gz
%attr(0644, root, root) %doc %{_mandir}/pt/man1/%{name}.1.gz
%attr(0644, root, root) %doc %{_mandir}/pt/man1/=.1.gz
%attr(0644, root, root) %doc %{_mandir}/pt_BR/man1/%{name}.1.gz
%attr(0644, root, root) %doc %{_mandir}/pt_BR/man1/=.1.gz
%attr(0644, root, root) %doc %{_mandir}/tr/man1/%{name}.1.gz
%attr(0644, root, root) %doc %{_mandir}/tr/man1/=.1.gz
%attr(0644, root, root) %doc %{_mandir}/vi/man1/%{name}.1.gz
%attr(0644, root, root) %doc %{_mandir}/vi/man1/=.1.gz
/usr/share/locale/cs/LC_MESSAGES/ralcalc.mo
/usr/share/locale/da/LC_MESSAGES/ralcalc.mo
/usr/share/locale/en_GB/LC_MESSAGES/ralcalc.mo
/usr/share/locale/es/LC_MESSAGES/ralcalc.mo
/usr/share/locale/eu/LC_MESSAGES/ralcalc.mo
/usr/share/locale/fr/LC_MESSAGES/ralcalc.mo
#/usr/share/locale/fy/LC_MESSAGES/ralcalc.mo
/usr/share/locale/he/LC_MESSAGES/ralcalc.mo
/usr/share/locale/it/LC_MESSAGES/ralcalc.mo
/usr/share/locale/nb/LC_MESSAGES/ralcalc.mo
/usr/share/locale/nl/LC_MESSAGES/ralcalc.mo
#/usr/share/locale/oc/LC_MESSAGES/ralcalc.mo
/usr/share/locale/pl/LC_MESSAGES/ralcalc.mo
/usr/share/locale/pt_BR/LC_MESSAGES/ralcalc.mo
/usr/share/locale/tr/LC_MESSAGES/ralcalc.mo
/usr/share/locale/vi/LC_MESSAGES/ralcalc.mo

%changelog
* Sat Oct 01 2011 Roger Light <roger@atchoo.org> - 1.4.1
- New release

* Thu Aug 25 2011 Roger Light <roger@atchoo.org> - 1.4.0
- New release

* Tue Jun 23 2009 Roger Light <roger@atchoo.org> - 1.3.2
- Bump to latest version

* Tue Jun 02 2009 Roger Light <roger@atchoo.org> - 1.3.1.4
- Bump to latest version

* Sat Mar 07 2009 Roger Light <roger@atchoo.org> - 1.3.1.2
- Bump to latest version.

* Mon Jan 26 2009 Roger Light <roger [AT] atchoo [DOT] org> - 1.3.1.1
- Initial package