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

Revision 8587, 3.5 KB checked in by daisuke, 10 years ago (diff)

libnih: apply ubuntu patch (new upstart need this)

Line 
1Name:           libnih
2Version:        1.0.3
3Release:        2%{?_dist_release}
4Summary:        Lightweight application development library
5
6Group:          System Environment/Libraries
7License:        GPLv2
8URL:            https://launchpad.net/libnih
9
10Source0:        http://launchpad.net/libnih/1.0/%{version}/+download/%{name}-%{version}.tar.gz
11
12Patch0:         libnih_1.0.3-4ubuntu26.diff.gz
13
14BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
15
16BuildRequires:  autoconf >= 2.62
17BuildRequires:  gettext >= 0.17
18BuildRequires:  automake >= 1.11
19BuildRequires:  libtool >= 2.2.4
20BuildRequires:  dbus-devel >= 1.2.16
21BuildRequires:  expat >= 2.0.0
22BuildRequires:  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
28Distribution: Vine Linux
29Vendor: Project Vine
30Packager: daisuke
31
32%description
33libnih is a small library for C application development containing functions
34that, despite its name, are not implemented elsewhere in the standard library
35set.
36
37libnih is roughly equivalent to other C libraries such as glib, except that its
38focus is on a small size and intended for applications that sit very low in the
39software stack, especially outside of /usr.
40
41
42%package        devel
43Summary:        Development files for %{name}
44Group:          Development/Libraries
45Requires:       %{name} = %{version}-%{release}
46Requires:       pkgconfig
47
48%description    devel
49The %{name}-devel package contains libraries and header files for
50developing applications that use %{name}.
51
52
53%prep
54%setup -q
55%patch0 -p1
56
57%build
58sed -i 's:$(prefix)/lib:$(prefix)/%{_lib}:g' nih{,-dbus}/Makefile.am
59autoreconf -i --force
60%configure --disable-static --disable-rpath --libdir=/%{_lib}
61sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
62make %{?_smp_mflags}
63
64
65%install
66rm -rf $RPM_BUILD_ROOT
67make install DESTDIR=$RPM_BUILD_ROOT
68find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
69mkdir -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
81rm -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
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
114- new upstream release
115
116* Sat Feb 05 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.2-1
117- update to 1.0.2
118
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
Note: See TracBrowser for help on using the repository browser.