Name:      xings-night-light
Version:   0.4.1
Release:   1%{?dist}
Summary:   User service to change the color temperature of the screen

License:   GPLv2+
URL:       https://github.com/matiasdelellis/xings-night-light
Source0:   https://github.com/matiasdelellis/xings-night-light/releases/download/v%{version}/xings-night-light-%{version}.tar.bz2

BuildRequires: glib2-devel
BuildRequires: gtk3-devel
BuildRequires: desktop-file-utils
BuildRequires: gettext
BuildRequires: libtool
BuildRequires: intltool
BuildRequires: docbook-utils


%description
Xings Night Light Daemon is a user service that allows you to change the color
temperature of the screen.

%prep
%setup -q

%build
%configure
make %{?_smp_mflags}

%install
%make_install
%find_lang %{name}

%files -f %{name}.lang
%license COPYING
%doc AUTHORS README
%{_bindir}/xings-night-light-daemon
%{_bindir}/xings-night-light-preferences
%{_datadir}/applications/xings-night-light-preferences.desktop
%{_sysconfdir}/xdg/autostart/xings-night-light-daemon.desktop
%dir %{_datadir}/xings-night-light
%{_datadir}/xings-night-light/*
%{_datadir}/icons/hicolor/scalable/apps/xings-night-light.svg
%{_datadir}/glib-2.0/schemas/org.xings.night-light.gschema.xml
%{_datadir}/metainfo/*.metainfo.xml
%{_mandir}/man1/xings-night-light-*

%changelog
* Thu Sep 30 2021 Matias De lellis <mati86dl@gmail.com> - 0.4.1-1
- New version

* Thu Sep 30 2021 Matias De lellis <mati86dl@gmail.com> - 0.4.0-2
- Fix deps for others distros

* Thu Sep 30 2021 Matias De lellis <mati86dl@gmail.com> - 0.4.0-1
- Initial pachage for Fedora