SHA256
1
0
forked from pool/createrepo_c
Frank Schreiner 2016-07-04 15:02:35 +00:00 committed by Git OBS Bridge
parent 55f871a514
commit a206e861ee

View File

@ -1,3 +1,21 @@
#
# spec file for package createrepo_c
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define major 0
%define libname lib%{name}%{major}
%define devname lib%{name}-devel
@ -6,27 +24,27 @@
Name: createrepo_c
Summary: Creates a common metadata repository
License: GPL-2.0
Group: System/Packages
Version: 0.10.0.git20160503.7c6fae0
Release: 0
License: GPL-2.0
URL: https://github.com/rpm-software-management/createrepo_c
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: bash-completion
BuildRequires: cmake
BuildRequires: doxygen
BuildRequires: libexpat-devel
BuildRequires: file-devel
BuildRequires: glib2-devel >= 2.22.0
BuildRequires: libbz2-devel
BuildRequires: libcurl-devel
BuildRequires: libexpat-devel
BuildRequires: libxml2-devel
BuildRequires: lzma-devel
BuildRequires: openssl-devel
BuildRequires: rpm-devel >= 4.9.0
BuildRequires: sqlite3-devel
BuildRequires: lzma-devel
BuildRequires: zlib-devel
BuildRequires: bash-completion
Requires: %{libname} = %{version}-%{release}
@ -40,22 +58,22 @@ 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
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
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}
Summary: Library for repodata manipulation
Group: Development/Libraries/C and C++
Provides: %{name}-devel = %{version}-%{release}
Requires: %{libname} = %{version}-%{release}
Requires: pkg-config
%description -n %{devname}
This package contains the createrepo_c C library and header files.
@ -64,7 +82,6 @@ These development files are for easy manipulation with a repodata.
%prep
%setup -q
%if %{with python3}
rm -rf py3
mkdir py3