mhash/mhash.spec

75 lines
2.3 KiB
RPMSpec
Raw Normal View History

Name: mhash
Version: 0.9.9.9
Release: 1mamba
Summary: A library which provides a uniform interface to a large number of hash algorithms
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://mhash.sourceforge.net/
Source: http://downloads.sourceforge.net/project/mhash/mhash/%{version}/mhash-%{version}.tar.bz2
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
## AUTOBUILDREQ-END
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Mhash is a free (under GNU Lesser GPL) library which provides a uniform interface to a large number of hash algorithms. These algorithms can be used to compute checksums, message digests, and other signatures.
%package -n lib%{name}
Group: System/Libraries
Summary: A library which provides a uniform interface to a large number of hash algorithms
%description -n lib%{name}
Mhash is a free (under GNU Lesser GPL) library which provides a uniform interface to a large number of hash algorithms. These algorithms can be used to compute checksums, message digests, and other signatures.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q
%build
%configure
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libmhash.so.*
%doc AUTHORS COPYING THANKS
%files -n lib%{name}-devel
%defattr(-,root,root)
%{_includedir}/mhash.h
%dir %{_includedir}/mutils
%{_includedir}/mutils/*.h
%{_libdir}/libmhash.a
%{_libdir}/libmhash.la
%{_libdir}/libmhash.so
%{_mandir}/man3/mhash.3.gz
%doc ChangeLog NEWS README TODO
%changelog
* Sat Dec 08 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.9.9-1mamba
- package created by silvan using the webbuild interface