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