source: projects/specs/trunk/lib/libn/libnih/libnih-vl.spec @ 5563

Revision 5563, 3.3 KB checked in by daisuke, 12 years ago (diff)

update to 1.0.3

Line 
1Name:           libnih
2Version:        1.0.3
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
24Distribution: Vine Linux
25Vendor: Project Vine
26Packager: daisuke
27
28%description
29libnih is a small library for C application development containing functions
30that, despite its name, are not implemented elsewhere in the standard library
31set.
32
33libnih is roughly equivalent to other C libraries such as glib, except that its
34focus is on a small size and intended for applications that sit very low in the
35software stack, especially outside of /usr.
36
37
38%package        devel
39Summary:        Development files for %{name}
40Group:          Development/Libraries
41Requires:       %{name} = %{version}-%{release}
42Requires:       pkgconfig
43
44%description    devel
45The %{name}-devel package contains libraries and header files for
46developing applications that use %{name}.
47
48
49%prep
50%setup -q
51
52
53%build
54sed -i 's:$(prefix)/lib:$(prefix)/%{_lib}:g' nih{,-dbus}/Makefile.am
55autoreconf -i --force
56%configure --disable-static --disable-rpath --libdir=/%{_lib}
57sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
58make %{?_smp_mflags}
59
60
61%install
62rm -rf $RPM_BUILD_ROOT
63make install DESTDIR=$RPM_BUILD_ROOT
64find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
65mkdir -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
77rm -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
Note: See TracBrowser for help on using the repository browser.