X-Git-Url: http://git.pld-linux.org/?p=packages%2Fconflib.git;a=blobdiff_plain;f=conflib.spec;h=c73003bae0ac6da87f28a82282da32119a1ffddf;hp=2101c55b9956e8bdd7697c7726372b50b62f7c43;hb=0fe03e786d424937017cc7898bc27b73ee296d1e;hpb=931ca68388de64f06549e1c3a364abdb983e428a diff --git a/conflib.spec b/conflib.spec index 2101c55..c73003b 100644 --- a/conflib.spec +++ b/conflib.spec @@ -1,85 +1,111 @@ -Summary: configuration file library -Summary(de): Library zum Lesen von Konfigurationsdateien +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: 2 -Copyright: GPL +Release: 7 +License: GPL Group: Libraries -Source: ftp://ftp.ohse.de/uwe/releases/%{name}-%{version}.tar.gz -Patch: conflib-info.patch +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 +%description A C language library for reading configuration files. -%description -l pl -Biblioteka C s³u¿±ca do odczytywania plików konfiguracyjnych. +%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 -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} -Prereq: /usr/sbin/fix-info-dir +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: file for developing programs that use the conflib library -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): 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} +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. +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 -q -%patch -p1 +%patch0 -p1 +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 %build -LDFLAGS="-s"; export LDFLAGS +%{__libtoolize} +%{__aclocal} +%{__autoconf} +%{__autoheader} +%{__automake} %configure -make +%{__make} %install rm -rf $RPM_BUILD_ROOT -make install DESTDIR=$RPM_BUILD_ROOT -strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.* +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT -gzip -9nf $RPM_BUILD_ROOT%{_infodir}/*info* \ - README NEWS ChangeLog +%clean +rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig -%post devel -/usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 +%post devel -p /sbin/postshell +-/usr/sbin/fix-info-dir -c %{_infodir} -%postun devel -/usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 - -%clean -rm -rf $RPM_BUILD_ROOT +%postun devel -p /sbin/postshell +-/usr/sbin/fix-info-dir -c %{_infodir} %files %defattr(644,root,root,755) +%doc AUTHORS ChangeLog NEWS README TODO %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 +%{_libdir}/lib*.la +%{_includedir}/*.h %{_infodir}/*info* %files static