%define doc_license %{nil} %define doc_license 1 %if 0%{?rhel}%{?fedora} %if 0%{?rhel} %if 0%{?rhel} < 7 %define doc_license 0 %endif %else %if 0%{?fedora} < 19 %define doc_license 0 %endif %endif %endif Name: libgtkhotkey Version: 0.2.1 Release: 13%{?dist} Summary: Platform independent hotkey handling for Gtk+ applications Group: System Environment/Libraries License: LGPLv3 URL: https://launchpad.net/gtkhotkey Source0: http://launchpad.net/gtkhotkey/0.2/%{version}/+download/gtkhotkey-%{version}.tar.gz # Use datadir instead of prefix to install documentation # patch mailed to author on 2009-09-22 Patch0: libgtkhotkey_doc_prefix.patch Patch1: gtkhotkey-include.patch BuildRequires: gtk2-devel, intltool, pkgconfig %description Platform independent hotkey handling for Gtk+ applications %package devel Summary: Development files for %{name} Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %setup -q -n "gtkhotkey-%{version}" %patch0 -p1 %patch1 -p1 -b .glib-include %build %configure --disable-static make %{?_smp_mflags} %install make install DESTDIR="${RPM_BUILD_ROOT}" find "${RPM_BUILD_ROOT}" -name '*.la' -exec rm -f '{}' ';' # Remove the docs installed by the package itself. Docs will be handled by the rpm %doc directive rm -rf "${RPM_BUILD_ROOT}/%{_datadir}/doc/gtkhotkey" %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %if 0%{?doc_license} %license COPYING %endif %doc AUTHORS COPYING NEWS README %{_libdir}/*.so.* %files devel %defattr(-,root,root,-) %doc %{_datadir}/gtk-doc/html/gtkhotkey %{_includedir}/* %{_libdir}/*.so %{_libdir}/pkgconfig/*.pc %changelog * Sat Oct 21 2017 Tomasz Tomasik - 0.2.1-13 - Added a few changes to the SPEC file - Rebuilt for EL7 * Sun Aug 17 2014 Fedora Release Engineering - 0.2.1-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.2.1-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Aug 03 2013 Fedora Release Engineering - 0.2.1-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Fedora Release Engineering - 0.2.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Thu Jul 19 2012 Fedora Release Engineering - 0.2.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sun Jul 8 2012 Peter Robinson - 0.2.1-7 - Fix FTBFS * Fri Jan 13 2012 Fedora Release Engineering - 0.2.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Dec 06 2011 Adam Jackson - 0.2.1-5 - Rebuild for new libpng * Tue Feb 08 2011 Fedora Release Engineering - 0.2.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Sun Sep 27 2009 Mads Villadsen - 0.2.1-3 - Let rpm handle doc installation to get properly versioned doc dir * Sat Sep 26 2009 Mads Villadsen - 0.2.1-2 - Add intltool and pkgconfig to BuildRequires * Tue Sep 22 2009 Mads Villadsen - 0.2.1-1 - Initial packaging