3a89ef5
Name:           xapps
b89511d
Version:        1.0.3
46a434f
Release:        5%{?dist}
3a89ef5
Summary:        Common files for XApp desktop apps
3a89ef5
3a89ef5
License:        LGPLv2+
3a89ef5
URL:            https://github.com/linuxmint
e90b854
Source0:        %url/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
e90b854
Source1:        %url/flags/archive/1.0.1.tar.gz#/flags-1.0.1.tar.gz
3a89ef5
3a89ef5
BuildRequires:  gnome-common
483824d
BuildRequires:  gtk-doc
3a89ef5
BuildRequires:  glib2-devel
3a89ef5
BuildRequires:  intltool
3a89ef5
BuildRequires:  gobject-introspection-devel
3a89ef5
BuildRequires:  libX11-devel
3a89ef5
BuildRequires:  gtk3-devel
3a89ef5
BuildRequires:  libgnomekbd-devel
46a434f
%if 0%{?fedora} || 0%{?rhel} >= 8
49deb5d
Requires:       python3-gobject-base
4f527c5
%else
4f527c5
Requires:       pygobject3
4f527c5
%endif
3a89ef5
Requires:       inxi
3a89ef5
Requires:       xdg-utils
3a89ef5
Requires:       fpaste
3a89ef5
3a89ef5
%description
3a89ef5
This package includes files that are shared between several XApp
3a89ef5
apps (i18n files and configuration schemas).
3a89ef5
3a89ef5
%package        devel
3a89ef5
Summary:        Development files for %{name}
3a89ef5
Requires:       %{name}%{?_isa} = %{version}-%{release}
3a89ef5
3a89ef5
%description    devel
3a89ef5
Development libraries and header files for
3a89ef5
developing XApp apps.
3a89ef5
3a89ef5
%prep
e90b854
%autosetup -p1
e90b854
tar -xf %{SOURCE1} -C files/usr/share --strip 3
e90b854
rm files/usr/share/format
46a434f
46a434f
%if (0%{?rhel} && 0%{?rhel} <= 7)
46a434f
for f in files/usr/bin/* ; do
46a434f
	sed -e 's~#!/usr/bin/python3~#!/usr/bin/python2~g' < ${f} > ${f}.new
46a434f
	touch -r ${f} ${f}.new
46a434f
	mv -f ${f}.new ${f}
46a434f
	chmod -c +x ${f}
46a434f
done
46a434f
%endif # (0%%{?rhel} && 0%%{?rhel} <= 7)
46a434f
3a89ef5
NOCONFIGURE=1 ./autogen.sh
3a89ef5
3a89ef5
%build
3a89ef5
%configure
3a89ef5
sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
3a89ef5
3a89ef5
%make_build V=1
3a89ef5
3a89ef5
3a89ef5
%install
3a89ef5
%make_install
3a89ef5
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
3a89ef5
3a89ef5
3a89ef5
%post
3a89ef5
/sbin/ldconfig
3a89ef5
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
3a89ef5
3a89ef5
%postun
3a89ef5
/sbin/ldconfig
3a89ef5
if [ $1 -eq 0 ] ; then
3a89ef5
    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
3a89ef5
    /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
3a89ef5
fi
3a89ef5
3a89ef5
%posttrans
3a89ef5
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
3a89ef5
3a89ef5
3a89ef5
%files
3a89ef5
%license COPYING
777d53a
%doc README.md
3a89ef5
%{_bindir}/pastebin
3a89ef5
%{_bindir}/upload-system-info
3a89ef5
%{_bindir}/xfce4-set-wallpaper
3a89ef5
%{_libdir}/libxapp.so.*
3a89ef5
%{_libdir}/girepository-1.0/XApp-1.0.typelib
e90b854
%{_datadir}/iso-flag-png/
3a89ef5
%{_datadir}/glib-2.0/schemas/org.x.apps.*.xml
b89511d
%{_datadir}/icons/hicolor/scalable/actions/*.svg
3a89ef5
3a89ef5
%files devel
3a89ef5
%{_includedir}/*
3a89ef5
%{_libdir}/libxapp.so
3a89ef5
%{_libdir}/pkgconfig/xapp.pc
3a89ef5
%{_datadir}/gir-1.0/XApp-1.0.gir
3a89ef5
3a89ef5
3a89ef5
%changelog
46a434f
* Tue Aug 29 2017 Björn Esser <besser82@fedoraproject.org> - 1.0.3-5
46a434f
- Use Python2 on epel
46a434f
4f527c5
* Mon Aug 28 2017 Leigh Scott <leigh123linux@googlemail.com> - 1.0.3-4
4f527c5
- Fix requires for epel
4f527c5
bc711b0
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-3
bc711b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
bc711b0
4fede23
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-2
4fede23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
4fede23
b89511d
* Wed May 03 2017 Leigh Scott <leigh123linux@googlemail.com> - 1.0.3-1
b89511d
- update to 1.0.3 release
483824d
- add build requires gtk-doc
b89511d
49deb5d
* Thu Feb 23 2017 Leigh Scott <leigh123linux@googlemail.com> - 1.0.2-5
49deb5d
- Add python3-gobject-base instead of python-gobject-base
49deb5d
de21aeb
* Thu Feb 23 2017 Leigh Scott <leigh123linux@googlemail.com> - 1.0.2-4
de21aeb
- Add some upstream fixes
de21aeb
30a84d2
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-3
30a84d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
30a84d2
d91e597
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.0.2-2
d91e597
- Rebuild for Python 3.6
d91e597
e90b854
* Mon Nov 07 2016 Leigh Scott <leigh123linux@googlemail.com> - 1.0.2-1
e90b854
- update to 1.0.2 release
e90b854
777d53a
* Sat Nov 05 2016 Leigh Scott <leigh123linux@googlemail.com> - 1.0.0-0.3.gita8d5277
777d53a
- update to latest git
777d53a
3a89ef5
* Tue Oct 11 2016 Leigh Scott <leigh123linux@googlemail.com> - 1.0.0-0.2.git0f28d18
3a89ef5
- fix review issues
3a89ef5
3a89ef5
* Sat Oct 08 2016 Leigh Scott <leigh123linux@googlemail.com> - 1.0.0-0.1.git7e7567a
3a89ef5
- first build