%global git_tag 3e3d3a8
Name: erlang-rpm-macros
Version: 0.1.3
Release: 4%{?dist}
Summary: Macros for simplifying building of Erlang packages
Group: Development/Libraries
License: MIT
URL: http://github.com/lemenkov/erlang-rpm-macros
# wget --no-check-certificate --content-disposition https://github.com/lemenkov/erlang-rpm-macros/tarball/0.1.3
Source0: lemenkov-%{name}-%{version}-0-g%{git_tag}.tar.gz
BuildArch: noarch
Requires: rpm-build >= 4.7
Obsoletes: %{name} < 0.1.2
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
%description
Macros for simplifying building of Erlang packages.
%prep
%setup -q -n lemenkov-%{name}-%{git_tag}
%build
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_sysconfdir}/rpm
install -d $RPM_BUILD_ROOT%{_rpmconfigdir}
install -p -m 0755 erlang-find-provides.escript $RPM_BUILD_ROOT%{_rpmconfigdir}/
install -p -m 0755 erlang-find-provides.sh $RPM_BUILD_ROOT%{_rpmconfigdir}/
install -p -m 0755 erlang-find-requires.escript $RPM_BUILD_ROOT%{_rpmconfigdir}/
install -p -m 0755 erlang-find-requires.sh $RPM_BUILD_ROOT%{_rpmconfigdir}/
install -p -m 0644 macros.erlang $RPM_BUILD_ROOT%{_sysconfdir}/rpm/
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc README LICENSE
%{_sysconfdir}/rpm/macros.erlang
%{_rpmconfigdir}/erlang-find-provides.escript
%{_rpmconfigdir}/erlang-find-provides.sh
%{_rpmconfigdir}/erlang-find-requires.escript
%{_rpmconfigdir}/erlang-find-requires.sh
%changelog
* Mon Mar 11 2013 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.1.3-4
- Remove %%config from %%{_sysconfdir}/rpm/macros.*
(https://fedorahosted.org/fpc/ticket/259).
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Mon May 07 2012 Peter Lemenkov <lemenkov@gmail.com> - 0.1.3-1
- Ver. 0.1.3
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Mon Nov 15 2010 Peter Lemenkov <lemenkov@gmail.com> - 0.1.2-2
- Drop explicit Requires: erlang-erts
* Mon Nov 15 2010 Peter Lemenkov <lemenkov@gmail.com> - 0.1.2-1
- Ver. 0.1.2
- Added missing runtime requirements
* Wed Oct 27 2010 Peter Lemenkov <lemenkov@gmail.com> - 0.1.1-1
- Initial build as separate package (splitted off from erlang)