f000ae8
Name:           gnome-system-log
142c5e9
Version:        3.9.90
f605282
Release:        7%{?dist}
46bf654
Epoch:          1
f000ae8
Summary:        A log file viewer for GNOME
f000ae8
f000ae8
Group:          Applications/System
f000ae8
License:        GPLv2+ and GFDL
f000ae8
URL:            http://www.gnome.org
1f7f82a
Source0:        http://download.gnome.org/sources/gnome-system-log/3.9/gnome-system-log-%{version}.tar.xz
cc1125d
Source1:        gnome-system-log
cc1125d
Source2:        org.gnome.logview.policy
f000ae8
f000ae8
BuildRequires: gtk3-devel
f000ae8
BuildRequires: intltool
f000ae8
BuildRequires: docbook-dtds
f000ae8
BuildRequires: desktop-file-utils
Richard Hughes 0b51e24
BuildRequires: itstool
f000ae8
6e4d481
Obsoletes: gnome-utils < 1:3.3
6e4d481
Obsoletes: gnome-utils-devel < 1:3.3
6e4d481
Obsoletes: gnome-utils-libs < 1:3.3
6e4d481
f000ae8
%description
f000ae8
gnome-system-log lets you view various log files on your system.
f000ae8
f000ae8
%prep
f000ae8
%setup -q
f000ae8
f000ae8
f000ae8
%build
f000ae8
%configure
f000ae8
make %{?_smp_mflags}
f000ae8
f000ae8
f000ae8
%install
f000ae8
make install DESTDIR=$RPM_BUILD_ROOT
f000ae8
f000ae8
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/gnome-system-log.desktop
f000ae8
cc1125d
mv $RPM_BUILD_ROOT%{_bindir}/gnome-system-log $RPM_BUILD_ROOT%{_bindir}/logview
cc1125d
cp %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}
144b3e2
chmod a+x $RPM_BUILD_ROOT%{_bindir}/gnome-system-log
cc1125d
mkdir -p $RPM_BUILD_ROOT%{_datadir}/polkit-1/actions
cc1125d
cp %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/polkit-1/actions
cc1125d
Richard Hughes d7e4f34
# Register as an application to be visible in the software center
Richard Hughes d7e4f34
#
Richard Hughes d7e4f34
# NOTE: It would be *awesome* if this file was maintained by the upstream
Richard Hughes d7e4f34
# project, translated and installed into the right place during `make install`.
Richard Hughes d7e4f34
#
Richard Hughes d7e4f34
# See http://www.freedesktop.org/software/appstream/docs/ for more details.
Richard Hughes d7e4f34
#
Richard Hughes d7e4f34
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
Richard Hughes d7e4f34
cat > $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml <
Richard Hughes d7e4f34
Richard Hughes d7e4f34
Richard Hughes d7e4f34
Richard Hughes d7e4f34
BugReportURL: https://bugzilla.gnome.org/show_bug.cgi?id=730871
Richard Hughes d7e4f34
SentUpstream: 2014-09-18
Richard Hughes d7e4f34
-->
Richard Hughes d7e4f34
<application>
Richard Hughes d7e4f34
  <id type="desktop">gnome-system-log.desktop</id>
Richard Hughes d7e4f34
  <metadata_license>CC0-1.0</metadata_license>
Richard Hughes d7e4f34
  <summary>View system logs</summary>
Richard Hughes d7e4f34
  <description>
Richard Hughes d7e4f34
    

Richard Hughes d7e4f34
      System Logs is an application for viewing the system logs on your 
Richard Hughes d7e4f34
      computer.
Richard Hughes d7e4f34
      It provides a graphical viewer for the logs that one would
Richard Hughes d7e4f34
      typically view in a terminal, such as the boot.log or the system
Richard Hughes d7e4f34
      messages.
Richard Hughes d7e4f34
    

Richard Hughes d7e4f34
  </description>
Richard Hughes d7e4f34
  <url type="homepage">https://git.gnome.org/browse/gnome-system-log/</url>
Richard Hughes d7e4f34
  <screenshots>
Richard Hughes d7e4f34
    <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/gnome-system-log/a.png</screenshot>
Richard Hughes d7e4f34
  </screenshots>
Richard Hughes d7e4f34
</application>
Richard Hughes d7e4f34
EOF
Richard Hughes d7e4f34
f000ae8
%find_lang %{name} --with-gnome
f000ae8
f000ae8
# https://bugzilla.redhat.com/show_bug.cgi?id=736523
f000ae8
#echo "%%dir %%{_datadir}/help/C" >> aisleriot.lang
f000ae8
#echo "%%{_datadir}/help/C/%%{name}" >> aisleriot.lang
f000ae8
#for l in ca cs de el en_GB es eu fi fr it ja ko oc ru sl sv uk zh_CN; do
f000ae8
#  echo "%%dir %%{_datadir}/help/$l"
f000ae8
#  echo "%%lang($l) %%{_datadir}/help/$l/%%{name}"
f000ae8
#done >> %{name}.lang
f000ae8
f000ae8
%post
33e9861
for d in hicolor HighContrast ; do
33e9861
  touch --no-create %{_datadir}/icons/$d >&/dev/null || :
33e9861
done
f000ae8
f000ae8
%postun
f000ae8
if [ $1 -eq 0 ]; then
3c3e139
  glib-compile-schemas %{_datadir}/glib-2.0/schemas >&/dev/null || :
33e9861
  for d in hicolor HighContrast ; do
33e9861
    touch --no-create %{_datadir}/icons/$d >&/dev/null || :
33e9861
    gtk-update-icon-cache %{_datadir}/icons/$d >&/dev/null || :
33e9861
  done
f000ae8
fi
f000ae8
f000ae8
%posttrans
3c3e139
glib-compile-schemas %{_datadir}/glib-2.0/schemas >&/dev/null || :
33e9861
for d in hicolor HighContrast ; do
33e9861
  gtk-update-icon-cache %{_datadir}/icons/$d >&/dev/null || :
33e9861
done
f000ae8
f000ae8
%files -f %{name}.lang
f000ae8
%doc COPYING COPYING.docs
f000ae8
%{_bindir}/gnome-system-log
cc1125d
%{_bindir}/logview
f000ae8
%{_datadir}/GConf/gsettings/logview.convert
Richard Hughes d7e4f34
%{_datadir}/appdata/%{name}.appdata.xml
f000ae8
%{_datadir}/applications/gnome-system-log.desktop
f000ae8
%{_datadir}/glib-2.0/schemas/org.gnome.gnome-system-log.gschema.xml
f000ae8
%{_datadir}/icons/hicolor/*/apps/logview.png
33e9861
%{_datadir}/icons/HighContrast/*/apps/logview.png
cc1125d
%{_datadir}/polkit-1/actions/org.gnome.logview.policy
f000ae8
%doc %{_mandir}/man1/gnome-system-log.1.gz
f000ae8
f000ae8
%changelog
f605282
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.9.90-7
f605282
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
f605282
0552ab6
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.9.90-6
0552ab6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
0552ab6
dfb90ab
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.9.90-5
dfb90ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
dfb90ab
Richard Hughes d7e4f34
* Thu Mar 26 2015 Richard Hughes <rhughes@redhat.com> - 1:3.9.90-4
Richard Hughes d7e4f34
- Add an AppData file for the software center
Richard Hughes d7e4f34
f08df3d
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.9.90-3
f08df3d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
f08df3d
70d80c3
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.9.90-2
70d80c3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
70d80c3
142c5e9
* Thu Aug 22 2013 Kalev Lember <kalevlember@gmail.com> - 1:3.9.90-1
142c5e9
- Update to 3.9.90
142c5e9
9f1d2ae
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.9.3-2
9f1d2ae
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
9f1d2ae
1f7f82a
* Fri Jun 21 2013 Kalev Lember <kalevlember@gmail.com> - 1:3.9.3-1
1f7f82a
- Update to 3.9.3
1f7f82a
bb8ca4e
* Mon Apr 15 2013 Kalev Lember <kalevlember@gmail.com> - 1:3.8.1-1
bb8ca4e
- Update to 3.8.1
bb8ca4e
8ba8f20
* Tue Mar 26 2013 Kalev Lember <kalevlember@gmail.com> - 1:3.8.0-1
8ba8f20
- Update to 3.8.0
8ba8f20
Richard Hughes 0fa5f01
* Tue Feb 19 2013 Richard Hughes <rhughes@redhat.com> - 1:3.7.90-1
Richard Hughes 0fa5f01
- Update to 3.7.90
Richard Hughes 0fa5f01
0f13c32
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.6.1-3
0f13c32
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
0f13c32
f0efb19
* Mon Nov 19 2012 Matthias Clasen <mclasen@redhat.com> - 1:3.6.1-2
f0efb19
- Use auth_admin instead of auth_self (#878115)
f0efb19
abb78d6
* Tue Nov 13 2012 Kalev Lember <kalevlember@gmail.com> - 1:3.6.1-1
abb78d6
- Update to 3.6.1
abb78d6
- Remove unused BRs
abb78d6
Cosimo Cecchi f08ae9e
* Tue Sep 25 2012 Cosimo Cecchi <cosimoc@redhat.com> - 1:3.6.0-1
Cosimo Cecchi f08ae9e
- Update to 3.6.0
Cosimo Cecchi f08ae9e
Richard Hughes 834a8cc
* Wed Sep 19 2012 Richard Hughes <hughsient@gmail.com> - 1:3.5.92-1
Richard Hughes 834a8cc
- Update to 3.5.92
Richard Hughes 834a8cc
Cosimo Cecchi 531c765
* Wed Sep 05 2012 Cosimo Cecchi <cosimoc@redhat.com> - 1:3.5.91-1
Cosimo Cecchi 531c765
- Update to 3.5.91
Cosimo Cecchi 531c765
Richard Hughes 1b9d344
* Tue Aug 21 2012 Richard Hughes <hughsient@gmail.com> - 1:3.5.90-1
Richard Hughes 1b9d344
- Update to 3.5.90
Richard Hughes 1b9d344
Richard Hughes d504830
* Tue Jul 17 2012 Richard Hughes <hughsient@gmail.com> - 1:3.5.4-1
Richard Hughes d504830
- Update to 3.5.4
Richard Hughes d504830
3c3e139
* Tue Apr 24 2012 Kalev Lember <kalevlember@gmail.com> - 1:3.4.1-2
3c3e139
- Silence rpm scriptlet output
3c3e139
Richard Hughes 5765fba
* Mon Apr 16 2012 Richard Hughes <hughsient@gmail.com> - 1:3.4.1-1
Richard Hughes 5765fba
- Update to 3.4.1
Richard Hughes 5765fba
cc1125d
* Thu Apr  5 2012 Matthias Clasen <mclasen@redhat.com> - 1:3.4.0-2
cc1125d
- Use pkexec to run privileged
cc1125d
Cosimo Cecchi 5927c22
* Mon Mar 26 2012 Cosimo Cecchi <cosimoc@redhat.com> - 1:3.4.0-1
Cosimo Cecchi 5927c22
- Update to 3.4.0
Cosimo Cecchi 5927c22
06996e1
* Wed Mar 21 2012 Kalev Lember <kalevlember@gmail.com> - 1:3.3.92-1
06996e1
- Update to 3.3.92
06996e1
46bf654
* Mon Mar 19 2012 Kalev Lember <kalevlember@gmail.com> - 1:3.3.1-4
46bf654
- Use epoch to fix the upgrade path from the old gnome-system-log package that
46bf654
  was built as part of gnome-utils
46bf654
6e4d481
* Sat Mar 17 2012 Matthias Clasen <mclasen@redhat.com> - 3.3.1-3
6e4d481
- Obsolete gnome-utils and subpackages
6e4d481
5f64ab2
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.1-2
5f64ab2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
5f64ab2
f000ae8
* Fri Nov 18 2011  Matthias Clasen <mclasen@redhat.com> - 3.3.1-1
f000ae8
- Initial packaging