Name: dumpasn1 Version: 20060622 Release: 2%{?dist} Summary: ASN.1 object dump utility Group: Development/Tools License: Public Domain URL: http://www.cs.auckland.ac.nz/~pgut001/ Source0: http://www.cs.auckland.ac.nz/~pgut001/%{name}.c Source1: http://www.cs.auckland.ac.nz/~pgut001/%{name}.cfg Patch0: http://ftp.debian.org/debian/pool/main/d/%{name}/%{name}_20030222-1.diff.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: sed >= 3.95 %description dumpasn1 is an ASN.1 object dump program that will dump data encoded using any of the ASN.1 encoding rules in a variety of user-specified formats. %prep %setup -q -c -T install -pm 644 %{SOURCE0} . %patch0 -p1 sed -i -e 's|\bgcc |\$(CC) \$(RPM_OPT_FLAGS) |' Makefile sed -i -e 's|/etc/dumpasn1/|%{_sysconfdir}/dumpasn1/|' dumpasn1.{c,1*} %build make %{?_smp_mflags} CC="%{__cc}" %install rm -rf $RPM_BUILD_ROOT install -Dpm 755 dumpasn1 $RPM_BUILD_ROOT%{_bindir}/dumpasn1 install -Dpm 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/dumpasn1/dumpasn1.cfg install -Dpm 644 dumpasn1.1 $RPM_BUILD_ROOT%{_mandir}/man1/dumpasn1.1 %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc debian/README.Debian debian/copyright %config(noreplace) %{_sysconfdir}/dumpasn1/ %{_bindir}/dumpasn1 %{_mandir}/man1/dumpasn1.1* %changelog * Thu Feb 8 2007 Ville Skyttä - 20060622-2 - Update dumpasn1.cfg to 20070127. * Tue Aug 22 2006 Ville Skyttä - 20060622-1 - Update to 20060622. * Thu Feb 16 2006 Ville Skyttä - 20050404-2 - Rebuild. * Mon Aug 15 2005 Ville Skyttä - 20050404-1 - Use macros more consistently (#165497). * Tue Aug 9 2005 Ville Skyttä - 20050404-0.1 - Update to 20050404. * Sun May 29 2005 Ville Skyttä - 20030222-0.1 - Rebuild for FC4. * Mon Aug 30 2004 Ville Skyttä - 0:20030222-0.fdr.1 - First build, based on Debian package.