diff --git a/.gitignore b/.gitignore index 9cf4f15..926cfb5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,2 @@ -/Xfce-Theme-Manager-0.1.20.tar.gz -/Xfce-Theme-Manager-0.2.3.tar.gz -/Xfce-Theme-Manager-0.2.4.tar.gz -/Xfce-Theme-Manager-0.3.3.tar.gz -/Xfce-Theme-Manager-0.3.5.tar.gz -/Xfce-Theme-Manager-0.3.6.tar.gz -/xfce-theme-manager-0.3.8.tar.gz -/Xfce-Theme-Manager-0.3.9.tar.gz +/xfce-theme-manager-*.tar.gz +/Xfce-Theme-Manager-*.tar.gz diff --git a/.packit.yaml b/.packit.yaml new file mode 100644 index 0000000..5826c15 --- /dev/null +++ b/.packit.yaml @@ -0,0 +1,19 @@ +# See the documentation for more information: +# https://packit.dev/docs/configuration/ + +specfile_path: xfce-theme-manager.spec + +copy_upstream_release_description: false + +jobs: + - job: pull_from_upstream + trigger: release + dist_git_branches: + - fedora-rawhide + + - job: koji_build + trigger: commit + allowed_committers: ['packit','all_admins'] + dist_git_branches: + - fedora-rawhide + diff --git a/xfce-theme-manager.spec b/xfce-theme-manager.spec index 4e664c3..5e5c07b 100644 --- a/xfce-theme-manager.spec +++ b/xfce-theme-manager.spec @@ -1,11 +1,11 @@ -%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}} %global pkgname Xfce-Theme-Manager Name: xfce-theme-manager Version: 0.3.9 Release: %autorelease Summary: A theme manager for Xfce -License: GPLv3 +# Automatically converted from old format: GPLv3 - review is highly recommended. +License: GPL-3.0-only URL: https://github.com/KeithDHedger/Xfce-Theme-Manager # wget https://github.com/KeithDHedger/Xfce-Theme-Manager/archive/xfce-theme-manager-0.3.8.tar.gz Source0: https://github.com/KeithDHedger/Xfce-Theme-Manager/archive/%{pkgname}-%{version}.tar.gz @@ -16,9 +16,10 @@ BuildRequires: gcc-c++ BuildRequires: make BuildRequires: pkgconfig(gdk-2.0) BuildRequires: pkgconfig(glib-2.0) -BuildRequires: pkgconfig(gtk+-3.0) +BuildRequires: pkgconfig(gtk+-2.0) +BuildRequires: pkgconfig(libxfconf-0) +BuildRequires: pkgconfig(xcursor) BuildRequires: xfce4-dev-tools -BuildRequires: xfconf-devel %description A theme manager allowing easy configuration of themes, @@ -32,11 +33,12 @@ window borders, controls, icons and cursors for Xfce #run autoreconf, not needed when upstream moves to new automake autoreconf -v -f -i -I. %configure -make %{?_smp_mflags} xfcethememanager_CFLAGS="%{optflags} -export-dynamic" xfcethememanager_CXXFLAGS="%{optflags} -export-dynamic -Wunused -Wunused-function -Wno-unused-result -fPIC" +%make_build xfcethememanager_CFLAGS="%{optflags} -export-dynamic" xfcethememanager_CXXFLAGS="%{optflags} -export-dynamic -Wunused -Wunused-function -Wno-unused-result -fPIC" %install -make install DESTDIR=%{buildroot} docfilesdir="%{_pkgdocdir}" +%make_install docfilesdir="%{_pkgdocdir}" +rm -f %{buildroot}%{_pkgdocdir}/gpl-3.0.txt desktop-file-install \ --delete-original \ --dir=%{buildroot}%{_datadir}/applications \ @@ -50,9 +52,13 @@ desktop-file-install \ --set-name="Xfce Theme Manager" \ %{buildroot}/%{_datadir}/applications/%{pkgname}.desktop +%check +desktop-file-validate %{buildroot}%{_datadir}/applications/%{pkgname}.desktop +%make_build check %files -%doc ChangeLog* Xfce-Theme-Manager/resources/docs/gpl-3.0.txt +%license Xfce-Theme-Manager/resources/docs/gpl-3.0.txt +%doc ChangeLog* %{_bindir}/%{name} %{_datadir}/applications/%{pkgname}.desktop %{_datadir}/pixmaps/%{name}.png