%global commit 088389dc53ffb3897a80822533c047aa46b55af7 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: tc-play Version: 1.0.0rc Release: 1%{?dist} Summary: Free and simple TrueCrypt Implementation based on dm-crypt License: BSD URL: https://github.com/bwalex/%{name} Source0: https://github.com/bwalex/%{name}/archive/%{commit}/%{name}-%{commit}.tar.gz Requires: device-mapper-devel Requires: libuuid-devel Requires: libgcrypt-devel %description tcplay is a free (BSD-licensed), pretty much fully featured (including multiple keyfiles, cipher cascades, etc) and stable TrueCrypt implementation. %package devel Summary: Ddevelopment files for libeatymdata Group: Development/Libraries Requires: %{name}%{?_isa} = %{version}-%{release} %description devel This package contains the libraries needed to develop applications that use tc-play %prep %setup -qn %{name}-%{commit} make -f Makefile.classic SYSTEM=linux %{?_smp_mflags} %install mkdir -p %{buildroot}%{_sbindir} install -pm 0755 tcplay %{buildroot}%{_sbindir} mkdir -p %{buildroot}%{_libdir} install -pm 0755 *.so.*.* %{buildroot}%{_libdir} mkdir -p %{buildroot}%{_libdir} install -pm 0755 *.so %{buildroot}%{_libdir} mkdir -p %{buildroot}%{_datadir}/man/en/man8 install -pm 0755 tcplay.8 %{buildroot}%{_datadir}/man/en/man8 mkdir -p %{buildroot}%{_datadir}/man/en/man3 install -pm 0755 tcplay.3 %{buildroot}%{_datadir}/man/en/man3 %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %post -n %{name}-devel -p /sbin/ldconfig %postun -n %{name}-devel -p /sbin/ldconfig %files %doc README.md LICENSE %{_sbindir}/tcplay %{_libdir}/*.so.* %doc %{_datadir}/man/en/man8/* %{_datadir}/man/en/man3/* %files devel %{_libdir}/*.so %changelog * Wed Jun 4 2014 villadalmine@gmail.com - Initial Package