diff --git a/keybinder.spec b/keybinder.spec index fcf3cf0..c58a08a 100644 --- a/keybinder.spec +++ b/keybinder.spec @@ -1,14 +1,16 @@ -Name: keybinder +Name: keybinder Version: 0.3.1 -Release: 11%{?dist} +Release: 12%{?dist} Summary: A library for registering global keyboard shortcuts -Group: Development/Libraries +Group: Development/Libraries License: MIT URL: https://github.com/engla/keybinder -Source0: https://github.com/engla/keybinder/releases/download/v%{version}/%{name}-%{version}.tar.gz +Source0: %url/releases/download/v%{version}/%{name}-%{version}.tar.gz -BuildRequires: gcc +BuildRequires: automake +BuildRequires: gcc BuildRequires: gtk2-devel +BuildRequires: libtool BuildRequires: python2-devel BuildRequires: pygtk2-devel BuildRequires: pygobject2-devel @@ -23,66 +25,65 @@ The library contains: - Python bindings, python-keybinder - An examples directory with programs in C, Lua, Python and Vala. -%package devel -Summary: Development files for %{name} -Group: Development/Libraries -Requires: %{name} = %{version}-%{release} -Requires: pkgconfig +%package devel +Summary: Development files for %{name} +Group: Development/Libraries +Requires: %{name}%{?_isa} = %{version}-%{release} -%description devel +%description devel This package contains the development files for %{name}. -%package -n python2-%{name} +%package -n python2-%{name} %{?python_provide:%python_provide python2-%{name}} Group: Development/Libraries License: GPLv2+ Summary: Keybinder python bindings -Requires: %{name} = %{version}-%{release} +Requires: %{name}%{?_isa} = %{version}-%{release} Requires: pygtk2 pygobject2 -%filter_provides_in %{python_sitearch}.*\.so$ -%filter_setup - %description -n python2-%{name} This package contains python bindings for keybinder. %prep %setup -q -n %{name}-%{version} +sed -i -e 's@-rpath @@g' libkeybinder/Makefile.in \ + lua-keybinder/Makefile.in python-keybinder/Makefile.in +autoreconf -fiv %build +export PYTHON=%{__python2} %configure --disable-static --enable-python --disable-lua -sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool -sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool -make %{?_smp_mflags} +%make_build %install -rm -rf %{buildroot} -make install DESTDIR=%{buildroot} +%make_install -rm -rf %{buildroot}/%{_libdir}/libkeybinder.la -rm -rf %{buildroot}/%{_libdir}/lua/5.1/keybinder.la -rm -rf %{python_sitearch}/%{name}/_keybinder.la +#Remove libtool archives. +find %{buildroot} -name '*.la'| xargs rm -f -%post -p /sbin/ldconfig -%postun -p /sbin/ldconfig + +%ldconfig_scriptlets %files -%{_libdir}/libkeybinder.so.* %doc NEWS AUTHORS README +%{_libdir}/libkeybinder.so.* %files devel %{_includedir}/keybinder.h %{_libdir}/pkgconfig/keybinder.pc -%{_libdir}/libkeybinder.so -%{_datadir}/gtk-doc +%{_libdir}/libkeybinder.so %{_datadir}/gtk-doc/html/%{name} %files -n python2-%{name} -%{python2_sitearch}/%{name} %doc COPYING +%{python2_sitearch}/%{name} %changelog +* Mon Sep 03 2018 Leigh Scott - 0.3.1-12 +- Fix f29 FTBFS (rhbz#1604486) +- spec file clean up + * Fri Jul 13 2018 Fedora Release Engineering - 0.3.1-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild