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.
|
Rev | Line | |
---|
[15591] | 1 | %define ver @VERSION@ |
---|
| 2 | %define prefix /usr |
---|
| 3 | %define RELEASE 1 |
---|
| 4 | %define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE} |
---|
| 5 | |
---|
| 6 | Summary: GNOME http client library |
---|
| 7 | Name: libghttp |
---|
| 8 | Version: %ver |
---|
| 9 | Release: %rel |
---|
| 10 | Copyright: LGPL |
---|
| 11 | Group: X11/gnome |
---|
| 12 | Source: ftp://ftp.gnome.org/pub/GNOME/libghttp/libghttp-%{ver}.tar.gz |
---|
| 13 | BuildRoot: /var/tmp/ghttp-%{PACKAGE_VERSION}-root |
---|
| 14 | Docdir: %{prefix}/doc |
---|
| 15 | |
---|
| 16 | Packager: Christopher Blizzard <blizzard@redhat.com> |
---|
| 17 | URL: http://www.gnome.org/ |
---|
| 18 | |
---|
| 19 | %description |
---|
| 20 | Library for making HTTP 1.1 requests. |
---|
| 21 | |
---|
| 22 | %package devel |
---|
| 23 | Summary: GNOME http client development |
---|
| 24 | Group: X11/gnome |
---|
| 25 | Requires: libghttp |
---|
| 26 | |
---|
| 27 | %description devel |
---|
| 28 | Libraries and includes files you can use for libghttp development |
---|
| 29 | |
---|
| 30 | %changelog |
---|
| 31 | |
---|
| 32 | %prep |
---|
| 33 | %setup |
---|
| 34 | if [ ! -f configure ]; then |
---|
| 35 | CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%prefix |
---|
| 36 | else |
---|
| 37 | CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix |
---|
| 38 | fi |
---|
| 39 | |
---|
| 40 | if [ "$SMP" != "" ]; then |
---|
| 41 | (make "MAKE=make -k -j $SMP"; exit 0) |
---|
| 42 | make |
---|
| 43 | else |
---|
| 44 | make |
---|
| 45 | fi |
---|
| 46 | |
---|
| 47 | %install |
---|
| 48 | rm -rf $RPM_BUILD_ROOT |
---|
| 49 | |
---|
| 50 | make prefix=$RPM_BUILD_ROOT%{prefix} install |
---|
| 51 | |
---|
| 52 | %clean |
---|
| 53 | rm -rf $RPM_BUILD_ROOT |
---|
| 54 | |
---|
| 55 | %post |
---|
| 56 | if ! grep %{prefix}/lib /etc/ld.so.conf > /dev/null ; then |
---|
| 57 | echo "%{prefix}/lib" >> /etc/ld.so.conf |
---|
| 58 | fi |
---|
| 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.