]> git.pld-linux.org Git - packages/galculator.git/blame - galculator.spec
- up to 2.1.4;
[packages/galculator.git] / galculator.spec
CommitLineData
41b360e0
ER
1#
2# Conditional build:
8e4983c2 3%bcond_without gtk3 # use GTK+ 3.x instead of 2.x
41b360e0 4
8e4983c2
KM
5Summary: A GTK+3 based scientific calculator
6Summary(pl.UTF-8): Kalkulator naukowy bazujący na GTK+3
bc37bdae 7Name: galculator
8e4983c2
KM
8Version: 2.1.4
9Release: 1
41b360e0 10License: GPL v2+
bc37bdae 11Group: Applications/Math
8e4983c2
KM
12Source0: http://galculator.mnim.org/downloads/%{name}-%{version}.tar.bz2
13# Source0-md5: 1a115d6799dc453a29760e7bd4a56374
33bec421 14Patch0: %{name}-desktop.patch
8e4983c2 15URL: http://galculator.mnim.org
bc37bdae 16BuildRequires: autoconf
3998c9bf 17BuildRequires: automake
ee3d44b6 18BuildRequires: flex
b6d1bfb2 19BuildRequires: libglade2-devel >= 1:2.0.1
3998c9bf 20BuildRequires: pkgconfig
41b360e0
ER
21Requires: desktop-file-utils
22Requires: gtk-update-icon-cache
23Requires: hicolor-icon-theme
bc37bdae 24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26%description
8e4983c2 27GTK+3 based scientific calculator with ordinary notation/reverse
bc37bdae 28polish notation, different number bases (DEC, HEX, OCT, BIN) and
29different angle bases (DEG, RAD, GRAD).
30
fb55e291 31%description -l pl.UTF-8
8e4983c2 32Kalkulator naukowy bazujący na GTK+3 z notacją zwykłą i odwrotną
fb55e291
JR
33polską, różnymi systemami liczbowymi (dziesiętny, szesnastkowy,
34ósemkowy, binarny) i różnymi miarami kątowymi (stopień, radian,
bc37bdae 35gradus).
36
37%prep
b6d1bfb2 38%setup -q
715905f2 39%patch0 -p1
bc37bdae 40
41%build
3998c9bf 42%{__aclocal}
bc37bdae 43%{__autoconf}
3998c9bf 44%{__automake}
8e4983c2
KM
45# workaround for GCC10 build failure
46export CFLAGS="%(echo %{optflags}) -fcommon"
47export CXXFLAGS="$CFLAGS"
41b360e0
ER
48%configure \
49 %{__enable_disable gtk3}
bc37bdae 50%{__make}
51
52%install
53rm -rf $RPM_BUILD_ROOT
bc37bdae 54%{__make} install \
be4915bd 55 DESTDIR=$RPM_BUILD_ROOT
54fd8899 56
57%find_lang %{name}
bc37bdae 58
59%clean
60rm -rf $RPM_BUILD_ROOT
61
41b360e0
ER
62%post
63%update_desktop_database
64%update_icon_cache hicolor
65
66%postun
67%update_desktop_database
68%update_icon_cache hicolor
69
54fd8899 70%files -f %{name}.lang
bc37bdae 71%defattr(644,root,root,755)
086bdd6a 72%attr(755,root,root) %{_bindir}/%{name}
086bdd6a 73%{_mandir}/man1/%{name}.1*
41b360e0 74%{_datadir}/%{name}
8e4983c2 75%{_datadir}/appdata/galculator.appdata.xml
41b360e0
ER
76%{_desktopdir}/%{name}.desktop
77%{_pixmapsdir}/%{name}.xpm
78%{_iconsdir}/hicolor/*/apps/galculator.png
79%{_iconsdir}/hicolor/*/apps/galculator.svg
This page took 0.074466 seconds and 4 git commands to generate.