|
| 1 | +Summary: A simple GUI for managing Conky config files |
| 2 | +Name: conky-manager2 |
| 3 | +Version: 2.7 |
| 4 | +Release: 1 |
| 5 | +Group: Monitoring |
| 6 | +License: GPLv3+ |
| 7 | +URL: https://github.com/zcot/conky-manager2 |
| 8 | +Source0: https://github.com/zcot/conky-manager2/archive/refs/tags/v%{version}/%{name}-%{version}.tar.gz |
| 9 | +BuildRequires: meson |
| 10 | +BuildRequires: imagemagick |
| 11 | +BuildRequires: pkgconfig(gee-0.8) |
| 12 | +BuildRequires: pkgconfig(gtk+-3.0) |
| 13 | +BuildRequires: pkgconfig(json-glib-1.0) |
| 14 | +BuildRequires: vala |
| 15 | + |
| 16 | +Requires: conky |
| 17 | +Requires: lm_sensors |
| 18 | +Requires: hddtemp |
| 19 | +Requires: 7zip |
| 20 | + |
| 21 | +%rename conky-manager |
| 22 | +Obsoletes: conky-manager < %{version} |
| 23 | + |
| 24 | +%description |
| 25 | +A simple GUI for managing Conky config files. Options for changing themes and |
| 26 | +running Conky at startup. |
| 27 | + |
| 28 | +%files -f %name.lang |
| 29 | +%license COPYING |
| 30 | +%doc README.md AUTHORS TODO |
| 31 | +%{_bindir}/%{name} |
| 32 | +%dir %{_datadir}/%{name}/ |
| 33 | +%{_datadir}/%{name}/* |
| 34 | +%{_datadir}/pixmaps/%{name}.xpm |
| 35 | +%{_datadir}/pixmaps/%{name}.png |
| 36 | +%{_datadir}/appdata/%{name}.appdata.xml |
| 37 | +%{_datadir}/applications/%{name}.desktop |
| 38 | +%{_iconsdir}/hicolor/*/apps/%{name}.png |
| 39 | + |
| 40 | +#--------------------------------------------------------------------------- |
| 41 | + |
| 42 | +%prep |
| 43 | +%autosetup -p1 |
| 44 | + |
| 45 | +%build |
| 46 | +%meson |
| 47 | +%meson_build |
| 48 | + |
| 49 | +%install |
| 50 | +%meson_install |
| 51 | + |
| 52 | +# icons |
| 53 | +for d in 16 32 48 64 72 128 256 512 |
| 54 | +do |
| 55 | + install -dm 0755 %{buildroot}%{_iconsdir}/hicolor/${d}x${d}/apps/ |
| 56 | + convert -background none -scale ${d}x${d} src/share/%{name}/images/%{name}.png \ |
| 57 | + %{buildroot}%{_iconsdir}/hicolor/${d}x${d}/apps/%{name}.png |
| 58 | +done |
| 59 | +install -dm 0755 %{buildroot}%{_datadir}/pixmaps/ |
| 60 | +convert -background none -scale ${d}x${d} src/share/%{name}/images/%{name}.png \ |
| 61 | + %{buildroot}%{_datadir}/pixmaps/%{name}.xpm |
| 62 | + |
| 63 | +# locales |
| 64 | +%find_lang %name --all-name |
| 65 | + |
| 66 | +#rm -f %{buildroot}/%{_bindir}/%{name}2-uninstall |
0 commit comments