Accepting request 155787 from Base:System
- Use %libname macro and make that file-magic obsoletes libmagic-data compare with bnc# 804323 to avoid trouble with interim package name OBS-URL: https://build.opensuse.org/request/show/155787 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/file?expand=0&rev=68
This commit is contained in:
commit
be341ffbca
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Feb 19 09:05:31 UTC 2013 - werner@suse.de
|
||||||
|
|
||||||
|
- Use %libname macro and make that file-magic obsoletes libmagic-data
|
||||||
|
compare with bnc# 804323 to avoid trouble with interim package name
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Jan 23 13:00:47 UTC 2013 - werner@suse.de
|
Wed Jan 23 13:00:47 UTC 2013 - werner@suse.de
|
||||||
|
|
||||||
|
16
file.spec
16
file.spec
@ -16,6 +16,9 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%define somajor 1
|
||||||
|
%define libname libmagic%{somajor}
|
||||||
|
|
||||||
Name: file
|
Name: file
|
||||||
BuildRequires: findutils
|
BuildRequires: findutils
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
@ -73,25 +76,26 @@ used by apsfilter to permit automatic printing of different file types.
|
|||||||
%package -n file-magic
|
%package -n file-magic
|
||||||
Summary: The magic files for libmagic to use
|
Summary: The magic files for libmagic to use
|
||||||
Group: Development/Libraries/Other
|
Group: Development/Libraries/Other
|
||||||
|
Obsoletes: libmagic-data
|
||||||
|
|
||||||
%description -n file-magic
|
%description -n file-magic
|
||||||
This package contains the basic magic files that libmagic reads and uses
|
This package contains the basic magic files that libmagic reads and uses
|
||||||
to estimate a file's type.
|
to estimate a file's type.
|
||||||
|
|
||||||
%package -n libmagic1
|
%package -n %libname
|
||||||
Summary: Library with file's functionality
|
Summary: Library with file's functionality
|
||||||
Group: Development/Libraries/Other
|
Group: Development/Libraries/Other
|
||||||
Requires: file-magic = %{version}
|
Requires: file-magic = %{version}
|
||||||
|
|
||||||
%description -n libmagic1
|
%description -n %libname
|
||||||
This library reads magic files and detects file types. Used by file command
|
This library reads magic files and detects file types. Used by file command
|
||||||
|
|
||||||
%package -n file-devel
|
%package -n file-devel
|
||||||
Summary: Include Files and Libraries mandatory for Development
|
Summary: Include Files and Libraries mandatory for Development
|
||||||
Group: Development/Libraries/Other
|
Group: Development/Libraries/Other
|
||||||
Provides: file:/usr/include/magic.h
|
Provides: file:/usr/include/magic.h
|
||||||
|
Requires: %libname = %{version}
|
||||||
Requires: glibc-devel
|
Requires: glibc-devel
|
||||||
Requires: libmagic1 = %{version}
|
|
||||||
|
|
||||||
%description -n file-devel
|
%description -n file-devel
|
||||||
This package contains all necessary include files and libraries needed
|
This package contains all necessary include files and libraries needed
|
||||||
@ -177,11 +181,11 @@ find %{buildroot}%{_bindir}/file %{_bindir}/ /%{_lib}/ %{_libdir}/ | \
|
|||||||
unset LD_LIBRARY_PATH
|
unset LD_LIBRARY_PATH
|
||||||
%{__rm} -f %{buildroot}%{_libdir}/*.la
|
%{__rm} -f %{buildroot}%{_libdir}/*.la
|
||||||
|
|
||||||
%post -n libmagic1 -p /sbin/ldconfig
|
%post -n %libname -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n libmagic1 -p /sbin/ldconfig
|
%postun -n %libname -p /sbin/ldconfig
|
||||||
|
|
||||||
%files -n libmagic1
|
%files -n %libname
|
||||||
%defattr (644,root,root,755)
|
%defattr (644,root,root,755)
|
||||||
%{_libdir}/lib*.so.*
|
%{_libdir}/lib*.so.*
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user