X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=rpm-build-tools.spec;h=4d67f936c2a3b78d18bcce5fb4ef8bde8a16d6b4;hb=6fd7fb69a0231292ee4458a33506472b3f514364;hp=f47f03a1077a2451047a45fa3444d246ececf2e5;hpb=99f0f11c0ca653019a4222691dd59ea8e7df23a9;p=packages%2Frpm-build-tools.git diff --git a/rpm-build-tools.spec b/rpm-build-tools.spec index f47f03a..4d67f93 100644 --- a/rpm-build-tools.spec +++ b/rpm-build-tools.spec @@ -4,21 +4,40 @@ Summary(pl.UTF-8): Skrypty pomocnicze do zarządznia plikami .spec i budowania R Summary(pt_BR.UTF-8): Scripts e programas executáveis usados para construir pacotes Summary(ru.UTF-8): Скрипты и утилиты, необходимые для сборки пакетов Summary(uk.UTF-8): Скрипти та утиліти, необхідні для побудови пакетів -Group: Applications/File -Requires: rpm-build Name: rpm-build-tools -Version: 4.4.9 -Release: 8 +Version: 4.6 +Release: 3 License: GPL +Group: Applications/File Group: Base -Source30: builder -Source31: adapter.awk -Source32: pldnotify.awk +Source0: builder.sh +Source1: adapter.awk +Source2: adapter.sh +Source3: pldnotify.awk +Source4: shrc.sh +Source5: dropin +BuildRequires: sed >= 4.0 +Requires: gawk >= 3.1.7 +Requires: git-core >= 1.7 +Requires: grep +Requires: less +Requires: openssh-clients +Requires: perl-base +Requires: rpm-build +Requires: rpmbuild(macros) >= 1.539 +Requires: sed >= 4.0 +Requires: time +Requires: util-linux Requires: wget -Suggests: cvs +Suggests: rpm-specdump >= 0.3 +Suggests: schedtool +Suggests: vim-syntax-spec +Conflicts: mktemp < 1.6 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) +%define _libdir %{_prefix}/lib + %description Scripts for managing .spec files and building RPM packages. @@ -42,19 +61,34 @@ construir pacotes usando o RPM. %prep %setup -qcT +cp -p %{SOURCE0} %{SOURCE2} . +cp -p %{SOURCE1} adapter.awk +cp -p %{SOURCE3} pldnotify.awk + +%{__sed} -i -e 's,^adapter=.*/adapter.awk,adapter=%{_libdir}/adapter.awk,' adapter.sh + +%{__sed} -i -e '/^VERSION=/s,\([^/]\+\)/.*",\1-RELEASE",' builder.sh adapter.sh +%{__sed} -i -e '/\tRCSID =/,/^\trev =/d;/\tVERSION = /s,\([^/]\+\)/.*,\1-RELEASE",' adapter.awk %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT%{_bindir} -install %{SOURCE30} $RPM_BUILD_ROOT%{_bindir}/builder -install %{SOURCE31} $RPM_BUILD_ROOT%{_bindir}/adapter.awk -install %{SOURCE32} $RPM_BUILD_ROOT%{_bindir}/pldnotify.awk +install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},/etc/shrc.d} +cp -p adapter.awk $RPM_BUILD_ROOT%{_libdir}/adapter.awk +install -p pldnotify.awk $RPM_BUILD_ROOT%{_bindir}/pldnotify +ln -s pldnotify $RPM_BUILD_ROOT%{_bindir}/pldnotify.awk +install -p builder.sh $RPM_BUILD_ROOT%{_bindir}/builder +install -p adapter.sh $RPM_BUILD_ROOT%{_bindir}/adapter +install -p %{SOURCE5} $RPM_BUILD_ROOT%{_bindir} +install -p %{SOURCE4} $RPM_BUILD_ROOT/etc/shrc.d/rpm-build.sh %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) +%attr(755,root,root) %{_bindir}/adapter %attr(755,root,root) %{_bindir}/builder -%attr(755,root,root) %{_bindir}/adapter.awk -%attr(755,root,root) %{_bindir}/pldnotify.awk +%attr(755,root,root) %{_bindir}/dropin +%attr(755,root,root) %{_bindir}/pldnotify* +/etc/shrc.d/rpm-build.sh +%{_libdir}/adapter.awk