source: projects/specs/branches/6/lib/libn/libnih/libnih-vl.spec @ 2636

Revision 2636, 3.2 KB checked in by daisuke, 13 years ago (diff)

libnih: update to 1.0.2

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