1# $Id: libcomprex.spec.in,v 1.13 2003/03/06 06:09:26 chipx86 Exp $ 2 3%define name @PACKAGE@ 4%define ver @VERSION@ 5%define RELEASE 1 6%define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE} 7%define prefix /usr 8%{expand:%%define share %(if [ -d %{prefix}/share/man ]; then echo /share ; else echo %%{nil} ; fi)} 9%ifos linux 10%define CONFIG_FLAGS --prefix=%prefix --infodir='%{prefix}%{share}/info' --mandir='%{prefix}%{share}/man' 11%else 12%define CONFIG_FLAGS --prefix=%prefix 13%endif 14 15Summary: GNUpdate (de)compression library. 16Name: %name 17Version: %ver 18Release: %rel 19License: LGPL 20Group: Development/Libraries 21Source: http://prdownloads.sourceforge.net/gnupdate/%{name}-%{ver}.tar.gz 22URL: http://www.gnupdate.org/ 23Prefix: %prefix 24BuildRoot: %{_tmppath}/%{name}-%{ver}-root 25Packager: Christian Hammond <chipx86@gnupdate.org> 26 27%description 28The libcomprex library transparently handles automatic compression and 29decompression of files. The API is similar to C's built-in file access 30functions, which provides a smooth transition to libcomprex. libcomprex 31can also open uncompressed files, making it a good replacement for the 32native file access functions. 33 34 35%package devel 36Summary: Headers for developing programs that use libcomprex. 37Group: Development/Libraries 38Requires: %name = %{PACKAGE_VERSION} 39 40%description devel 41This package contains the header files that programmers would use to 42develop prorgams that use the libcomprex library. 43 44%prep 45%setup 46 47%build 48if [ ! -z "`echo -n ${RPM_OPT_FLAGS} | grep pentium`"]; then 49 if [ ! -z `which egcs` ]; then 50 CCC="egcs" 51 else 52 if [ ! -z `which pgcc` ]; then 53 CC="pgcs" 54 fi 55 fi 56 CFLAGS="${RPM_OPT_FLAGS}" 57else 58 CFLAGS="${RPM_OPT_FLAGS}" 59fi 60 61#if [ ! -f configure ]; then 62 CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh %{CONFIG_FLAGS} 63#else 64# CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix 65#fi 66 67make 68 69%install 70rm -rf $RPM_BUILD_ROOT 71make DESTDIR=$RPM_BUILD_ROOT install 72 73%clean 74rm -rf $RPM_BUILD_ROOT 75 76%post -p /sbin/ldconfig 77 78%postun -p /sbin/ldconfig 79 80%files 81%defattr(-, root, root) 82 83%{_libdir}/*.so.* 84%{_libdir}/comprex/archive/*.so 85%{_libdir}/comprex/archive/*.a 86%{_libdir}/comprex/archive/*.la 87%{_libdir}/comprex/scheme/*.so 88%{_libdir}/comprex/scheme/*.a 89%{_libdir}/comprex/scheme/*.la 90%{_datadir}/locale/*/*/* 91 92 93%doc AUTHORS COPYING ChangeLog NEWS README TODO 94 95%files devel 96%defattr(-, root, root) 97 98%doc docs/api/html 99 100%{_bindir}/* 101%{_libdir}/*.so 102%{_libdir}/*.a 103%{_libdir}/*.la 104%{_libdir}/pkgconfig/libcomprex.pc 105%{_includedir}/* 106%{_datadir}/aclocal/* 107%{_mandir}/man1/* 108%{_mandir}/man3/* 109 110########################################################################## 111 112%changelog 113* Wed Jul 10 2002 Christian Hammond <chipx86@gnupdate.org> 114- Bumped the version up to v0.3.3. 115 116* Mon Jun 3 2002 Christian Hammond <chipx86@gnupdate.org> 117- Bumped the version up to v0.3.2. 118 119* Thu May 30 2002 Christian Hammond <chipx86@gnupdate.org> 120- Added the archive and scheme modules. 121- Fixed up the paths to be more compliant with RPM's variables. 122 123* Fri May 11 2002 Christian Hammond <chipx86@gnupdate.org> 124- Bumped the version up to v0.3.1. 125- Fixed the source tarball link. 126- Fixed the BuildRoot. 127 128* Fri May 10 2002 Christian Hammond <chipx86@gnupdate.org> 129- Bumped the release up to v0.3.0. 130 131* Wed Dec 19 2001 Christian Hammond <chipx86@gnupdate.org> 132- Updated my e-mail address. 133 134* Thu Aug 23 2001 Christian Hammond <chipx86@portaldesign.net> 135- Created the first version of libcomprex.spec. 136 137