generated from smedev/Template-for-SMEServer-Core-upstream
* Thu Dec 05 2019 josef radinger <cheese@nosuchhost.net> - 0.1-1
- initial version
This commit is contained in:
parent
ec98e23358
commit
b082805e73
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -1,3 +1,4 @@
|
||||
*.tar.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tar.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
|
@ -1,54 +1,51 @@
|
||||
%define name python2-rpmUtils
|
||||
%define version 1.0
|
||||
%define release 1
|
||||
Summary: This is what python2-rpmUtils does.
|
||||
Name: %{name}
|
||||
Version: %{version}
|
||||
Release: %{release}%{?dist}
|
||||
Source: %{name}-%{version}.tar.gz
|
||||
License: GNU GPL version 2
|
||||
Group: SMEserver/addon
|
||||
BuildRoot: %{_tmppath}/%{name}-buildroot
|
||||
Prefix: %{_prefix}
|
||||
BuildArchitectures: noarch
|
||||
BuildRequires: smeserver-devtools
|
||||
Requires: smeserver-release >= 11.0
|
||||
AutoReqProv: no
|
||||
Name: python-rpmUtils
|
||||
Version: 0.1
|
||||
Release: 1%{?dist}
|
||||
Summary: python rpmUtils
|
||||
|
||||
License: GPLv2+
|
||||
URL: none
|
||||
Source0: rpmUtils-%{version}.tar.bz2
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
python2-rpmUtils - python rpmUtils
|
||||
taken from yum with slightly adaptions in Makefile
|
||||
Needed for eg. repoview, or for checking rpm-versions (taken from
|
||||
https://stackoverflow.com/questions/3206319/how-do-i-compare-rpm-versions-in-python):
|
||||
|
||||
%changelog
|
||||
* Day MMMM DD YYYY <brianr@koozali.org> 1.0-1.sme
|
||||
- Initial code - create RPM [SME:99999]
|
||||
import rpmUtils.miscutils
|
||||
>>> rpmUtils.miscutils.compareEVR(("foo", "3.7.4", "1"), ("foo", "3.7.4", "1"))
|
||||
0
|
||||
>>> rpmUtils.miscutils.compareEVR(("foo", "3.7.4", "1"), ("foo", "3.7.4a", "1"))
|
||||
-1
|
||||
>>> rpmUtils.miscutils.compareEVR(("foo", "3.7.4a", "1"), ("foo", "3.7.4", "1"))
|
||||
1
|
||||
|
||||
%package -n python2-rpmUtils
|
||||
Summary: %{summary}
|
||||
%{?python_provide:%python_provide python2-rpmUtils}
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: make
|
||||
|
||||
%description -n python2-rpmUtils
|
||||
%{description}
|
||||
|
||||
Python 2 version.
|
||||
|
||||
%prep
|
||||
|
||||
%setup -q
|
||||
%autosetup -n rpmUtils-%{version}
|
||||
|
||||
%build
|
||||
# empty
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
|
||||
rm -f %{name}-%{version}-filelist
|
||||
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
|
||||
> %{name}-%{version}-filelist
|
||||
#echo "%doc COPYING" >> %{name}-%{version}-filelist
|
||||
#--dir <dir> 'attr(755,user,grp)' \
|
||||
#--file <file> 'attr(755,root,root)' \
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
|
||||
%clean
|
||||
cd ..
|
||||
rm -rf %{name}-%{version}
|
||||
%files -n python2-rpmUtils
|
||||
%{python2_sitelib}/rpmUtils/*
|
||||
%dir %{python2_sitelib}/rpmUtils/
|
||||
|
||||
%pre
|
||||
%changelog
|
||||
* Thu Dec 05 2019 josef radinger <cheese@nosuchhost.net> - 0.1-1
|
||||
- initial version
|
||||
|
||||
%preun
|
||||
|
||||
%post
|
||||
|
||||
%postun
|
||||
#uninstall
|
||||
%files -f %{name}-%{version}-filelist
|
||||
%defattr(-,root,root)
|
||||
|
BIN
rpmUtils-0.1.tar.bz2
(Stored with Git LFS)
Normal file
BIN
rpmUtils-0.1.tar.bz2
(Stored with Git LFS)
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user