source: trunk/third/libghttp/libghttp.spec.in @ 15592

Revision 15592, 1.4 KB checked in by ghudson, 24 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r15591, which included commits to RCS files with non-trunk default branches.
Line 
1%define ver @VERSION@
2%define prefix /usr
3%define  RELEASE 1
4%define  rel     %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
5
6Summary: GNOME http client library
7Name: libghttp
8Version: %ver
9Release: %rel
10Copyright: LGPL
11Group: X11/gnome
12Source: ftp://ftp.gnome.org/pub/GNOME/libghttp/libghttp-%{ver}.tar.gz
13BuildRoot: /var/tmp/ghttp-%{PACKAGE_VERSION}-root
14Docdir: %{prefix}/doc
15
16Packager: Christopher Blizzard <blizzard@redhat.com>
17URL: http://www.gnome.org/
18
19%description
20Library for making HTTP 1.1 requests.
21
22%package devel
23Summary: GNOME http client development
24Group: X11/gnome
25Requires: libghttp
26
27%description devel
28Libraries and includes files you can use for libghttp development
29
30%changelog
31
32%prep
33%setup
34if [ ! -f configure ]; then
35  CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%prefix
36else
37  CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix
38fi
39
40if [ "$SMP" != "" ]; then
41  (make "MAKE=make -k -j $SMP"; exit 0)
42  make
43else
44  make
45fi
46
47%install
48rm -rf $RPM_BUILD_ROOT
49
50make prefix=$RPM_BUILD_ROOT%{prefix} install
51
52%clean
53rm -rf $RPM_BUILD_ROOT
54
55%post
56if ! grep %{prefix}/lib /etc/ld.so.conf > /dev/null ; then
57  echo "%{prefix}/lib" >> /etc/ld.so.conf
58fi
59
60/sbin/ldconfig
61
62%postun -p /sbin/ldconfig
63%files
64%defattr(-, root, root)
65
66%doc AUTHORS COPYING ChangeLog NEWS README doc/ghttp.html
67%{prefix}/lib/lib*.so*
68
69%files devel
70%defattr(-, root, root)
71
72# %{prefix}/lib/lib*.so
73%{prefix}/lib/*a
74%{prefix}/include/*
75%{prefix}/lib/ghttpConf.sh
Note: See TracBrowser for help on using the repository browser.