Name: libnih Version: 1.0.3 Release: 1%{?dist} Summary: Lightweight application development library License: GPLv2 URL: https://launchpad.net/libnih Source0: https://launchpadlibrarian.net/61177861/libnih-1.0.3.tar.gz Patch1: change-var-to-extern.patch BuildRequires: autoconf >= 2.62 BuildRequires: gettext >= 0.17 BuildRequires: gettext-autopoint BuildRequires: automake >= 1.11 BuildRequires: libtool >= 2.2.4 BuildRequires: dbus-devel >= 1.2.16 BuildRequires: expat >= 2.0.0 BuildRequires: expat-devel >= 2.0.0 # Filter GLIBC_PRIVATE Requires: %define __filter_GLIBC_PRIVATE 1 %description libnih is a small library for C application development containing functions that, despite its name, are not implemented elsewhere in the standard library set. libnih is roughly equivalent to other C libraries such as glib, except that its focus is on a small size and intended for applications that sit very low in the software stack, especially outside of /usr. %package devel Summary: Development files for %{name} Requires: %{name} = %{version}-%{release} Requires: pkgconfig %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %setup -q %patch1 -p1 -b .xfsdir %build sed -i 's:$(prefix)/lib:$(prefix)/%{_lib}:g' nih{,-dbus}/Makefile.am autoreconf -i --force %configure --disable-static --disable-rpath --libdir=/%{_lib} sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' mkdir -p $RPM_BUILD_ROOT%{_libdir}/pkgconfig %check #some tests fail in koji while pass in mock and local build #to run make check use "--with check" %if %{?_with_check:1}%{!?_with_check:0} make check %endif %ldconfig_scriptlets %files %doc README %doc AUTHORS %doc ChangeLog %doc COPYING /%{_lib}/*.so.* %files devel %doc HACKING %doc TODO %{_mandir}/man1/nih-dbus-tool.1.gz %{_bindir}/nih-dbus-tool %{_includedir}/* /%{_lib}/*.so %{_libdir}/pkgconfig/* %{_prefix}/share/aclocal/libnih.m4 %changelog * Wed Jan 29 2020 Fedora Release Engineering - 1.0.2-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jul 25 2019 Fedora Release Engineering - 1.0.2-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Feb 01 2019 Fedora Release Engineering - 1.0.2-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 1.0.2-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Feb 07 2018 Fedora Release Engineering - 1.0.2-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Aug 03 2017 Fedora Release Engineering - 1.0.2-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 1.0.2-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 1.0.2-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 04 2016 Fedora Release Engineering - 1.0.2-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 1.0.2-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun Aug 17 2014 Fedora Release Engineering - 1.0.2-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 1.0.2-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Aug 03 2013 Fedora Release Engineering - 1.0.2-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Fedora Release Engineering - 1.0.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Thu Jul 19 2012 Fedora Release Engineering - 1.0.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Jan 13 2012 Fedora Release Engineering - 1.0.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Mon Nov 07 2011 Petr Lautrbach 1.0.2-5 - define __filter_GLIBC_PRIVATE 1 (#731815) * Tue Feb 08 2011 Fedora Release Engineering - 1.0.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Thu Nov 11 2010 Petr Lautrbach 1.0.2-3 - don't use dirent.d_type (#562815) * Thu Jun 24 2010 Casey Dahlin 1.0.2-2 - Require gettext-autopoint, which is no longer part of gettext in Fedora * Thu Jun 24 2010 Casey Dahlin 1.0.2-1 - Update to 1.0.2 * Fri Feb 26 2010 Petr Lautrbach 1.0.1-6 - Add "make check" with "--with check" option * Fri Feb 19 2010 Casey Dahlin - 1.0.1-5 - Remove libtool patch as it is no longer necessary * Wed Feb 10 2010 Casey Dahlin - 1.0.1-4 - Fix explicit path issue - Fix unused shlib dependency issue * Sun Feb 07 2010 Casey Dahlin - 1.0.1-3 - Require pkgconfig for -devel - Fill out buildrequires * Sat Feb 06 2010 Casey Dahlin - 1.0.1-2 - Move library to /lib * Fri Feb 05 2010 Casey Dahlin - 1.0.1-1 - Initial packaging