Name: shaman Version: 1.1 Release: 1%{?dist} Summary: Man pages viewer License: GPLv3+ URL: http://sites.google.com/site/mohammedisam2000/home/projects/ Source0: %{url}/%{name}-%{version}.tar.gz BuildArch: noarch Requires: java Requires: hicolor-icon-theme BuildRequires: desktop-file-utils, libappstream-glib, texinfo BuildRequires: java-devel, javapackages-tools %description Shaman is a software package that allows the user to view, search and run through the manual pages that are installed on the system in a Graphical User Interface (GUI). The aim is to make reading man pages an easy task for newcomers to the GNU/Linux system. %prep %setup -q %build make %{?_smp_mflags} %install install -m 0644 -p -D info/shaman.info* %{buildroot}%{_infodir}/shaman.info install -d %{buildroot}%{_mandir}/man1/ install -d %{buildroot}%{_docdir}/shaman/ install -m 0644 -p -D man/man1/shaman.1* %{buildroot}%{_mandir}/man1/ #install the JAR mkdir -p %{buildroot}%{_javadir}/ install -p -m 644 shaman.jar %{buildroot}%{_javadir}/shaman.jar #install app icons mkdir -p %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/ mkdir -p %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/ mkdir -p %{buildroot}%{_datadir}/icons/hicolor/24x24/apps/ cp -p shaman-256.png %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/shaman.png cp -p shaman-48.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/shaman.png cp -p shaman-24.png %{buildroot}%{_datadir}/icons/hicolor/24x24/apps/shaman.png mkdir -p %{buildroot}%{_datadir}/metainfo cp -p shaman.appdata.xml %{buildroot}%{_datadir}/metainfo/ desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{name}.desktop appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/*.appdata.xml %jpackage_script mima.shaman.Shaman "" "" %{name} shaman true %post /sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || : %preun if [ $1 = 0 ] ; then /sbin/install-info --delete %{_infodir}/%{name}.info* %{_infodir}/dir || : fi %files %{_bindir}/* %{_javadir}/* %{_mandir}/man1/shaman.1* %{_infodir}/* %{_docdir}/shaman %{_datadir}/applications/%{name}.desktop %{_metainfodir}/%{name}.appdata.xml %{_datadir}/icons/hicolor/*/apps/%{name}.png %%doc AUTHORS NEWS README ChangeLog %license COPYING %changelog * Thu Jun 28 2018 Mohammed Isam 1.1-1 - Changed BuildArch to noarch - Fixed .desktop file - Removed THANKS file from install * Tue Jun 26 2018 Mohammed Isam 1.0-5 - Fixed the spec file (added %%jpackage_script BuildRequires clause) * Tue Jun 26 2018 Mohammed Isam 1.0-4 - Fixed the spec file (added BuildRequires clauses) * Tue Jun 26 2018 Mohammed Isam 1.0-3 - Fixed the spec file * Sun Jun 10 2018 Mohammed Isam 1.0-2 - Fixed the spec file * Mon Jun 4 2018 Mohammed Isam 1.0-1 - First release