83 lines
2.0 KiB
RPMSpec
83 lines
2.0 KiB
RPMSpec
Summary: POSIX regexp functions
|
|
Name: librx
|
|
Version: 1.5
|
|
Release: 1
|
|
License: GPL
|
|
URL: http://www.gnu.org/software/rx/rx.html
|
|
Group: Applications/Text
|
|
Source0: ftp://ftp.gnu.org/gnu/rx/rx-%{version}.tar.bz2
|
|
Patch0: rx-1.5-shared.patch
|
|
Patch1: rx-1.5-texinfo.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
%description
|
|
Rx is, among other things, an implementation of the interface
|
|
specified by POSIX for programming with regular expressions. Some
|
|
other implementations are GNU regex.c and Henry Spencer's regex
|
|
library.
|
|
|
|
%package devel
|
|
Summary: POSIX regexp functions, developers library
|
|
Group: Development/Libraries
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
%description devel
|
|
Rx is, among other things, an implementation of the interface
|
|
specified by POSIX for programming with regular expressions. Some
|
|
other implementations are GNU regex.c and Henry Spencer's regex
|
|
library.
|
|
|
|
This package contains files needed for development with librx.
|
|
|
|
%prep
|
|
%setup -q -n rx-%{version}
|
|
%patch0 -p1
|
|
%patch1 -p1 -b .texipatch
|
|
|
|
%build
|
|
%configure
|
|
make %{?_smp_mflags}
|
|
make doc/rx.info
|
|
|
|
%install
|
|
rm -rf ${RPM_BUILD_ROOT}
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_infodir}
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_libdir}
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_includedir}
|
|
make install DESTDIR=${RPM_BUILD_ROOT}
|
|
install -m 644 doc/rx.info ${RPM_BUILD_ROOT}%{_infodir}
|
|
rm -rf ${RPM_BUILD_ROOT}%{_libdir}/librx.la
|
|
|
|
%clean
|
|
rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%post devel
|
|
/sbin/install-info %{_infodir}/rx.info \
|
|
%{_infodir}/dir 2>/dev/null || :
|
|
|
|
%postun devel
|
|
if [ "$1" = 0 ]; then
|
|
/sbin/install-info --delete %{_infodir}/rx.info \
|
|
%{_infodir}/dir 2>/dev/null || :
|
|
fi
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/*.so.*
|
|
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%doc ANNOUNCE BUILDING COOKOFF rx/ChangeLog
|
|
%{_includedir}/*
|
|
%{_infodir}/*
|
|
%{_libdir}/*.so
|
|
%{_libdir}/*.a
|
|
|
|
%changelog
|
|
* Sat Apr 23 2005 Tom "spot" Callaway <tcallawa@redhat.com> 1.5-1
|
|
- new package, based on Alexey Voinov's package from AltLinux
|