1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129
|
# $Id: libgnurdf.spec.in,v 1.3 2001/09/20 23:14:35 chipx86 Exp $
%define name @PACKAGE@
%define ver @VERSION@
%define RELEASE 1
%define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
%define prefix @prefix@
%{expand:%%define share %(if [ -d %{prefix}/share/man ]; then echo /share ; else echo %%{nil} ; fi)}
%ifos linux
%define CONFIG_FLAGS --prefix=%prefix --infodir='%{prefix}%{share}/info' --mandir='%{prefix}%{share}/man'
%else
%define CONFIG_FLAGS --prefix=%prefix
%endif
Summary: A library for parsing and processing RDF files.
Name: %name
Version: %ver
Release: %rel
Copyright: LGPL
Group: System Environment/Libraries
Source: ftp://ftp.gnupdate.org/pub/gnupdate/tarballs/%{name}-%{ver}.tar.gz
URL: http://www.gnupdate.org/
Prefix: %prefix
BuildRoot: /var/tmp/%{name}-%{version}-root
Packager: Christian Hammond <chipx86@portaldesign.net>
%description
The libgnurdf (GNUpdate RDF) library provides a simple interface for parsing
and generating RDF, the Resource Description Format.
%package devel
Summary: Headers for developing programs that use libgnurdf.
Group: Development/Libraries
Requires: %name = %{PACKAGE_VERSION}
%description devel
This package contains the header files that programmers would use to develop
programs that use the libgnurdf library.
%prep
%setup
%build
if [ ! -z "`echo -n ${RPM_OPT_FLAGS} | grep pentium`"]; then
if [ ! -z `which egcs` ]; then
CC="egcs"
else
if [ ! -z `which pgcc` ]; then
CC="pgcs"
fi
fi
CFLAGS="${RPM_OPT_FLAGS}"
else
CFLAGS="${RPM_OPT_FLAGS}"
fi
#if [ ! -f configure ]; then
CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh %{CONFIG_FLAGS}
#else
# CFLAGS="$RPM_OPT_FLAGS" ./configure %{CONFIG_FLAGS}
#fi
make
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
gzip -n -9f $RPM_BUILD_ROOT%{prefix}%{share}/info/libgnurdf.info*
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%post devel
/sbin/install-info %{prefix}%{share}/info/libgnurdf.info.gz %{prefix}%{share}/info/dir
%preun devel
if [ $1 = 0 ]; then
/sbin/install-info --delete %{prefix}%{share}/info/libgnurdf.info.gz %{prefix}%{share}/info/dir
fi
%files
%defattr(-, root, root)
%{prefix}/lib/lib*.so.*
%doc AUTHORS
%doc COPYING
%doc ChangeLog
%doc NEWS
%doc README
%doc TODO
%files devel
%defattr(-, root, root)
%doc docs/api/html
%{prefix}/bin/*
%{prefix}/lib/lib*.so
%{prefix}/lib/*.a
%{prefix}/lib/*.la
%{prefix}/include/*
%{prefix}/share/aclocal/*
%{prefix}%{share}/man/man1/*
%{prefix}%{share}/man/man3/*
%{prefix}%{share}/info/libgnurdf.info*
##########################################################################
%changelog
* Sun Sep 9 2001 Christian Hammond <chipx86@portaldesign.net>
- Bumped the version up to v0.3.0.
* Thu Jul 26 2001 Christian Hammond <chipx86@portaldesign.net>
- Bumped the version up to v0.2.3.
* Mon Jul 2 2001 Christian Hammond <chipx86@portaldesign.net>
- Bumped the version up to v0.2.2.
* Fri Jun 1 2001 Christian Hammond <chipx86@portaldesign.net>
- Fixed this up with better documentation.
- Bumped the version up to v0.2.1.
* Sat Aug 5 2000 Christian Hammond <chipx86@portaldesign.net>
- Created the first version of this libgnurdf.spec
|