[911] | 1 | Name: libnih |
---|
[5563] | 2 | Version: 1.0.3 |
---|
[8587] | 3 | Release: 2%{?_dist_release} |
---|
[911] | 4 | Summary: Lightweight application development library |
---|
| 5 | |
---|
| 6 | Group: System Environment/Libraries |
---|
| 7 | License: GPLv2 |
---|
| 8 | URL: https://launchpad.net/libnih |
---|
[8587] | 9 | |
---|
[2636] | 10 | Source0: http://launchpad.net/libnih/1.0/%{version}/+download/%{name}-%{version}.tar.gz |
---|
[8587] | 11 | |
---|
| 12 | Patch0: libnih_1.0.3-4ubuntu26.diff.gz |
---|
| 13 | |
---|
[911] | 14 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 15 | |
---|
| 16 | BuildRequires: autoconf >= 2.62 |
---|
| 17 | BuildRequires: gettext >= 0.17 |
---|
| 18 | BuildRequires: automake >= 1.11 |
---|
| 19 | BuildRequires: libtool >= 2.2.4 |
---|
| 20 | BuildRequires: dbus-devel >= 1.2.16 |
---|
| 21 | BuildRequires: expat >= 2.0.0 |
---|
| 22 | BuildRequires: expat-devel >= 2.0.0 |
---|
| 23 | |
---|
| 24 | # Filter GLIBC_PRIVATE Requires: |
---|
| 25 | %define _use_internal_dependency_generator 1 |
---|
| 26 | %define _filter_GLIBC_PRIVATE 1 |
---|
| 27 | |
---|
[5563] | 28 | Distribution: Vine Linux |
---|
| 29 | Vendor: Project Vine |
---|
| 30 | Packager: daisuke |
---|
[911] | 31 | |
---|
| 32 | %description |
---|
| 33 | libnih is a small library for C application development containing functions |
---|
| 34 | that, despite its name, are not implemented elsewhere in the standard library |
---|
| 35 | set. |
---|
| 36 | |
---|
| 37 | libnih is roughly equivalent to other C libraries such as glib, except that its |
---|
| 38 | focus is on a small size and intended for applications that sit very low in the |
---|
| 39 | software stack, especially outside of /usr. |
---|
| 40 | |
---|
| 41 | |
---|
| 42 | %package devel |
---|
| 43 | Summary: Development files for %{name} |
---|
| 44 | Group: Development/Libraries |
---|
| 45 | Requires: %{name} = %{version}-%{release} |
---|
| 46 | Requires: pkgconfig |
---|
| 47 | |
---|
| 48 | %description devel |
---|
| 49 | The %{name}-devel package contains libraries and header files for |
---|
| 50 | developing applications that use %{name}. |
---|
| 51 | |
---|
| 52 | |
---|
| 53 | %prep |
---|
| 54 | %setup -q |
---|
[8587] | 55 | %patch0 -p1 |
---|
[911] | 56 | |
---|
| 57 | %build |
---|
| 58 | sed -i 's:$(prefix)/lib:$(prefix)/%{_lib}:g' nih{,-dbus}/Makefile.am |
---|
| 59 | autoreconf -i --force |
---|
| 60 | %configure --disable-static --disable-rpath --libdir=/%{_lib} |
---|
| 61 | sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool |
---|
| 62 | make %{?_smp_mflags} |
---|
| 63 | |
---|
| 64 | |
---|
| 65 | %install |
---|
| 66 | rm -rf $RPM_BUILD_ROOT |
---|
| 67 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 68 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' |
---|
| 69 | mkdir -p $RPM_BUILD_ROOT%{_libdir}/pkgconfig |
---|
| 70 | |
---|
| 71 | |
---|
| 72 | %check |
---|
| 73 | #some tests fail in koji while pass in mock and local build |
---|
| 74 | #to run make check use "--with check" |
---|
| 75 | %if %{?_with_check:1}%{!?_with_check:0} |
---|
| 76 | make check |
---|
| 77 | %endif |
---|
| 78 | |
---|
| 79 | |
---|
| 80 | %clean |
---|
| 81 | rm -rf $RPM_BUILD_ROOT |
---|
| 82 | |
---|
| 83 | |
---|
| 84 | %post -p /sbin/ldconfig |
---|
| 85 | |
---|
| 86 | %postun -p /sbin/ldconfig |
---|
| 87 | |
---|
| 88 | |
---|
| 89 | %files |
---|
| 90 | %defattr(-,root,root,-) |
---|
| 91 | %doc README |
---|
| 92 | %doc AUTHORS |
---|
| 93 | %doc ChangeLog |
---|
| 94 | %doc COPYING |
---|
| 95 | /%{_lib}/*.so.* |
---|
| 96 | |
---|
| 97 | %files devel |
---|
| 98 | %defattr(-,root,root,-) |
---|
| 99 | %doc HACKING |
---|
| 100 | %doc TODO |
---|
| 101 | %{_mandir}/man1/nih-dbus-tool.1.gz |
---|
| 102 | %{_bindir}/nih-dbus-tool |
---|
| 103 | %{_includedir}/* |
---|
| 104 | /%{_lib}/*.so |
---|
| 105 | %{_libdir}/pkgconfig/* |
---|
| 106 | %{_prefix}/share/aclocal/libnih.m4 |
---|
| 107 | |
---|
| 108 | |
---|
| 109 | %changelog |
---|
[8587] | 110 | * Sun Jun 22 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 1.0.3-2 |
---|
| 111 | - apply ubuntu patch |
---|
| 112 | |
---|
| 113 | * Thu Feb 02 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.3-1 |
---|
[5563] | 114 | - new upstream release |
---|
| 115 | |
---|
[2636] | 116 | * Sat Feb 05 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.2-1 |
---|
| 117 | - update to 1.0.2 |
---|
| 118 | |
---|
[911] | 119 | * Fri Apr 23 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.1-1 |
---|
| 120 | - initial build for Vine Linux |
---|
| 121 | |
---|
| 122 | * Fri Feb 26 2010 Petr Lautrbach <plautrba@redhat.com> 1.0.1-6 |
---|
| 123 | - Add "make check" with "--with check" option |
---|
| 124 | |
---|
| 125 | * Fri Feb 19 2010 Casey Dahlin <cdahlin@redhat.com> - 1.0.1-5 |
---|
| 126 | - Remove libtool patch as it is no longer necessary |
---|
| 127 | |
---|
| 128 | * Wed Feb 10 2010 Casey Dahlin <cdahlin@redhat.com> - 1.0.1-4 |
---|
| 129 | - Fix explicit path issue |
---|
| 130 | - Fix unused shlib dependency issue |
---|
| 131 | |
---|
| 132 | * Sun Feb 07 2010 Casey Dahlin <cdahlin@redhat.com> - 1.0.1-3 |
---|
| 133 | - Require pkgconfig for -devel |
---|
| 134 | - Fill out buildrequires |
---|
| 135 | |
---|
| 136 | * Sat Feb 06 2010 Casey Dahlin <cdahlin@redhat.com> - 1.0.1-2 |
---|
| 137 | - Move library to /lib |
---|
| 138 | |
---|
| 139 | * Fri Feb 05 2010 Casey Dahlin <cdahlin@redhat.com> - 1.0.1-1 |
---|
| 140 | - Initial packaging |
---|