From 1a9d701bc90036d9edcda47f3803c26f1f3416c2 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Nov 15 2010 15:49:02 +0000 Subject: Initial commit (see review request in rhbz #652544) Signed-off-by: Peter Lemenkov --- diff --git a/.gitignore b/.gitignore index e69de29..50892f8 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/lemenkov-erlang-rpm-macros-0.1.2-0-ga435404.tar.gz diff --git a/erlang-rpm-macros.spec b/erlang-rpm-macros.spec new file mode 100644 index 0000000..db21fbb --- /dev/null +++ b/erlang-rpm-macros.spec @@ -0,0 +1,64 @@ +%global git_tag a435404 + +Name: erlang-rpm-macros +Version: 0.1.2 +Release: 2%{?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 https://github.com/lemenkov/erlang-rpm-macros/tarball/0.1.2 +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 +%config %{_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 Nov 15 2010 Peter Lemenkov - 0.1.2-2 +- Drop explicit Requires: erlang-erts + +* Mon Nov 15 2010 Peter Lemenkov - 0.1.2-1 +- Ver. 0.1.2 +- Added missing runtime requirements + +* Wed Oct 27 2010 Peter Lemenkov - 0.1.1-1 +- Initial build as separate package (splitted off from erlang) diff --git a/sources b/sources index e69de29..1cf209a 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +31398cecc43c3c40d23078b5aa2d23df lemenkov-erlang-rpm-macros-0.1.2-0-ga435404.tar.gz