diff --git a/.gitignore b/.gitignore index e69de29..ee7a68a 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/fedora-gooey-karma-0.1-1e27c83.tar.gz diff --git a/fedora-gooey-karma.spec b/fedora-gooey-karma.spec new file mode 100644 index 0000000..9df6556 --- /dev/null +++ b/fedora-gooey-karma.spec @@ -0,0 +1,82 @@ +%global commit 1e27c830f1a49b37d92855bd75f3a50911539b9d +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +Name: fedora-gooey-karma +Version: 0.1 +Release: 4%{?dist} +Summary: GUI tool for sending feedback about installed Test Update packages + +Group: Development/Tools +License: GPLv3+ +URL: https://fedoraproject.org/wiki/Fedora_Gooey_Karma + +Source0: https://github.com/blaskovic/fedora-gooey-karma/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz +BuildArch: noarch + +BuildRequires: desktop-file-utils +BuildRequires: python2-devel +BuildRequires: asciidoc +BuildRequires: libxslt + +Requires: python-fedora +Requires: fedora-cert +Requires: yum +Requires: yum-utils +Requires: bodhi-client +Requires: python-pyside +Requires: python-keyring +Requires: koji +Requires: hicolor-icon-theme + +%description +Fedora-gooey-karma helps you to easily and fast provide feedback for all testing +updates that you have currently installed and browse the available ones. It is +similar tool to fedora-easy-karma but with graphical front-end. + +%prep +%setup -q -n %{name}-%{commit} + +%build +a2x -d manpage -f manpage man/fedora-gooey-karma.1.asciidoc + +%post +/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : + +%postun +if [ $1 -eq 0 ] ; then + /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null + /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : +fi + +%posttrans +/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : + +%install +make install DESTDIR=%{buildroot} BINDIR=%{_bindir} DATADIR=%{_datadir} +desktop-file-validate %{buildroot}/%{_datadir}/applications/fedora-gooey-karma.desktop +install -d %{buildroot}%{_mandir}/man1 +install -p -m 644 man/fedora-gooey-karma.1 %{buildroot}/%{_mandir}/man1/ + +%files +%doc COPYING +%{_bindir}/%{name} +%{_datadir}/%{name} +%{_datadir}/applications/%{name}.desktop +%{_datadir}/icons/hicolor/*/apps/%{name}.png +%{_mandir}/man1/fedora-gooey-karma.1* + +%changelog +* Sat Mar 22 2014 Branislav Blaskovic - 0.1-4 +- Deleted icons folder from files + +* Fri Mar 14 2014 Branislav Blaskovic - 0.1-3 +- Fixed UnicodeEncodeError issue #28 +- Require for hicolor-icon-theme added +- Man page added + +* Mon Dec 9 2013 Branislav Blaskovic - 0.1-2 +- python2-devel added as build requires +- removed deletion of buildroot dir + +* Fri Oct 18 2013 Branislav Blaskovic - 0.1-1 +- Initial spec file diff --git a/sources b/sources index e69de29..47200cf 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +f9d45bdf09764cdf2bfbb1bfb5220c7a fedora-gooey-karma-0.1-1e27c83.tar.gz