]> git.pld-linux.org Git - packages/conflib.git/blobdiff - conflib.spec
- invoke fix-info-dir via /sbin/postshell where possible to avoid extra /bin/sh dep
[packages/conflib.git] / conflib.spec
index ccc2e32e76a3f6af6aa8bb4f59dceb9c6e925d17..c73003bae0ac6da87f28a82282da32119a1ffddf 100644 (file)
-Summary: configuration file library
-Name: conflib
-Version: 0.4.5
-Release: 0
-Copyright: GPL
-Group: Libraries
-Source: ftp://ftp.ohse.de/uwe/releases/conflib-0.4.5.tar.gz
-Buildroot: /tmp/conflib-buildroot
-Prereq: /sbin/install-info /sbin/ldconfig
-Summary(de): Library zum Lesen von Konfigurationsdateien
-
-%description 
+Summary:       Configuration file library
+Summary(pl.UTF-8):     Biblioteka plików konfiguracyjnych
+Summary(de.UTF-8):     Library zum Lesen von Konfigurationsdateien
+Name:          conflib
+Version:       0.4.5
+Release:       7
+License:       GPL
+Group:         Libraries
+Source0:       ftp://ftp.ohse.de/uwe/releases/%{name}-%{version}.tar.gz
+# Source0-md5: 301f140d0fbd0b5a225419c101c4c9d1
+Patch0:                %{name}-info.patch
+Patch1:                %{name}-cl_build_stanza_array-fix.patch
+Patch2:                %{name}-ac25x.patch
+Patch3:                %{name}-locale.patch
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: libtool
+BuildRequires: texinfo
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
 A C language library for reading configuration files.
 
+%description -l pl.UTF-8
+Biblioteka C służąca do odczytywania plików konfiguracyjnych.
+
 %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:       Files for developing programs that use the conflib library
+Summary(pl.UTF-8):     Pliki do tworzenia programów wykorzystujących bibliotekę conflib
+Summary(de.UTF-8):     Dateien zum Entwickeln von Programmen mit der conflib-Library
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
 
 %description devel
-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.
+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.
+
+%description devel -l pl.UTF-8
+Ta biblioteka pozwala na stosunkowo proste czytanie plików
+konfiguracyjnych lub ich części. Wspiera wiele różnych typów danych
+oraz niektóre typy interpretacji tekstu, np. \-escapes, ~user, $HOME
+oraz warunkowe rozwijanie.
+
+%package static
+Summary:       Files for developing programs that use the conflib library
+Summary(pl.UTF-8):     Statyczne pliki do tworzenia programów wykorzystujących bibliotekę conflib
+Summary(de.UTF-8):     Dateien zum Entwickeln von Programmen mit der conflib-Library
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+
+%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.
+
+%description static -l pl.UTF-8
+Ta biblioteka pozwala na stosunkowo proste czytanie plików
+konfiguracyjnych lub ich części. Wspiera wiele różnych typów danych
+oraz niektóre typy interpretacji tekstu, np. \-escapes, ~user, $HOME
+oraz warunkowe rozwijanie. Ten pakiet zawiera pliki statyczne.
 
 %prep
-%setup 
+%setup -q
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
 
 %build
-CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr
-make
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-make install prefix=$RPM_BUILD_ROOT/usr
-# Uh ... too ugly to describe? Do the people at redhat _really_
-# update the specs files manually? Every time?
-# ln -sf libconf.so.5.0.1 $RPM_BUILD_ROOT/usr/lib/libconf.so
-(cd $RPM_BUILD_ROOT/usr/lib/ ; ln -fs `echo libconf.*.*.*` libconf.so )
 
-gzip -nf9 $RPM_BUILD_ROOT/usr/info/*info*
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
-%post
-/sbin/ldconfig
-/sbin/install-info /usr/info/conflib.info.gz /usr/info/dir --entry="* Conflib: (conflib.info).         Configuration File Handling."
+%clean
+rm -rf $RPM_BUILD_ROOT
 
+%post   -p /sbin/ldconfig
 %postun -p /sbin/ldconfig
 
-%preun
-if [ $1 = 0 ]; then
-   /sbin/install-info --delete /usr/info/history.info.gz /usr/info/dir --entry="* Conflib: (conflib.info).         Configuration File Handling."
-readline."
-fi
+%post devel    -p      /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
 
-%clean
-rm -rf $RPM_BUILD_ROOT
+%postun devel  -p      /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
 
 %files
-#/usr/man/*/*
-/usr/info/*info*
-/usr/lib/lib*.so.*
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog NEWS README TODO
+%attr(755,root,root) %{_libdir}/lib*.so.*.*
 
 %files devel
-%doc README NEWS ChangeLog
-/usr/include/*.h
-/usr/lib/lib*.a
-/usr/lib/lib*.so
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/lib*.so
+%{_libdir}/lib*.la
+%{_includedir}/*.h
+%{_infodir}/*info*
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/lib*.a
This page took 0.064295 seconds and 4 git commands to generate.