diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2023-07-12 06:41:06 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2023-07-12 06:41:06 +0000 |
commit | b5e9b3f32abedc27788d55cee8ed0b20d981d91e (patch) | |
tree | 5768be36cae1afd6656f65ca5db487c010a6d272 | |
parent | 00e5af0eef575b049f719f9c02a6bf45ea050cba (diff) |
-rw-r--r-- | cronopete.spec | 31 |
1 files changed, 13 insertions, 18 deletions
diff --git a/cronopete.spec b/cronopete.spec index 70adde4..a517ee1 100644 --- a/cronopete.spec +++ b/cronopete.spec @@ -4,7 +4,8 @@ Name: cronopete Version: 4.15.1 Release: %autorelease License: GPL-3.0-or-later -Summary: A backup utility for Linux. +Summary: A backup utility for Linux +URL: https://www.rastersoft.com/programas/cronopete.html Source0: https://gitlab.com/rastersoft/%{name}/-/archive/%{version}/%{name}-%{version}.tar.gz @@ -27,18 +28,13 @@ BuildRequires: pango-devel BuildRequires: pkgconf-pkg-config BuildRequires: rsync BuildRequires: vala +# for validating desktop entry +BuildRequires: desktop-file-utils Requires: atk Requires: cairo-gobject Requires: gdk-pixbuf2 -Requires: glib2 -Requires: glibc-devel Requires: gtk3 -Requires: libappindicator-gtk3 -Requires: libdbusmenu -Requires: libgee -Requires: libnotify -Requires: libudisks2 Requires: pango Requires: rsync @@ -51,15 +47,15 @@ Machine. It aims to simplify the creation of periodic backups. %autosetup -n %{name}-%{version} %build -%cmake -B build -DCMAKE_EXE_LINKER_FLAGS="%{optflags} -fPIE" -DGSETTINGS_COMPILE=OFF -DICON_UPDATE=OFF -DUSE_APPINDICATOR=ON -pushd build -%make_build -popd +%cmake -DCMAKE_EXE_LINKER_FLAGS="%{optflags} -fPIE" -DGSETTINGS_COMPILE=OFF -DICON_UPDATE=OFF -DUSE_APPINDICATOR=ON +%cmake_build %install -pushd build -%make_install -popd +%cmake_install +%find_lang %{name} + +%check +desktop-file-validate %{buildroot}%{_sysconfdir}/xdg/autostart/%{name}.desktop %post glib-compile-schemas %{_datadir}/glib-2.0/schemas @@ -67,12 +63,11 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas %postun glib-compile-schemas %{_datadir}/glib-2.0/schemas -%files +%files -f %{name}.lang %{_bindir}/%{name}* -%{_sysconfdir}/xdg/autostart/%{name}.desktop +%config(noreplace) %{_sysconfdir}/xdg/autostart/%{name}.desktop %{_datadir}/applications/%{name}_* %{_datadir}/%{name} -%{_datadir}/locale/*/LC_MESSAGES/cronopete.mo %{_datadir}/glib-2.0/schemas/org.rastersoft.%{name}.gschema.xml %{_datadir}/doc/%{name} %{_datadir}/dbus-1/services/com.rastersoft.%{name}.service |