Initial import (rhbz#1424825)
This commit is contained in:
parent
f3c5f4c19d
commit
f93499f7e5
|
@ -0,0 +1,4 @@
|
|||
*~
|
||||
*.rpm
|
||||
*.tar*
|
||||
results_*/
|
1
sources
1
sources
|
@ -0,0 +1 @@
|
|||
SHA512 (xviewer-1.2.2.tar.gz) = 90ec384703234a1073c5e3ac1fec411b9cc5df29b1a78001edb108b639498b3f3c3e3eae141397f1eb3647e3990174706f9056ad17ea377e4c6705a50f07bb2d
|
|
@ -0,0 +1,157 @@
|
|||
# Uncomment for bootstrapping on so-name bump.
|
||||
%global bootstrap 1
|
||||
|
||||
|
||||
Name: xviewer
|
||||
Version: 1.2.2
|
||||
Release: 0.3%{?dist}
|
||||
Summary: Fast and functional graphics viewer
|
||||
|
||||
License: GPLv2+ and LGPLv2+
|
||||
Url: https://github.com/linuxmint/%{name}
|
||||
Source: %{url}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: libappstream-glib
|
||||
BuildRequires: gnome-common
|
||||
BuildRequires: intltool
|
||||
BuildRequires: itstool
|
||||
BuildRequires: pkgconfig(dbus-glib-1)
|
||||
BuildRequires: pkgconfig(exempi-2.0)
|
||||
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
|
||||
BuildRequires: pkgconfig(glib-2.0)
|
||||
BuildRequires: pkgconfig(gnome-desktop-3.0)
|
||||
BuildRequires: pkgconfig(gobject-introspection-1.0)
|
||||
BuildRequires: pkgconfig(gtk+-3.0)
|
||||
BuildRequires: pkgconfig(gtk+-unix-print-3.0)
|
||||
BuildRequires: pkgconfig(lcms2)
|
||||
BuildRequires: pkgconfig(libexif)
|
||||
BuildRequires: pkgconfig(libjpeg)
|
||||
BuildRequires: pkgconfig(libpeas-gtk-1.0)
|
||||
BuildRequires: pkgconfig(librsvg-2.0)
|
||||
BuildRequires: pkgconfig(libxml-2.0)
|
||||
BuildRequires: shared-mime-info
|
||||
BuildRequires: yelp-devel
|
||||
|
||||
|
||||
Requires: gsettings-desktop-schemas%{?_isa}
|
||||
Requires: shared-mime-info%{?_isa}
|
||||
Requires: xapps%{?_isa}
|
||||
%if !0%{?bootstrap}
|
||||
Requires: %{name}-plugins%{?_isa}
|
||||
%endif # !0%%{?bootstrap}
|
||||
|
||||
Recommends: yelp%{?_isa}
|
||||
|
||||
%description
|
||||
Xviewer is a simple graphics viewer for the Cinnamon desktop and others
|
||||
which uses the gdk-pixbuf library. It can deal with large images, and zoom
|
||||
and scroll with constant memory usage. Its goals are simplicity and standards
|
||||
compliance.
|
||||
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Requires: %{name}%{?_isa} == %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
This package contains the development files to developt plugins for %{name}.
|
||||
|
||||
|
||||
%package doc
|
||||
Summary: Documentation files for %{name}
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: gtk-doc
|
||||
|
||||
%description doc
|
||||
This package contains the documentation files for %{name}.
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -p 1
|
||||
NOCONFIGURE=1 %{_bindir}/gnome-autogen.sh
|
||||
|
||||
|
||||
%build
|
||||
%configure \
|
||||
--disable-silent-rules \
|
||||
--enable-gtk-doc
|
||||
|
||||
%make_build
|
||||
|
||||
|
||||
%install
|
||||
%make_install
|
||||
%{__mkdir} -p %{buildroot}%{_mandir}/man1
|
||||
%{__install} -pm 0644 debian/%{name}.1 %{buildroot}%{_mandir}/man1
|
||||
%{_bindir}/find %{buildroot} -type f -name '*.a' -print -delete
|
||||
%{_bindir}/find %{buildroot} -type f -name '*.la' -print -delete
|
||||
%find_lang %{name}
|
||||
|
||||
|
||||
%check
|
||||
# Validate desktop-files.
|
||||
%{_bindir}/desktop-file-validate \
|
||||
%{buildroot}%{_datadir}/applications/*.desktop
|
||||
|
||||
# Validate AppData-files.
|
||||
%{_bindir}/appstream-util validate-relax --nonet \
|
||||
%{buildroot}%{_datadir}/appdata/*.appdata.xml
|
||||
|
||||
|
||||
%post
|
||||
%{_bindir}/update-desktop-database >&/dev/null || :
|
||||
/bin/touch %{_datadir}/icons/hicolor >&/dev/null || :
|
||||
|
||||
|
||||
%postun
|
||||
%{_bindir}/update-desktop-database >&/dev/null || :
|
||||
if [ $1 -eq 0 ]; then
|
||||
/bin/touch --no-create %{_datadir}/icons/hicolor >&/dev/null || :
|
||||
%{_bindir}/gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
|
||||
fi
|
||||
|
||||
|
||||
%posttrans
|
||||
%{_bindir}/gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
|
||||
|
||||
|
||||
%files -f %{name}.lang
|
||||
%doc ChangeLog README THANKS debian/changelog
|
||||
%license AUTHORS COPYING debian/copyright
|
||||
%exclude %{_datadir}/%{name}/gir-1.0/
|
||||
%{_bindir}/%{name}
|
||||
%{_datadir}/appdata/%{name}.appdata.xml
|
||||
%{_datadir}/applications/%{name}.desktop
|
||||
%{_datadir}/GConf/gsettings/%{name}.convert
|
||||
%{_datadir}/glib-2.0/schemas/*.xml
|
||||
%{_datadir}/help/*/%{name}
|
||||
%{_datadir}/icons/hicolor/*/apps/%{name}.*
|
||||
%{_datadir}/%{name}
|
||||
%{_libdir}/%{name}
|
||||
%{_mandir}/man1/%{name}.1*
|
||||
|
||||
|
||||
%files devel
|
||||
%{_datadir}/%{name}/gir-1.0
|
||||
%{_includedir}/%{name}-3.0
|
||||
%{_libdir}/pkgconfig/%{name}.pc
|
||||
|
||||
|
||||
%files doc
|
||||
%license %{_datadir}/licenses/%{name}
|
||||
%doc %{_datadir}/doc/%{name}
|
||||
%doc %{_datadir}/gtk-doc
|
||||
|
||||
|
||||
%changelog
|
||||
* Tue Feb 21 2017 Björn Esser <besser82@fedoraproject.org> - 1.2.2-0.3
|
||||
- Initial import (rhbz#1424825)
|
||||
- Bootstrap-build for xviewer-plugins
|
||||
|
||||
* Sun Feb 19 2017 Björn Esser <besser82@fedoraproject.org> - 1.2.2-0.2
|
||||
- Fix dir-ownership for %%{_datadir}/help
|
||||
|
||||
* Sun Feb 19 2017 Björn Esser <besser82@fedoraproject.org> - 1.2.2-0.1
|
||||
- Initial rpm-release (rhbz#1424825)
|
Loading…
Reference in New Issue