File moneymanagerex.spec of Package moneymanagerex
Name: moneymanagerex
Version: 1.9.2
Release: 0
Summary: Free, easy-to-use, personal finance software
License: GPL-2.0-or-later AND MIT
Group: Productivity/Office/Finance
URL: https://moneymanagerex.org
Source0: %{name}-v%{version}.tar.xz
ExcludeArch: %{ix86}
# CMake build dir
%define _cmake_builddir build
BuildRequires: gcc-c++
BuildRequires: cmake >= 3.10
# BuildRequires: ninja
BuildRequires: pkgconfig
BuildRequires: git
BuildRequires: gettext-tools
# BuildRequires: lsb-release
BuildRequires: openSUSE-release
BuildRequires: ccache
BuildRequires: AppStream
BuildRequires: wxGTK3-3_2-devel
BuildRequires: libcurl-devel
BuildRequires: lua-devel
# BuildRequires: rapidjson-devel
# BuildRequires: pkgconfig(webkit2gtk-4.0)
# BuildRequires: pkgconfig(lua5.3)
# BuildRequires: pkgconfig(libcurl)
Requires: %{name}-lang = %{version}
%description
Open-source, cross-platform, software that helps you organize your finances
and keep track of where, when and to who the money goes. It is also a great
tool to get a bird's eye view of your financial worth.
%prep
%setup -q -n moneymanagerex-v%{version}
%build
%cmake
%cmake_build
%install
%cmake_install
mkdir -p %{_cmake_builddir}/po
find %{buildroot}%{_datadir}/mmex -name "*.mo" \
-printf '%{_datadir}/mmex/%%P\n' | sort > %{_cmake_builddir}/po/langfiles.lst
%files
%defattr(-,root,root,-)
%{_bindir}/mmex
%{_datadir}/applications/mmex.desktop
%{_datadir}/pixmaps/mmex.png
%{_datadir}/icons/hicolor/*/apps/mmex.png
%doc %{_datadir}/doc/mmex/README.TXT
%doc %{_datadir}/doc/mmex/contrib.txt
%doc %{_datadir}/doc/mmex/help/
%files lang -f %{_cmake_builddir}/po/langfiles.lst
%defattr(-,root,root,-)
%files devel
%defattr(-,root,root,-)
%{_includedir}/fmt/
%{_libdir}/libfmt.so*
%{_libdir}/cmake/fmt/
%{_libdir}/pkgconfig/fmt.pc
# %post
# %if 0%{?suse_version} >= 1500
# %desktop_database_post
# %icon_theme_cache_post
# %mime_database_post
# %endif
# %postun
# %if 0%{?suse_version} >= 1500
# %desktop_database_postun
# %icon_theme_cache_postun
# %mime_database_postun
# %endif
# %files
# %license license.txt
# %doc README.TXT README.md INSTALL.md NEWS BUILD.md
# %{_bindir}/mmex
# %dir %{_datadir}/mmex
# %dir %{_datadir}/mmex/res
# %{_datadir}/mmex/res/*
# %{_datadir}/applications/org.moneymanagerex.MMEX.desktop
# %{_datadir}/mime/packages/org.moneymanagerex.MMEX.mime.xml
# %{_datadir}/metainfo/org.moneymanagerex.MMEX.metainfo.xml
# %{_datadir}/icons/hicolor/*/apps/org.moneymanagerex.MMEX.*
# %files lang -f %{_cmake_builddir}/po/langfiles.lst