0ce022d
Name:           dumpasn1
7d20498
Version:        20120521
b5d314b
Release:        1%{?dist}
0ce022d
Summary:        ASN.1 object dump utility
0ce022d
0ce022d
Group:          Development/Tools
9e32d3d
License:        Copyright only
06c8a87
#   You can use this code in whatever way you want, as long as you don't try
06c8a87
#   to claim you wrote it.
0ce022d
URL:            http://www.cs.auckland.ac.nz/~pgut001/
a189933
Source0:        http://www.cs.auckland.ac.nz/~pgut001/dumpasn1.c
a189933
Source1:        http://www.cs.auckland.ac.nz/~pgut001/dumpasn1.cfg
a189933
# man page extracted from http://ftp.debian.org/debian/pool/main/d/dumpasn1/dumpasn1_20030222-1.diff.gz
a189933
Source2:        dumpasn1.1
c6bf051
0ce022d
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
0ce022d
0ce022d
BuildRequires:  sed >= 3.95
0ce022d
0ce022d
%description
0ce022d
dumpasn1 is an ASN.1 object dump program that will dump data encoded
0ce022d
using any of the ASN.1 encoding rules in a variety of user-specified
0ce022d
formats.
0ce022d
0ce022d
0ce022d
%prep
0ce022d
%setup -q -c -T
06c8a87
install -pm 644 %{SOURCE0} %{SOURCE1} %{SOURCE2} .
85a8d91
a189933
sed -i -e 's|/etc/dumpasn1/|%{_sysconfdir}/dumpasn1/|' dumpasn1.{c,1}
0ce022d
0ce022d
%build
a189933
# -std=c99 for fwide
a189933
%{__cc} $RPM_OPT_FLAGS -std=c99 -DDEBIAN -o dumpasn1 dumpasn1.c
0ce022d
0ce022d
%install
0ce022d
rm -rf $RPM_BUILD_ROOT
0ce022d
install -Dpm 755 dumpasn1 $RPM_BUILD_ROOT%{_bindir}/dumpasn1
0fb293b
install -Dpm 644 dumpasn1.cfg \
0fb293b
    $RPM_BUILD_ROOT%{_sysconfdir}/dumpasn1/dumpasn1.cfg
0ce022d
install -Dpm 644 dumpasn1.1 $RPM_BUILD_ROOT%{_mandir}/man1/dumpasn1.1
0ce022d
0ce022d
0ce022d
%clean
0ce022d
rm -rf $RPM_BUILD_ROOT
0ce022d
0ce022d
0ce022d
%files
0ce022d
%defattr(-,root,root,-)
0ce022d
%config(noreplace) %{_sysconfdir}/dumpasn1/
0ce022d
%{_bindir}/dumpasn1
0ce022d
%{_mandir}/man1/dumpasn1.1*
0ce022d
0ce022d
0ce022d
%changelog
7d20498
* Sat Jun 09 2012 F. Kooman <fkooman@tuxed.net> - 20120521-1
7d20498
- update dumpasn1 to 20120521 (Jun 08 2012 13:27)
7d20498
b5d314b
* Thu May 17 2012 F. Kooman <fkooman@tuxed.net> - 20120501-1
b5d314b
- update dumpasn1 to 20120501 (May 14 2012 16:32), update config to 
b5d314b
  new version of 20110201 (May 14 2012 16:31)
b5d314b
51c9be7
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20101112-3
51c9be7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
51c9be7
c8394d7
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20101112-2
c8394d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
c8394d7
85a8d91
* Fri Feb 04 2011 F. Kooman <fkooman@tuxed.net> - 20101112-1
85a8d91
- update to 20101112 (dumpasn1) and 20110201 (dumpasn1.cfg) 
85a8d91
Adam Tkac b03eaea
* Fri Aug 20 2010 Adam Tkac <atkac redhat com> - 20100318-2
Adam Tkac b03eaea
- rebuild to ensure F14 has higher NVR than F13
Adam Tkac b03eaea
c6bf051
* Fri Jun 11 2010 François Kooman <fkooman@tuxed.net> - 20100318-1
c6bf051
- new upstream version
c6bf051
- restore patch to fix undefined BYTE
c6bf051
a721560
* Sat May 8 2010  François Kooman <fkooman@tuxed.net> - 20090721-2
a721560
- upstream updated source files in place at 20100312 without
a721560
  updating version mentioned in the files themselves
a721560
559fcb7
* Sun Sep 13 2009 François Kooman <fkooman@tuxed.net> - 20090721-1
559fcb7
- update to upstream version 20090721
559fcb7
af31de9
* Tue Aug 11 2009 François Kooman <fkooman@tuxed.net> - 20090318-4
af31de9
- upstream changed source file in place, update
af31de9
- remove patch which is no longer required
af31de9
795e7e3
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20090318-3
795e7e3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
795e7e3
06c8a87
* Fri Jul 17 2009 François Kooman <fkooman@tuxed.net> - 20090318-2
06c8a87
- cfg file already has unix line endings
06c8a87
- create patch instead of using sed to replace BYTE with char
06c8a87
 
06c8a87
* Thu Jul 16 2009 François Kooman <fkooman@tuxed.net> - 20090318-1
06c8a87
- Update to 20090318 and config to 20090531
06c8a87
56d8f8a
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20090107-2
56d8f8a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
56d8f8a
0fb293b
* Sun Feb 22 2009 Ville Skyttä <ville.skytta at iki.fi> - 20090107-1
0fb293b
- Update to 20090107 and config to 20090125.
0fb293b
a189933
* Sat Aug  2 2008 Ville Skyttä <ville.skytta at iki.fi> - 20080414-2
a189933
- Update to 20080708 updated sources (upstream version unchanged).
a189933
- Drop Debian patchset, just include man page from it separately.
a189933
c863b00
* Fri May  2 2008 Ville Skyttä <ville.skytta at iki.fi> - 20080414-1
c863b00
- Update to 20080414.
c863b00
2968046
* Sun Mar 30 2008 Ville Skyttä <ville.skytta at iki.fi> - 20080204-2
2968046
- Fix implicit function declarations.
2968046
- Update dumpasn1.cfg to 20080323.
2968046
02cb939
* Sat Feb  9 2008 Ville Skyttä <ville.skytta at iki.fi> - 20080204-1
02cb939
- 20080204.
02cb939
9e32d3d
* Thu Aug 16 2007 Ville Skyttä <ville.skytta at iki.fi> - 20060622-3
9e32d3d
- License: Copyright only
9e32d3d
ad2802f
* Thu Feb  8 2007 Ville Skyttä <ville.skytta at iki.fi> - 20060622-2
ad2802f
- Update dumpasn1.cfg to 20070127.
ad2802f
d50c01c
* Tue Aug 22 2006 Ville Skyttä <ville.skytta at iki.fi> - 20060622-1
d50c01c
- Update to 20060622.
d50c01c
9a76089
* Thu Feb 16 2006 Ville Skyttä <ville.skytta at iki.fi> - 20050404-2
9a76089
- Rebuild.
9a76089
d74fa7d
* Mon Aug 15 2005 Ville Skyttä <ville.skytta at iki.fi> - 20050404-1
d74fa7d
- Use macros more consistently (#165497).
d74fa7d
0ce022d
* Tue Aug  9 2005 Ville Skyttä <ville.skytta at iki.fi> - 20050404-0.1
0ce022d
- Update to 20050404.
0ce022d
0ce022d
* Sun May 29 2005 Ville Skyttä <ville.skytta at iki.fi> - 20030222-0.1
0ce022d
- Rebuild for FC4.
0ce022d
0ce022d
* Mon Aug 30 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:20030222-0.fdr.1
0ce022d
- First build, based on Debian package.