]> git.pld-linux.org Git - packages/conflib.git/blobdiff - conflib.spec
- new {un}registering procedure for info pages with using
[packages/conflib.git] / conflib.spec
index 6f52fabebcfccc7b229484c9f322dcbe1a07dc3b..df0e357fe777a24cc2648a50f0d0d503e1fcac57 100644 (file)
@@ -5,18 +5,19 @@ Version:      0.4.5
 Release:       1
 Copyright:     GPL
 Group:         Libraries
-Source:                ftp://ftp.ohse.de/uwe/releases/conflib-0.4.5.tar.gz
+Source:                ftp://ftp.ohse.de/uwe/releases/%{name}-%{version}.tar.gz
+Patch:         conflib-info.patch
 Buildroot:     /tmp/%{name}-%{version}-root
-Prereq:                /sbin/install-info /sbin/ldconfig
 
 %description 
 A C language library for reading configuration files.
 
 %package devel
-Summary: file for developing programs that use the conflib library
-Group: Development/Libraries
-Requires: conflib = %{PACKAGE_VERSION}
-Summary(de): Dateien zum Entwickeln von Programmen mit der conflib-Library
+Summary:       file for developing programs that use the conflib library
+Summary(de):   Dateien zum Entwickeln von Programmen mit der conflib-Library
+Group:         Development/Libraries
+Requires:      %{name} = %{version}
+Prereq:                /usr/sbin/fix-info-dir
 
 %description devel
 This library makes it relativly easy to read configuration files (one or
@@ -24,46 +25,60 @@ more), or parts of them. It supports a lot of different data types and
 some types of text interpretations, including \-escapes, ~user, $HOME
 and conditional expansions.
 
+%package static
+Summary:       file for developing programs that use the conflib library
+Summary(de):   Dateien zum Entwickeln von Programmen mit der conflib-Library
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}
+
+%description static
+This library makes it relativly easy to read configuration files (one or
+more), or parts of them. It supports a lot of different data types and
+some types of text interpretations, including \-escapes, ~user, $HOME
+and conditional expansions.
+
 %prep
 %setup -q
+%patch -p1
 
 %build
-%GNUconfigure
+LDFLAGS="-s"; export LDFLAGS
+%configure
 make
 
 %install
 rm -rf $RPM_BUILD_ROOT
 make install DESTDIR=$RPM_BUILD_ROOT
 
+strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*
+
 gzip -9nf $RPM_BUILD_ROOT%{_infodir}/*info* \
        README NEWS ChangeLog
 
-#      $RPM_BUILD_ROOT%{_mandir}/man*/* \
-
-%post
-/sbin/ldconfig
-/sbin/install-info %{_infodir}/conflib.info.gz %{_infodir}/dir --entry="* Conflib: (conflib.info).         Configuration File Handling."
-
+%post   -p /sbin/ldconfig
 %postun -p /sbin/ldconfig
 
-%preun
-if [ $1 = 0 ]; then
-   /sbin/install-info --delete %{_infodir}/history.info.gz %{_infodir}/dir --entry="* Conflib: (conflib.info).         Configuration File Handling."
-readline."
-fi
+%post devel
+/usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+
+%preun devel
+/usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-#%{_mandir}/*/*
-%{_infodir}/*info*
-%attr(755,root,root) %{_libdir}/lib*.so.*
+%attr(755,root,root) %{_libdir}/lib*.so.*.*
 
 %files devel
 %defattr(644,root,root,755)
 %doc README.gz NEWS.gz ChangeLog.gz
 %{_includedir}/*.h
+%attr(755,root,root) %{_libdir}/lib*.so
+%attr(755,root,root) %{_libdir}/lib*.la
+%{_infodir}/*info*
+
+%files static
+%defattr(644,root,root,755)
 %{_libdir}/lib*.a
-%{_libdir}/lib*.so
This page took 0.115067 seconds and 4 git commands to generate.