File dynamite.spec of Package dynamite

#
# spec file for package dynamite (Version 0.1.1)
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#

%define major 0
%define libname libdynamite

Name:           dynamite
Version:        0.1.1
Release:        1
License:        MIT
Summary:        PKWARE Data Compression decompressor tool
Url:            http://www.synce.org/
Group:          Productivity/Archiving/Compression
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

BuildRequires:  pkg-config

Source0:        %{libname}-%{version}.tar.bz2

%description
Dynamite is a tool and library for decompressing data compressed with PKWARE Data Compression Library and it was
created from the specification provided by a post in the comp.compression newsgroup. This contains the dynamite
binary.

%package -n %{libname}%{major}
Summary:        PKWARE Data Compression decompressor shared library
Group:          System/Libraries
Suggests:       %{name}
Provides:       %{libname}
Obsoletes:      %{libname} < %{version}

%description -n %{libname}%{major}
Dynamite is a tool and library for decompressing data compressed with PKWARE Data Compression Library and it was
created from the specification provided by a post in the comp.compression newsgroup. This contains the shared
library.

%package -n %{libname}-devel
Summary:        Header files, libraries and development documentation for %{libname}
Group:          Development/Libraries/C and C++
Requires:       %{libname} = %{version}

%description -n %{libname}-devel
This package contains the header files, static libraries and development
documentation for %{libname}. If you like to develop programs using %{libname},
you will need to install %{libname}-devel.

%prep
%setup -q -n %{libname}-%{version}

%build
%configure --disable-static --disable-rpath
make %{?_smp_mflags}

%install
%{?make_install} %{!?make_install:%makeinstall}
rm -f %{buildroot}%{_libdir}/*.{la,a}

%clean
rm -rf %{buildroot}

%post -n %{libname}%{major} -p /sbin/ldconfig
%postun -n %{libname}%{major} -p /sbin/ldconfig

%files -n %{libname}%{major}
%defattr(-,root,root)
%{_libdir}/%{libname}.so.0
%{_libdir}/%{libname}.so.0.0.0

%files
%defattr(-,root,root)
%doc LICENSE ChangeLog
%{_mandir}/*/%{name}.*.gz
%{_bindir}/%{name}

%files -n %{libname}-devel
%defattr(-,root,root)
%{_includedir}/%{libname}.h
%{_libdir}/%{libname}.so
%{_libdir}/pkgconfig/%{libname}.pc

%changelog
openSUSE Build Service is sponsored by