Dr. Werner Fink 2013-02-13 08:06:32 +00:00 committed by Git OBS Bridge
parent b78de79afd
commit 9293429ba4
2 changed files with 14 additions and 6 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Feb 13 08:05:35 UTC 2013 - werner@suse.de
- Use %libname macro to be consistent throughout the spec file
-------------------------------------------------------------------
Tue Feb 5 18:48:08 UTC 2013 - p.drouand@gmail.com

View File

@ -16,6 +16,9 @@
#
%define somajor 13
%define libname libarchive%{somajor}
Name: libarchive
Version: 3.1.1
Release: 0
@ -53,11 +56,11 @@ Group: Productivity/Archiving/Compression
%description -n bsdtar
This package contains the bsdtar cmdline utility.
%package -n libarchive13
%package -n %{libname}
Summary: Library to work with several different streaming archive formats
Group: Development/Libraries/C and C++
%description -n libarchive13
%description -n %{libname}
Libarchive is a programming library that can create and read several
different streaming archive formats, including most popular tar
variants and several cpio formats. It can also write shar archives and
@ -111,8 +114,8 @@ I/O. It should be very easy to add new formats, new compression
methods, or new ways of reading/writing archives.
%package -n libarchive-devel
Requires: %{libname} = %{version}
Requires: libacl-devel
Requires: libarchive12 = %{version}
Requires: libbz2-devel
Requires: zlib-devel
Summary: Development files for libarchive
@ -145,9 +148,9 @@ make check
find %{buildroot} -name '*.la' -type f -delete -print
rm "%{buildroot}%{_mandir}/man5/"{tar,cpio,mtree}.5*
%post -n libarchive13 -p /sbin/ldconfig
%post -n %{libname} -p /sbin/ldconfig
%postun -n libarchive13 -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%files -n bsdtar
%defattr(-,root,root)
@ -156,7 +159,7 @@ rm "%{buildroot}%{_mandir}/man5/"{tar,cpio,mtree}.5*
%{_mandir}/man1/*
%{_mandir}/man5/*
%files -n libarchive13
%files -n %{libname}
%defattr(-,root,root)
%doc COPYING NEWS README
%{_libdir}/libarchive.so.*