forked from pool/createrepo_c
Accepting request 371361 from home:M0ses:branches:OBS:Server:Unstable
OBS-URL: https://build.opensuse.org/request/show/371361 OBS-URL: https://build.opensuse.org/package/show/system:packagemanager/createrepo_c?expand=0&rev=1
This commit is contained in:
commit
3140ebe7b6
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
16
_service
Normal file
16
_service
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
|
||||||
|
<services>
|
||||||
|
<service name="tar_scm" mode="disabled">
|
||||||
|
<param name="url">git://github.com/rpm-software-management/createrepo_c.git</param>
|
||||||
|
<param name="scm">git</param>
|
||||||
|
<param name="exclude">.git</param>
|
||||||
|
<param name="version">git-master</param>
|
||||||
|
<param name="versionformat">0.10.0.git%cd.%h</param>
|
||||||
|
<param name="revision">master</param>
|
||||||
|
</service>
|
||||||
|
<service name="recompress" mode="disabled">
|
||||||
|
<param name="file">*.tar</param>
|
||||||
|
<param name="compression">gz</param>
|
||||||
|
</service>
|
||||||
|
<service name="set_version" mode="disabled"/>
|
||||||
|
</services>
|
3
createrepo_c-0.10.0.git20160311.584dd7e.tar.gz
Normal file
3
createrepo_c-0.10.0.git20160311.584dd7e.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:fe3e7c022f1731c0de464b10a268f113c754bacdbe91afa184167edcef50664c
|
||||||
|
size 368742
|
15
createrepo_c.changes
Normal file
15
createrepo_c.changes
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Feb 1 04:49:43 UTC 2016 - ngompa13@gmail.com
|
||||||
|
|
||||||
|
- Disable Python 3 bindings for SLE
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Feb 1 04:40:40 UTC 2016 - ngompa13@gmail.com
|
||||||
|
|
||||||
|
- Update to 0.10.0, add Python 3 bindings
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Oct 29 14:48:00 UTC 2015 - ngompa13@gmail.com
|
||||||
|
|
||||||
|
- Initial package based on Mageia package
|
||||||
|
|
179
createrepo_c.spec
Normal file
179
createrepo_c.spec
Normal file
@ -0,0 +1,179 @@
|
|||||||
|
%define major 0
|
||||||
|
%define libname lib%{name}%{major}
|
||||||
|
%define devname lib%{name}-devel
|
||||||
|
|
||||||
|
%if (0%{?sle_version} || 0%{?sles_version}) && 0%{?is_opensuse} == 0
|
||||||
|
# Disable Python 3 bindings for SLE
|
||||||
|
%bcond_with python3
|
||||||
|
%else
|
||||||
|
# Enable Python 3 bindings by default
|
||||||
|
%bcond_without python3
|
||||||
|
%endif
|
||||||
|
|
||||||
|
Name: createrepo_c
|
||||||
|
Summary: Creates a common metadata repository
|
||||||
|
Group: System/Packages
|
||||||
|
Version: 0.10.0.git20160311.584dd7e
|
||||||
|
Release: 0
|
||||||
|
License: GPL-2.0
|
||||||
|
URL: https://github.com/rpm-software-management/createrepo_c
|
||||||
|
Source0: https://github.com/rpm-software-management/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
|
BuildRequires: libbz2-devel
|
||||||
|
BuildRequires: cmake
|
||||||
|
BuildRequires: doxygen
|
||||||
|
BuildRequires: libexpat-devel
|
||||||
|
BuildRequires: file-devel
|
||||||
|
BuildRequires: glib2-devel >= 2.22.0
|
||||||
|
BuildRequires: libcurl-devel
|
||||||
|
BuildRequires: libxml2-devel
|
||||||
|
BuildRequires: openssl-devel
|
||||||
|
BuildRequires: python-devel
|
||||||
|
BuildRequires: python-nose
|
||||||
|
BuildRequires: python-Sphinx
|
||||||
|
BuildRequires: rpm-devel >= 4.9.0
|
||||||
|
BuildRequires: sqlite3-devel
|
||||||
|
BuildRequires: lzma-devel
|
||||||
|
BuildRequires: zlib-devel
|
||||||
|
BuildRequires: bash-completion
|
||||||
|
BuildRequires: drpm-devel >= 0.1.3
|
||||||
|
|
||||||
|
%if %{with python3}
|
||||||
|
BuildRequires: python3-devel
|
||||||
|
BuildRequires: python3-nose
|
||||||
|
BuildRequires: python3-Sphinx
|
||||||
|
%endif
|
||||||
|
|
||||||
|
Requires: %{libname} = %{version}-%{release}
|
||||||
|
|
||||||
|
# prevent provides from nonstandard paths:
|
||||||
|
%global __provides_exclude ^(%{python_sitearch}/.*\\.so\\|%{python3_sitearch}/.*\\.so)$
|
||||||
|
|
||||||
|
%description
|
||||||
|
C implementation of Createrepo.
|
||||||
|
A set of utilities (createrepo_c, mergerepo_c, modifyrepo_c)
|
||||||
|
for generating a common metadata repository from a directory of
|
||||||
|
rpm packages and maintaining it.
|
||||||
|
|
||||||
|
%package -n %{libname}
|
||||||
|
Summary: Library for repodata manipulation
|
||||||
|
Group: System/Libraries
|
||||||
|
# The function to create DeltaRPMs calls /usr/bin/makedeltarpm,
|
||||||
|
# which is part of the 'deltarpm' package
|
||||||
|
Requires: deltarpm
|
||||||
|
|
||||||
|
%description -n %{libname}
|
||||||
|
Libraries for applications using the createrepo_c library
|
||||||
|
for easy manipulation with a repodata.
|
||||||
|
|
||||||
|
%package -n %{devname}
|
||||||
|
Summary: Library for repodata manipulation
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
|
Provides: %{name}-devel = %{version}-%{release}
|
||||||
|
Requires: pkg-config
|
||||||
|
Requires: %{libname} = %{version}-%{release}
|
||||||
|
|
||||||
|
%description -n %{devname}
|
||||||
|
This package contains the createrepo_c C library and header files.
|
||||||
|
These development files are for easy manipulation with a repodata.
|
||||||
|
|
||||||
|
%package -n python2-%{name}
|
||||||
|
Summary: Python 2 bindings for the createrepo_c library
|
||||||
|
Group: Development/Libraries/Python
|
||||||
|
Provides: python-%{name} = %{version}-%{release}
|
||||||
|
Requires: %{libname} = %{version}-%{release}
|
||||||
|
|
||||||
|
%description -n python2-createrepo_c
|
||||||
|
Python 2 bindings for the createrepo_c library.
|
||||||
|
|
||||||
|
%if %{with python3}
|
||||||
|
%package -n python3-%{name}
|
||||||
|
Summary: Python 3 bindings for the createrepo_c library
|
||||||
|
Group: Development/Libraries/Python
|
||||||
|
Requires: %{libname} = %{version}-%{release}
|
||||||
|
|
||||||
|
%description -n python3-createrepo_c
|
||||||
|
Python 3 bindings for the createrepo_c library.
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
|
||||||
|
|
||||||
|
%if %{with python3}
|
||||||
|
rm -rf py3
|
||||||
|
mkdir py3
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%build
|
||||||
|
%cmake -DENABLE_LEGACY_WEAKTAGS=1
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
make doc-c
|
||||||
|
|
||||||
|
%if %{with python3}
|
||||||
|
pushd ../py3
|
||||||
|
%cmake -DPYTHON_DESIRED:str=3 ../../
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
popd
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%check
|
||||||
|
pushd ./build
|
||||||
|
make tests
|
||||||
|
make ARGS="-V" test
|
||||||
|
popd
|
||||||
|
|
||||||
|
%if %{with python3}
|
||||||
|
pushd ./py3/build
|
||||||
|
make tests
|
||||||
|
make ARGS="-V" test
|
||||||
|
popd
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%install
|
||||||
|
pushd ./build
|
||||||
|
%make_install
|
||||||
|
popd
|
||||||
|
|
||||||
|
%if %{with python3}
|
||||||
|
pushd ./py3/build
|
||||||
|
%make_install
|
||||||
|
popd
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%post -n %{libname} -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%postun -n %{libname} -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc README.md COPYING
|
||||||
|
%_mandir/man8/createrepo_c.8.*
|
||||||
|
%_mandir/man8/mergerepo_c.8.*
|
||||||
|
%_mandir/man8/modifyrepo_c.8.*
|
||||||
|
%_mandir/man8/sqliterepo_c.8.*
|
||||||
|
%{_datadir}/bash-completion/completions/
|
||||||
|
%{_bindir}/createrepo_c
|
||||||
|
%{_bindir}/mergerepo_c
|
||||||
|
%{_bindir}/modifyrepo_c
|
||||||
|
%{_bindir}/sqliterepo_c
|
||||||
|
|
||||||
|
%files -n %{libname}
|
||||||
|
%doc COPYING
|
||||||
|
%{_libdir}/libcreaterepo_c.so.%{major}
|
||||||
|
%{_libdir}/libcreaterepo_c.so.%{major}.*
|
||||||
|
|
||||||
|
%files -n %{devname}
|
||||||
|
%{_libdir}/libcreaterepo_c.so
|
||||||
|
%{_libdir}/pkgconfig/createrepo_c.pc
|
||||||
|
%{_includedir}/createrepo_c/
|
||||||
|
%doc build/doc/html COPYING
|
||||||
|
|
||||||
|
%files -n python2-createrepo_c
|
||||||
|
%{python_sitearch}/createrepo_c/
|
||||||
|
|
||||||
|
%if %{with python3}
|
||||||
|
%files -n python3-createrepo_c
|
||||||
|
%{python3_sitearch}/createrepo_c/
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Reference in New Issue
Block a user