[packages/adapter: 630/631] new package, version 1.514

glen glen at pld-linux.org
Mon Sep 12 20:27:14 CEST 2016


commit 57ac2efb0ad28e91d72bf8210bb7cfbce612ee13
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Sep 12 20:22:59 2016 +0300

    new package, version 1.514
    
    adapter code moved to separate package from rpm-build-tools
    
    version taken from last cvs revision
    0822665019fe9ebd0a9a145c3c5169a26ec67219

 adapter.spec | 41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)
---
diff --git a/adapter.spec b/adapter.spec
new file mode 100644
index 0000000..9b7b54f
--- /dev/null
+++ b/adapter.spec
@@ -0,0 +1,41 @@
+Summary:	Adapt RPM .spec files to PLD Linux coding standard
+Name:		adapter
+Version:	1.514
+Release:	1
+License:	GPL
+Group:		Applications/File
+Source0:	adapter.awk
+Source1:	adapter.sh
+BuildRequires:	sed >= 4.0
+Requires:	gawk >= 3.1.7
+Conflicts:	rpm-build-tools < 4.9
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_libdir	%{_prefix}/lib
+
+%description
+adapter adapts RPM .spec files for PLD Linux coding standard.
+
+%prep
+%setup -qcT
+cp -p %{SOURCE0} %{SOURCE1} .
+
+%{__sed} -i -e 's,^adapter=.*/adapter.awk,adapter=%{_libdir}/adapter.awk,' adapter.sh
+
+%{__sed} -i -e '/^VERSION=/s,\([^/]\+\)/.*",\1-RELEASE",' 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},%{_libdir}}
+cp -p adapter.awk $RPM_BUILD_ROOT%{_libdir}/adapter.awk
+install -p adapter.sh $RPM_BUILD_ROOT%{_bindir}/adapter
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/adapter
+%{_libdir}/adapter.awk
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/adapter.git/commitdiff/6ca0126d4d0c8c79feb7db10b0a0fade0f3b8885



More information about the pld-cvs-commit mailing list