5ad402
%global pkg irsim-mode
5ad402
%global pkgname Emacs-irsim-mode
5ad402
5ad402
%if %($(pkg-config emacs) ; echo $?)
5ad402
%global emacs_version 21.1
5ad402
%global emacs_lispdir %{_datadir}/emacs/site-lisp
5ad402
%global emacs_startdir %{_datadir}/emacs/site-lisp/site-start.d
5ad402
%else
5ad402
%global emacs_version %(pkg-config emacs --modversion)
5ad402
%global emacs_lispdir %(pkg-config emacs --variable sitepkglispdir)
5ad402
%global emacs_startdir %(pkg-config emacs --variable sitestartdir)
5ad402
%endif
5ad402
5ad402
5ad402
Name:		emacs-%{pkg}
5ad402
Version:	0.1
c3bdb3
Release:	20%{?dist}
5ad402
Summary:	Irsim mode for emacs
5ad402
5ad402
License:	MIT
5ad402
URL:		http://code.google.com/p/irsim-mode/
5ad402
Source0:	http://irsim-mode.googlecode.com/files/irsim-mode.el
5ad402
Source1:	%{pkg}-init.el
5ad402
5ad402
BuildArch:	noarch
5ad402
BuildRequires:	emacs emacs-el
5ad402
Requires:	emacs >= %{emacs_version}
5ad402
		
5ad402
%description
5ad402
IRSIM is a switch-level simulator for digital logic circuits.
5ad402
This is an Emacs mode for editing IRSIM netlists. It provides
5ad402
syntax highlighting and an extremely pleasant method if indentation.
5ad402
5ad402
5ad402
%package el
5ad402
Summary:	Source files for %{pkgname} under GNU Emacs
5ad402
Requires:	%{name} = %{version}-%{release}
5ad402
5ad402
%description el
5ad402
This package contains the elisp source files for 
5ad402
use with %{pkgname}.
5ad402
5ad402
%prep
5ad402
%{__rm} -rf %{_builddir}/%{name}-%{version}
5ad402
%{__mkdir} -p %{_builddir}/%{name}-%{version}
5ad402
cp -p %{SOURCE0} %{_builddir}/%{name}-%{version}
5ad402
cp -p %{SOURCE1} %{_builddir}/%{name}-%{version}
5ad402
5ad402
5ad402
%build
5ad402
cd %{name}-%{version}
5ad402
emacs -batch -f batch-byte-compile %{pkg}.el
5ad402
5ad402
%install
5ad402
%{__rm} -rf %{buildroot}
5ad402
cd %{name}-%{version}
5ad402
%{__install} -pm 755 -d %{buildroot}%{emacs_lispdir}/irsim-mode/
5ad402
%{__install} -pm 755 -d %{buildroot}%{emacs_startdir}	
5ad402
%{__install} -pm 644 %{pkg}.* %{buildroot}%{emacs_lispdir}/%{pkg}
5ad402
%{__install} -pm 644 %{SOURCE1} %{buildroot}%{emacs_startdir}
5ad402
5ad402
5ad402
5ad402
%files
5ad402
%{emacs_lispdir}/%{pkg}/*.elc
5ad402
%{emacs_startdir}/%{pkg}-init.el
5ad402
%dir %{emacs_lispdir}/%{pkg}
5ad402
%dir %{emacs_startdir}
5ad402
5ad402
%files el
5ad402
%{emacs_lispdir}/%{pkg}/*.el
5ad402
5ad402
%changelog
c3bdb3
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-20
c3bdb3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
c3bdb3
b45643
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-19
b45643
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
b45643
62a9a5
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-18
62a9a5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
62a9a5
b82b8d
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-17
b82b8d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
b82b8d
247cfa
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-16
247cfa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
247cfa
ac46b7
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-15
ac46b7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
ac46b7
508afe
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-14
508afe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
508afe
f45452
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1-13
f45452
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
f45452
820b31
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1-12
820b31
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
820b31
2026ef
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1-11
2026ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2026ef
0e6204
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1-10
0e6204
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
0e6204
e1aac7
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1-9
e1aac7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
e1aac7
f73665
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1-8
f73665
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
f73665
53bfba
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1-7
53bfba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
53bfba
5ad402
* Tue Dec 08 2009 Arun SAG <sagarun [at]="" gmail="" dot="" com=""> - 0.1-6
5ad402
- Fixed Requires for centos
5ad402
5ad402
* Mon Dec 07 2009 Arun SAG <sagarun [at]="" gmail="" dot="" com=""> - 0.1-5
5ad402
- Fixed installtion failure in EL-5
5ad402
- irsim-mode handles .out files
5ad402
5ad402
* Thu Dec 03 2009 Arun SAG <sagarun [at]="" gmail="" dot="" com=""> - 0.1-4
5ad402
- Timestamps are preserved
5ad402
- Autoloads for more file types added
5ad402
5ad402
* Wed Dec 02 2009 Arun SAG <sagarun [at]="" gmail="" dot="" com=""> - 0.1-3
5ad402
- Description updated
5ad402
- source1 updated
5ad402
5ad402
* Wed Dec 02 2009 Arun SAG <sagarun [at]="" gmail="" dot="" com=""> - 0.1-2
5ad402
- Reduntant globals removed
5ad402
- Description updated
5ad402
5ad402
* Wed Dec 02 2009 Arun SAG <sagarun [at]="" gmail="" dot="" com=""> - 0.1-1
5ad402
- Initial release 0.1-1