Name: sha #Upstream will continue in the next version #with the behavior of shared libraries (specifically version 1.2) Version: 1.0.4a Release: 3%{?dist} Summary: File hashing utility License: BSD URL: http://hg.saddi.com/sha-asaddi Source0: http://www.saddi.com/software/%{name}/dist/%{name}-%{version}.tar.gz BuildRequires: pkgconfig %description file hashing utility that uses the SHA-1, SHA-256, SHA-384, & SHA-512 hash algorithms. It can be used for file integrity checking, remote file comparisons, etc. The portable algorithm implementations can be useful in other projects too %package devel Summary: Development files for sha Group: Development/Libraries Requires: %{name}%{?_isa} = %{version}-%{release} %description devel This package contains the libraries needed to develop applications that use sha %prep %setup -q %build %configure \ --disable-static sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool make %{?_smp_mflags} %install make DESTDIR=%{buildroot} INSTALL="install -p" CP="cp -p" install rm -f %{buildroot}/%{_libdir}/*.la mkdir -p %{buildroot}/%{_includedir} install -pm 644 *.h %{buildroot}/%{_includedir} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %post -n sha-devel -p /sbin/ldconfig %postun -n sha-devel -p /sbin/ldconfig %clean %files %doc README README.SHA ChangeLog %{_bindir}/sha %{_mandir}/*/* %{_libdir}/*.so.* %files devel %doc README.SHA %{_includedir}/*.h %{_libdir}/*.so %changelog * Thu Oct 04 2012 Eduardo Echeverria - 1.0.4a-3 - Add comment of the Upstream about next release with the bahaviour of shared libraries * Wed Sep 26 2012 Eduardo Echeverria - 1.0.4a-2 - Changes to match the correct architecture in the section Requires of devel package - Remove versioned libraries to the base package - Remove the c files to section doc of the devel package - Add README.SHA to section doc of the devel package * Sun Sep 23 2012 Eduardo Echeverria - 1.0.4a-1 - Initial packaging