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
|
*.tar.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
*.tar.xz 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
|
Name: python-rpmUtils
|
||||||
%define version 1.0
|
Version: 0.1
|
||||||
%define release 1
|
Release: 1%{?dist}
|
||||||
Summary: This is what python2-rpmUtils does.
|
Summary: python rpmUtils
|
||||||
Name: %{name}
|
|
||||||
Version: %{version}
|
License: GPLv2+
|
||||||
Release: %{release}%{?dist}
|
URL: none
|
||||||
Source: %{name}-%{version}.tar.gz
|
Source0: rpmUtils-%{version}.tar.bz2
|
||||||
License: GNU GPL version 2
|
BuildArch: noarch
|
||||||
Group: SMEserver/addon
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-buildroot
|
|
||||||
Prefix: %{_prefix}
|
|
||||||
BuildArchitectures: noarch
|
|
||||||
BuildRequires: smeserver-devtools
|
|
||||||
Requires: smeserver-release >= 11.0
|
|
||||||
AutoReqProv: no
|
|
||||||
|
|
||||||
%description
|
%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
|
import rpmUtils.miscutils
|
||||||
* Day MMMM DD YYYY <brianr@koozali.org> 1.0-1.sme
|
>>> rpmUtils.miscutils.compareEVR(("foo", "3.7.4", "1"), ("foo", "3.7.4", "1"))
|
||||||
- Initial code - create RPM [SME:99999]
|
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
|
%prep
|
||||||
|
%autosetup -n rpmUtils-%{version}
|
||||||
%setup -q
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
# empty
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
make DESTDIR=$RPM_BUILD_ROOT install
|
||||||
(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)' \
|
|
||||||
|
|
||||||
%clean
|
%files -n python2-rpmUtils
|
||||||
cd ..
|
%{python2_sitelib}/rpmUtils/*
|
||||||
rm -rf %{name}-%{version}
|
%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