]> git.pld-linux.org Git - packages/elfutils.git/blobdiff - elfutils.spec
- added working Source0, thanks for plikoskop.pl :*,
[packages/elfutils.git] / elfutils.spec
index 898bf42c53eb7dcf3de9583a47ffb4bfcc330189..ea6c6d1a31ff3fe6771d4a5c269c77d8a2c415d6 100644 (file)
@@ -2,14 +2,19 @@ Summary:      A collection of utilities and DSOs to handle compiled objects
 Summary(pl):   Zestaw narzêdzi i bibliotek do obs³ugi skompilowanych obiektów
 Name:          elfutils
 Version:       0.76
-Release:       7
+Release:       8
 License:       GPL
 Group:         Development/Tools
-Source0:       %{name}-%{version}.tar.gz
+Source0:       ftp://sunsite.icm.edu.pl:21/vol/rzm7/linux-sunsite/distributions/gentoo/distfiles/%{name}-%{version}.tar.gz
+# Source0-md5: 51adf608642cd5fd6a4e3f25545b3c42
+Patch0:                %{name}-pl.po.patch
 #URL:          file://home/devel/drepper
+BuildRequires: autoconf >= 2.54
+BuildRequires: automake >= 1.7
 BuildRequires: gcc >= 3.2
-BuildRequires: sharutils
+BuildRequires: gettext-devel
 BuildRequires:  libltdl-devel
+BuildRequires: sharutils
 Requires:      elfutils-libelf = %{version}-%{release}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -62,7 +67,7 @@ udost
 Summary:       Library to read and write ELF files
 Summary(pl):   Biblioteki do odczytu i zapisu plików ELF
 Group:         Libraries
-Obsoletes:     libelf
+#Obsoletes:    libelf
 
 %description libelf
 The elfutils-libelf package provides a DSO which allows reading and
@@ -103,8 +108,10 @@ programowalny interfejs asemblera.
 
 %prep
 %setup -q
+%patch -p1
 
 %build
+%{__gettextize}
 %{__aclocal}
 %{__autoheader}
 %{__automake}
@@ -113,18 +120,27 @@ programowalny interfejs asemblera.
        --program-prefix=%{_programprefix} \
        --enable-shared
 
+%{__make}
+
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d ${RPM_BUILD_ROOT}%{_prefix}
+install -d $RPM_BUILD_ROOT%{_prefix}
 
+# *OBJEXT must be passed to workaround problem with messed gettext,
+# which doesn't like *-po dir names
 %{__make} install \
-       DESTDIR=$RPM_BUILD_ROOT
+       DESTDIR=$RPM_BUILD_ROOT \
+       CATOBJEXT=.gmo INSTOBJEXT=.mo
 
-chmod +x ${RPM_BUILD_ROOT}%{_prefix}/%{_lib}/lib*.so*
-chmod +x ${RPM_BUILD_ROOT}%{_prefix}/%{_lib}/elfutils/lib*.so*
+chmod +x $RPM_BUILD_ROOT%{_prefix}/%{_lib}/lib*.so*
+chmod +x $RPM_BUILD_ROOT%{_prefix}/%{_lib}/elfutils/lib*.so*
 
-#%%check
-#make check
+%find_lang libelf
+%find_lang libasm
+%find_lang libdwarf
+%find_lang libebl
+%find_lang %{name}
+cat libasm.lang libdwarf.lang libebl.lang >> %{name}.lang
 
 %clean
 rm -rf ${RPM_BUILD_ROOT}
@@ -135,7 +151,7 @@ rm -rf ${RPM_BUILD_ROOT}
 %post  libelf -p /sbin/ldconfig
 %postun        libelf -p /sbin/ldconfig
 
-%files
+%files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc README TODO
 %attr(755,root,root) %{_bindir}/*
@@ -151,7 +167,7 @@ rm -rf ${RPM_BUILD_ROOT}
 %{_libdir}/lib*.so
 %exclude %{_libdir}/lib*-*.so
 
-%files libelf
+%files libelf -f libelf.lang
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libelf-*.so
 
This page took 0.091784 seconds and 4 git commands to generate.