From 6576f132b47a48cc119ea79532f0584bcd50d9a6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Sat, 24 Oct 2020 14:49:14 +0200 Subject: [PATCH] - spec cleanup --- rpm-getdeps.spec | 28 ++++------------------------ 1 file changed, 4 insertions(+), 24 deletions(-) diff --git a/rpm-getdeps.spec b/rpm-getdeps.spec index 40aabf4..c025b9f 100644 --- a/rpm-getdeps.spec +++ b/rpm-getdeps.spec @@ -1,13 +1,11 @@ -# $Revision: 1.4 $, $Date: 2005/09/12 16:46:06 $ Summary: Get dependencies out of RPM spec file Summary(pl): Pobieranie zależności z pliku spec pakietu RPM Name: rpm-getdeps Version: 0.0.7 Release: 2 License: GPL -Vendor: Joey Hess Group: Applications/System -Source0: http://www-user.tu-chemnitz.de/~ensc/getdeps.c +Source0: getdeps.c # Source0-md5: c20a7f6a0ef86461514fbf55092ae434 BuildRequires: rpm-devel BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -22,35 +20,17 @@ Pobieranie zależności z pliku spec pakietu RPM. %setup -q -c -T %build -%{__cc} %{rpmcflags} %{rpmldflags} -I/usr/include/rpm -Wall -lrpm -lrpmbuild %{SOURCE0} -o %{name} +%{__cc} %{rpmcflags} %{rpmldflags} -I/usr/include/rpm -Wall -lrpm -lrpmbuild %{SOURCE0} -o rpm-getdeps %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_bindir} -install %{name} $RPM_BUILD_ROOT%{_bindir} +cp -p rpm-getdeps $RPM_BUILD_ROOT%{_bindir} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%attr(755,root,root) %{_bindir}/* - -%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) -%changelog -* %{date} PLD Team -All persons listed below can be reached at @pld-linux.org - -$Log: rpm-getdeps.spec,v $ -Revision 1.4 2005/09/12 16:46:06 glen -- integer release, 2, STBR - -Revision 1.3 2004/06/17 19:36:58 arekm -- rebuild - -Revision 1.2 2004/06/06 15:33:58 qboosh -- pl - -Revision 1.1 2004/06/06 09:56:47 arekm -- initial pld release +%attr(755,root,root) %{_bindir}/rpm-getdeps -- 2.44.0