From 688e666d20b94596eb6b2e5be9f1e8b56432bd01 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Aug 31 2013 07:30:15 +0000 Subject: Cleaning up spec-file Signed-off-by: Peter Lemenkov --- diff --git a/.gitignore b/.gitignore index a372671..5ad0666 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /lemenkov-erlang-rpm-macros-0.1.2-0-ga435404.tar.gz /lemenkov-erlang-rpm-macros-0.1.3-0-g3e3d3a8.tar.gz +/erlang-rpm-macros-0.1.3.tar.gz diff --git a/erlang-rpm-macros.spec b/erlang-rpm-macros.spec index 5dbabda..9aa4e59 100644 --- a/erlang-rpm-macros.spec +++ b/erlang-rpm-macros.spec @@ -1,18 +1,14 @@ -%global git_tag 3e3d3a8 - Name: erlang-rpm-macros Version: 0.1.3 -Release: 5%{?dist} +Release: 6%{?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 +URL: https://github.com/lemenkov/erlang-rpm-macros +VCS: https://github.com/lemenkov/erlang-rpm-macros.git +Source0: https://github.com/lemenkov/erlang-rpm-macros/archive/%{version}/%{name}-%{version}.tar.gz BuildArch: noarch Requires: rpm-build >= 4.7 -Obsoletes: %{name} < 0.1.2 -BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) %description @@ -20,29 +16,24 @@ Macros for simplifying building of Erlang packages. %prep -%setup -q -n lemenkov-%{name}-%{git_tag} +%setup -q %build +# Nothing to 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 +install -d %{buildroot}%{_sysconfdir}/rpm +install -d %{buildroot}%{_rpmconfigdir} +install -p -m 0755 erlang-find-provides.escript %{buildroot}%{_rpmconfigdir}/ +install -p -m 0755 erlang-find-provides.sh %{buildroot}%{_rpmconfigdir}/ +install -p -m 0755 erlang-find-requires.escript %{buildroot}%{_rpmconfigdir}/ +install -p -m 0755 erlang-find-requires.sh %{buildroot}%{_rpmconfigdir}/ +install -p -m 0644 macros.erlang %{buildroot}%{_sysconfdir}/rpm/ %files -%defattr(-,root,root,-) %doc README LICENSE %{_sysconfdir}/rpm/macros.erlang %{_rpmconfigdir}/erlang-find-provides.escript @@ -53,6 +44,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Sat Aug 31 2013 Peter Lemenkov - 0.1.3-6 +- Cleaning up spec-file + * Sat Aug 03 2013 Fedora Release Engineering - 0.1.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild diff --git a/sources b/sources index 422fe95..b64e240 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -b75dcfe3f34d742280ecd815de2f95bf lemenkov-erlang-rpm-macros-0.1.3-0-g3e3d3a8.tar.gz +0fc3e905ddaff4c505b8d8b3c445a779 erlang-rpm-macros-0.1.3.tar.gz