blob: 797c6153a79c892edbadf550e6d3f6b64c228487 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
|
#Notice:This spec file is from upstream community:
#https://raw.githubusercontent.com/rpm-software-management/createrepo_c/2077ba104eae04bb819e9e0c906c8c835b62e7a6/createrepo_c.spec
%global libmodulemd_version 2.3.0
%bcond_without python3
%bcond_without drpm
%bcond_with zchunk
%bcond_with libmodulemd
Summary: Creates a common metadata repository
Name: createrepo_c
Version: 1.2.1
Release: 1
License: GPL-2.0-or-later
URL: https://github.com/rpm-software-management/createrepo_c
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
Patch0: createrepo_c-1.1.4-port-to-newer-cmake.patch
BuildRequires: cmake >= 3.12
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gthread-2.0)
BuildRequires: pkgconfig(liblzma)
BuildRequires: pkgconfig(libzstd)
BuildRequires: pkgconfig(rpm)
BuildRequires: pkgconfig(sqlite3) >= 3.6.18
BuildRequires: bzip2-devel
BuildRequires: libcurl-devel
BuildRequires: libxml2-devel
BuildRequires: openssl-devel
BuildRequires: zlib-devel
BuildRequires: doxygen
%if %{with zchunk}
BuildRequires: pkgconfig(zck) >= 0.9.11
BuildRequires: zchunk
%endif
%if %{with libmodulemd}
BuildRequires: pkgconfig(modulemd-2.0) >= %{libmodulemd_version}
BuildRequires: libmodulemd
Requires: libmodulemd%{?_isa} >= %{libmodulemd_version}
%endif
%if %{with drpm}
BuildRequires: pkgconfig(drpm) >= 0.4.0
%endif
Requires: rpm >= 4.9.0
Obsoletes: createrepo < 0.11.0
Provides: createrepo = %{version}-%{release}
Provides: %{name}-libs = %{version}-%{release} %{name}-libs%{?_isa} = %{version}-%{release}
Obsoletes: %{name}-libs < %{version}-%{release}
%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 devel
Summary: Library for repodata manipulation
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
%description devel
This package contains the createrepo_c C library and header files.
These development files are for easy manipulation with a repodata.
%package_help
%if %{with python3}
%package -n python3-%{name}
Summary: Python 3 bindings for the createrepo_c library
%{?python_provide:%python_provide python3-%{name}}
BuildRequires: python3-devel
BuildRequires: python3-sphinx
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
%description -n python3-%{name}
Python 3 bindings for the createrepo_c library.
%endif
%prep
%autosetup -p1
%build
# Build createrepo_c with Pyhon 3
%cmake \
%{!?with_zchunk:-DWITH_ZCHUNK=OFF} \
%{!?with_libmodulemd:-DWITH_LIBMODULEMD=OFF} \
-DENABLE_DRPM=%{with_drpm:ON}%{!?with_drpm:OFF} \
-DENABLE_PYTHON=%{with_python3:ON}%{!with_python3:OFF}
%cmake_build
# Build C documentation
%cmake_build --target doc-c
%check
# Run Python 3 tests
%if %{with python3}
# Run Python 3 tests
%ctest
%endif
%install
# Install createrepo_c with Python 3
%cmake_install
ln -sr %{buildroot}%{_bindir}/createrepo_c %{buildroot}%{_bindir}/createrepo
ln -sr %{buildroot}%{_bindir}/mergerepo_c %{buildroot}%{_bindir}/mergerepo
ln -sr %{buildroot}%{_bindir}/modifyrepo_c %{buildroot}%{_bindir}/modifyrepo
%files
%doc README.md
%license COPYING AUTHORS
%{_bindir}/createrepo_c
%{_bindir}/mergerepo_c
%{_bindir}/modifyrepo_c
%{_bindir}/sqliterepo_c
%{_libdir}/lib%{name}.so.*
%{bash_completions_dir}/*
%{_bindir}/createrepo
%{_bindir}/mergerepo
%{_bindir}/modifyrepo
%files devel
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_includedir}/%{name}/
%files help
%doc %{__cmake_builddir}/doc/html
%{_mandir}/man8/createrepo_c.8*
%{_mandir}/man8/mergerepo_c.8*
%{_mandir}/man8/modifyrepo_c.8*
%{_mandir}/man8/sqliterepo_c.8*
%if %{with python3}
%files -n python3-%{name}
%{python3_sitearch}/%{name}/
%{python3_sitearch}/%{name}-%{version}-py%{python3_version}.egg-info
%endif
%changelog
* Mon Mar 17 2025 Funda Wang <fundawang@yeah.net> - 1.2.1-1
- update to 1.2.1
* Sun Mar 02 2025 Funda Wang <fundawang@yeah.net> - 1.1.4-4
- try build with cmake 4.0
* Thu Nov 21 2024 Funda Wang <fundawang@yeah.net> - 1.1.4-3
- adopt to new cmake macro
* Fri Nov 08 2024 Funda Wang <fundawang@yeah.net> - 1.1.4-2
- adopt to new cmake macro
* Mon Aug 19 2024 yangxiaodong <yangxiaodong@kylinos.cn> - 1.1.4-1
- Type:update
- CVE:NA
- SUG:NA
- DESC:update version to 1.1.4
* Mon Jul 15 2024 dillon chen <dillon.chen@gmail.com> - 1.1.3-1
- update version to 1.1.3
* Thu Feb 1 2024 caixiaomeng <caixiaomeng2@huawei.com> - 1.0.1-1
- update version to 1.0.1
* Thu Jan 19 2023 Lv Ying <lvying6@huawei.com> - 0.20.1-1
- update version to 0.20.1
* Sat Oct 22 2022 yanglongkang <yanglongkang@h-partners.com> - 0.17.6-2
- add the dynamic library file in the rpm package to the ldconfig management
fix rpmbuild warning
* Wed Dec 29 2021 yangzhuangzhuang <yangzhuangzhuang1@Huawei.com> - 0.17.6-1
- update version to 0.17.6
* Thu Jan 21 2021 yangzhuangzhuang <yangzhuangzhuang1@huawei.com> - 0.16.2-1
- update 0.16.2
* Sat Jul 25 2020 Liquor <lirui130@huawei.com> - 0.16.0-2
- remove python2
* Sat Jul 25 2020 Liquor <lirui130@huawei.com> - 0.16.0-1
- update 0.16.0
* Wed Apr 8 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.15.0-5
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:Add judgement of openEuler
* Sat Mar 14 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.15.0-4
- Add build requires of gdb
* Mon Oct 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.15.0-3
- Package rebuild.
* Wed Oct 09 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.15.0-2
- Add notice; Split and merge package with openeuler`s rules.
* Sat Sep 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.15.0-1
- Package init.
|