| 1 | # Note: http://pkgs.fedoraproject.org/cgit/rpms/rpm.git/tree/rpm.spec?id=cef3bf822054a87f8f8ae53a31f4af9b3d88359b | 
|---|
| 2 |  | 
|---|
| 3 | # build against xz? | 
|---|
| 4 | %bcond_without xz | 
|---|
| 5 | # just for giggles, option to build with internal Berkeley DB | 
|---|
| 6 | %bcond_with int_bdb | 
|---|
| 7 | # run internal testsuite? | 
|---|
| 8 | %bcond_with check | 
|---|
| 9 | # build with plugins? | 
|---|
| 10 | %bcond_without plugins | 
|---|
| 11 | # build with sanitizers? | 
|---|
| 12 | %bcond_with sanitizer | 
|---|
| 13 | # build with libarchive? (needed for rpm2archive) | 
|---|
| 14 | %bcond_with libarchive | 
|---|
| 15 | # build with libimaevm.so | 
|---|
| 16 | %bcond_with libimaevm | 
|---|
| 17 | # build with new db format | 
|---|
| 18 | %bcond_with ndb | 
|---|
| 19 |  | 
|---|
| 20 | %define rpmhome %{_libdir}/rpm | 
|---|
| 21 |  | 
|---|
| 22 | %global rpmver 4.13.0 | 
|---|
| 23 | #global snapver rc2 | 
|---|
| 24 | %global srcver %{version}%{?snapver:-%{snapver}} | 
|---|
| 25 |  | 
|---|
| 26 | %define bdbname db4 | 
|---|
| 27 | %define bdbver 5.3.15 | 
|---|
| 28 | %define dbprefix db | 
|---|
| 29 |  | 
|---|
| 30 | Summary: The RPM package management system | 
|---|
| 31 | Name: rpm | 
|---|
| 32 | Version: %{rpmver} | 
|---|
| 33 | Release: %{?snapver:0.%{snapver}.}14%{?dist} | 
|---|
| 34 | Group: System Environment/Base | 
|---|
| 35 | Url: http://www.rpm.org/ | 
|---|
| 36 |  | 
|---|
| 37 | %scm_source svn http://svn.netlabs.org/repos/rpm/rpm/trunk 1035 | 
|---|
| 38 |  | 
|---|
| 39 | %if %{with int_bdb} | 
|---|
| 40 | Source1: db-%{bdbver}.tar.gz | 
|---|
| 41 | %endif | 
|---|
| 42 |  | 
|---|
| 43 | # Partially GPL/LGPL dual-licensed and some bits with BSD | 
|---|
| 44 | # SourceLicense: (GPLv2+ and LGPLv2+ with exceptions) and BSD | 
|---|
| 45 | License: GPLv2+ | 
|---|
| 46 |  | 
|---|
| 47 | Requires: coreutils | 
|---|
| 48 | %if %{without int_bdb} | 
|---|
| 49 | # db recovery tools, rpmdb_util symlinks | 
|---|
| 50 | Requires: %{bdbname}-utils | 
|---|
| 51 | %endif | 
|---|
| 52 | Requires: popt >= 1.10.2.1 | 
|---|
| 53 | Requires: curl | 
|---|
| 54 |  | 
|---|
| 55 | Requires: rpm-libs = %{version}-%{release} | 
|---|
| 56 | Requires: pthread >= 20151207 | 
|---|
| 57 | Requires: cube | 
|---|
| 58 |  | 
|---|
| 59 | Provides: rpm-macros-warpin | 
|---|
| 60 | Provides: rpm-macros-wps | 
|---|
| 61 |  | 
|---|
| 62 | BuildRequires: rexx_exe | 
|---|
| 63 |  | 
|---|
| 64 | %if %{without int_bdb} | 
|---|
| 65 | BuildRequires: %{bdbname}-devel | 
|---|
| 66 | %endif | 
|---|
| 67 |  | 
|---|
| 68 | %if %{with check} | 
|---|
| 69 | BuildRequires: fakechroot | 
|---|
| 70 | %endif | 
|---|
| 71 |  | 
|---|
| 72 | # XXX generally assumed to be installed but make it explicit as rpm | 
|---|
| 73 | # is a bit special... | 
|---|
| 74 | #BuildRequires: gawk | 
|---|
| 75 | BuildRequires: readline-devel zlib-devel | 
|---|
| 76 | BuildRequires: nss-devel | 
|---|
| 77 | BuildRequires: nss-softokn-freebl-devel | 
|---|
| 78 | # The popt version here just documents an older known-good version | 
|---|
| 79 | BuildRequires: popt-devel >= 1.10.2 | 
|---|
| 80 | BuildRequires: file-devel | 
|---|
| 81 | BuildRequires: gettext-devel gettext-common-devel | 
|---|
| 82 | BuildRequires: ncurses-devel | 
|---|
| 83 | BuildRequires: bzip2-devel >= 0.9.0c-2 | 
|---|
| 84 | # YD because of ucs4 | 
|---|
| 85 | BuildRequires: python-devel >= 2.7.6-13 | 
|---|
| 86 | BuildRequires: libcx-devel | 
|---|
| 87 | #BuildRequires: lua-devel >= 5.1 | 
|---|
| 88 | %if ! %{without xz} | 
|---|
| 89 | BuildRequires: xz-devel >= 4.999.8 | 
|---|
| 90 | %endif | 
|---|
| 91 | %if ! %{without libarchive} | 
|---|
| 92 | BuildRequires: libarchive-devel | 
|---|
| 93 | %endif | 
|---|
| 94 | BuildRequires: autoconf automake libtool | 
|---|
| 95 |  | 
|---|
| 96 | %if %{with plugins} | 
|---|
| 97 | #BuildRequires: dbus-devel | 
|---|
| 98 | %endif | 
|---|
| 99 |  | 
|---|
| 100 | %if %{with sanitizer} | 
|---|
| 101 | BuildRequires: libasan | 
|---|
| 102 | BuildRequires: libubsan | 
|---|
| 103 | #BuildRequires: liblsan | 
|---|
| 104 | #BuildRequires: libtsan | 
|---|
| 105 | %global sanitizer_flags -fsanitize=address -fsanitize=undefined | 
|---|
| 106 | %endif | 
|---|
| 107 |  | 
|---|
| 108 | %if %{with libimaevm} | 
|---|
| 109 | BuildRequires: ima-evm-utils | 
|---|
| 110 | %endif | 
|---|
| 111 |  | 
|---|
| 112 | %description | 
|---|
| 113 | The RPM Package Manager (RPM) is a powerful command line driven | 
|---|
| 114 | package management system capable of installing, uninstalling, | 
|---|
| 115 | verifying, querying, and updating software packages. Each software | 
|---|
| 116 | package consists of an archive of files along with information about | 
|---|
| 117 | the package like its version, a description, etc. | 
|---|
| 118 |  | 
|---|
| 119 | %package libs | 
|---|
| 120 | Summary:  Libraries for manipulating RPM packages | 
|---|
| 121 | Group: Development/Libraries | 
|---|
| 122 | License: GPLv2+ and LGPLv2+ with exceptions | 
|---|
| 123 | Requires: %{name} = %{version}-%{release} | 
|---|
| 124 |  | 
|---|
| 125 | # We need a fork-friendly PR_LoadLibrary on OS/2 | 
|---|
| 126 | Requires: nspr >= 4.12.0-2 | 
|---|
| 127 |  | 
|---|
| 128 | %description libs | 
|---|
| 129 | This package contains the RPM shared libraries. | 
|---|
| 130 |  | 
|---|
| 131 | %package build-libs | 
|---|
| 132 | Summary:  Libraries for building and signing RPM packages | 
|---|
| 133 | Group: Development/Libraries | 
|---|
| 134 | License: GPLv2+ and LGPLv2+ with exceptions | 
|---|
| 135 | Requires: %{name}-libs = %{version}-%{release} | 
|---|
| 136 | #Requires: %{_bindir}/gpg2 | 
|---|
| 137 |  | 
|---|
| 138 | %description build-libs | 
|---|
| 139 | This package contains the RPM shared libraries for building and signing | 
|---|
| 140 | packages. | 
|---|
| 141 |  | 
|---|
| 142 | %package devel | 
|---|
| 143 | Summary:  Development files for manipulating RPM packages | 
|---|
| 144 | Group: Development/Libraries | 
|---|
| 145 | License: GPLv2+ and LGPLv2+ with exceptions | 
|---|
| 146 | Requires: %{name} = %{version}-%{release} | 
|---|
| 147 | Requires: %{name}-libs = %{version}-%{release} | 
|---|
| 148 | Requires: %{name}-build-libs = %{version}-%{release} | 
|---|
| 149 | Requires: popt-devel | 
|---|
| 150 | Requires: file-devel | 
|---|
| 151 |  | 
|---|
| 152 | %description devel | 
|---|
| 153 | This package contains the RPM C library and header files. These | 
|---|
| 154 | development files will simplify the process of writing programs that | 
|---|
| 155 | manipulate RPM packages and databases. These files are intended to | 
|---|
| 156 | simplify the process of creating graphical package managers or any | 
|---|
| 157 | other tools that need an intimate knowledge of RPM packages in order | 
|---|
| 158 | to function. | 
|---|
| 159 |  | 
|---|
| 160 | This package should be installed if you want to develop programs that | 
|---|
| 161 | will manipulate RPM packages and databases. | 
|---|
| 162 |  | 
|---|
| 163 | %package build | 
|---|
| 164 | Summary: Scripts and executable programs used to build packages | 
|---|
| 165 | Group: Development/Tools | 
|---|
| 166 | Requires: rpm = %{version}-%{release} | 
|---|
| 167 | Requires: binutils | 
|---|
| 168 | Requires: findutils sed grep gawk diffutils file patch >= 2.5 | 
|---|
| 169 | Requires: tar unzip gzip bzip2 cpio xz | 
|---|
| 170 | Requires: pkgconfig >= 1:0.24 | 
|---|
| 171 | # Technically rpmbuild doesn't require any external configuration, but | 
|---|
| 172 | # creating distro-compatible packages does. To make the common case | 
|---|
| 173 | # "just work" while allowing for alternatives, depend on a virtual | 
|---|
| 174 | # provide, typically coming from redhat-rpm-config. | 
|---|
| 175 | #Requires: system-rpm-config | 
|---|
| 176 | # Techincally rpmbuild doesn't require python3 (and setuptools), but | 
|---|
| 177 | # pythondistdeps generator expects it. | 
|---|
| 178 | # See: https://bugzilla.redhat.com/show_bug.cgi?id=1410631 | 
|---|
| 179 | #Requires: python3-setuptools | 
|---|
| 180 |  | 
|---|
| 181 | %description build | 
|---|
| 182 | The rpm-build package contains the scripts and executable programs | 
|---|
| 183 | that are used to build packages using the RPM Package Manager. | 
|---|
| 184 |  | 
|---|
| 185 | %package sign | 
|---|
| 186 | Summary: Package signing support | 
|---|
| 187 | Group: System Environment/Base | 
|---|
| 188 | Requires: rpm-build-libs = %{version}-%{release} | 
|---|
| 189 |  | 
|---|
| 190 | %description sign | 
|---|
| 191 | This package contains support for digitally signing RPM packages. | 
|---|
| 192 |  | 
|---|
| 193 | %package -n python2-%{name} | 
|---|
| 194 | Summary: Python 2 bindings for apps which will manipulate RPM packages | 
|---|
| 195 | Group: Development/Libraries | 
|---|
| 196 | BuildRequires: python2-devel | 
|---|
| 197 | %{?python_provide:%python_provide python2-%{name}} | 
|---|
| 198 | Requires: %{name}-libs = %{version}-%{release} | 
|---|
| 199 | Provides: %{name}-python = %{version}-%{release} | 
|---|
| 200 | Obsoletes: %{name}-python < %{version}-%{release} | 
|---|
| 201 | # YD because of ucs4 | 
|---|
| 202 | Requires: python >= 2.7.6-13 | 
|---|
| 203 |  | 
|---|
| 204 | %description -n python2-%{name} | 
|---|
| 205 | The python2-rpm package contains a module that permits applications | 
|---|
| 206 | written in the Python programming language to use the interface | 
|---|
| 207 | supplied by RPM Package Manager libraries. | 
|---|
| 208 |  | 
|---|
| 209 | This package should be installed if you want to develop Python 2 | 
|---|
| 210 | programs that will manipulate RPM packages and databases. | 
|---|
| 211 |  | 
|---|
| 212 | #package -n python3-%{name} | 
|---|
| 213 | #Summary: Python 3 bindings for apps which will manipulate RPM packages | 
|---|
| 214 | #Group: Development/Libraries | 
|---|
| 215 | #BuildRequires: python3-devel | 
|---|
| 216 | #{?python_provide:%python_provide python3-%{name}} | 
|---|
| 217 | #{?system_python_abi} | 
|---|
| 218 | #Requires: %{name}-libs%{?_isa} = %{version}-%{release} | 
|---|
| 219 | #Provides: %{name}-python3 = %{version}-%{release} | 
|---|
| 220 | #Obsoletes: %{name}-python3 < %{version}-%{release} | 
|---|
| 221 |  | 
|---|
| 222 | #description -n python3-%{name} | 
|---|
| 223 | #the python3-rpm package contains a module that permits applications | 
|---|
| 224 | #written in the Python programming language to use the interface | 
|---|
| 225 | #supplied by RPM Package Manager libraries. | 
|---|
| 226 | # | 
|---|
| 227 | #This package should be installed if you want to develop Python 3 | 
|---|
| 228 | #programs that will manipulate RPM packages and databases. | 
|---|
| 229 |  | 
|---|
| 230 | %package apidocs | 
|---|
| 231 | Summary: API documentation for RPM libraries | 
|---|
| 232 | Group: Documentation | 
|---|
| 233 | BuildArch: noarch | 
|---|
| 234 |  | 
|---|
| 235 | %description apidocs | 
|---|
| 236 | This package contains API documentation for developing applications | 
|---|
| 237 | that will manipulate RPM packages and databases. | 
|---|
| 238 |  | 
|---|
| 239 | %package cron | 
|---|
| 240 | Summary: Create daily logs of installed packages. | 
|---|
| 241 | Group: System Environment/Base | 
|---|
| 242 | BuildArch: noarch | 
|---|
| 243 | Requires: crontabs logrotate rpm = %{version}-%{release} | 
|---|
| 244 |  | 
|---|
| 245 | %description cron | 
|---|
| 246 | This package contains a cron job which creates daily logs of installed | 
|---|
| 247 | packages on a system. | 
|---|
| 248 |  | 
|---|
| 249 | %debug_package | 
|---|
| 250 |  | 
|---|
| 251 | %if %{with plugins} | 
|---|
| 252 |  | 
|---|
| 253 | %package plugin-syslog | 
|---|
| 254 | Summary: Rpm plugin for syslog functionality | 
|---|
| 255 | Group: System Environment/Base | 
|---|
| 256 | Requires: rpm-libs%{_isa} = %{version}-%{release} | 
|---|
| 257 |  | 
|---|
| 258 | %description plugin-syslog | 
|---|
| 259 | %{summary} | 
|---|
| 260 |  | 
|---|
| 261 | %package plugin-ima | 
|---|
| 262 | Summary: Rpm plugin ima file signatures | 
|---|
| 263 | Group: System Environment/Base | 
|---|
| 264 | Requires: rpm-libs%{_isa} = %{version}-%{release} | 
|---|
| 265 |  | 
|---|
| 266 | %description plugin-ima | 
|---|
| 267 | %{summary} | 
|---|
| 268 |  | 
|---|
| 269 | %endif | 
|---|
| 270 |  | 
|---|
| 271 | %prep | 
|---|
| 272 | %scm_setup | 
|---|
| 273 |  | 
|---|
| 274 | %if %{with int_bdb} | 
|---|
| 275 | ln -s db-%{bdbver} db | 
|---|
| 276 | %endif | 
|---|
| 277 |  | 
|---|
| 278 | %build | 
|---|
| 279 |  | 
|---|
| 280 | # Make default paths to tools start with /@unixroot on OS/2 | 
|---|
| 281 | sed -i \ | 
|---|
| 282 | -e '/AC_PATH_PROGS\?(/ { | 
|---|
| 283 | s#, \?/usr/#, /@unixroot/usr/# ; | 
|---|
| 284 | s#, \?/bin/#, /@unixroot/usr/bin/# ; | 
|---|
| 285 | s#, \?/sbin/#, /@unixroot/usr/sbin/# ; | 
|---|
| 286 | }' \ | 
|---|
| 287 | configure.ac | 
|---|
| 288 |  | 
|---|
| 289 | CPPFLAGS="`pkg-config --cflags nss`" # -DLUA_COMPAT_APIINTCASTS" | 
|---|
| 290 | CFLAGS="$RPM_OPT_FLAGS %{?sanitizer_flags}" # -DLUA_COMPAT_APIINTCASTS" | 
|---|
| 291 | LDFLAGS="%{?__global_ldflags} -Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" | 
|---|
| 292 | LIBS="-lintl -lcx" | 
|---|
| 293 | export CPPFLAGS CFLAGS LDFLAGS LIBS | 
|---|
| 294 |  | 
|---|
| 295 | autoreconf -i -f | 
|---|
| 296 |  | 
|---|
| 297 | # Make tools we don't yet have in OS/2 RPMs pathless | 
|---|
| 298 | export ac_cv_path___SSH=ssh | 
|---|
| 299 |  | 
|---|
| 300 | %configure \ | 
|---|
| 301 | --enable-shared --disable-static \ | 
|---|
| 302 | %{!?with_int_bdb: --with-external-db} \ | 
|---|
| 303 | %{!?with_plugins: --disable-plugins} \ | 
|---|
| 304 | %{!?with_lua: --without-lua} \ | 
|---|
| 305 | %{!?with_libarchive: --without-archive} \ | 
|---|
| 306 | %{?with_ndb: --with-ndb} \ | 
|---|
| 307 | --enable-python | 
|---|
| 308 |  | 
|---|
| 309 | make %{?_smp_mflags} | 
|---|
| 310 |  | 
|---|
| 311 | #pushd python | 
|---|
| 312 | #{__python2} setup.py build | 
|---|
| 313 | #{__python3} setup.py build | 
|---|
| 314 | #popd | 
|---|
| 315 |  | 
|---|
| 316 | %install | 
|---|
| 317 | rm -rf $RPM_BUILD_ROOT | 
|---|
| 318 |  | 
|---|
| 319 | make DESTDIR="$RPM_BUILD_ROOT" install | 
|---|
| 320 |  | 
|---|
| 321 | # We need to build with --enable-python for the self-test suite, but we | 
|---|
| 322 | # actually package the bindings built with setup.py (#531543#c26) | 
|---|
| 323 | #pushd python | 
|---|
| 324 | #{__python2} setup.py install --skip-build --root $RPM_BUILD_ROOT | 
|---|
| 325 | #{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT | 
|---|
| 326 | #popd | 
|---|
| 327 |  | 
|---|
| 328 | # Remove OS/2 import libraries from plugins | 
|---|
| 329 | rm ${RPM_BUILD_ROOT}%{_libdir}/rpm-plugins/*_dll.a | 
|---|
| 330 |  | 
|---|
| 331 | # No /bin on OS/2 | 
|---|
| 332 | mv ${RPM_BUILD_ROOT}/@unixroot/bin/rpm.exe ${RPM_BUILD_ROOT}%{_bindir}/rpm.exe | 
|---|
| 333 |  | 
|---|
| 334 | # Remove elf attr magic (makes no sense on OS/2) | 
|---|
| 335 | rm ${RPM_BUILD_ROOT}%{rpmhome}/fileattrs/elf.attr | 
|---|
| 336 |  | 
|---|
| 337 | # Replace OS/2 paths with /@unixroot and /@system_drive | 
|---|
| 338 | sed -i \ | 
|---|
| 339 | -e 's#[^a-zA-Z][a-zA-Z]:/ecs/#/@system_drive/ecs/#gi' \ | 
|---|
| 340 | -e 's#[^a-zA-Z][a-zA-Z]:/tcpip/bin/#/@system_drive/tcpip/bin/#gi' \ | 
|---|
| 341 | ${RPM_BUILD_ROOT}%{rpmhome}/macros | 
|---|
| 342 |  | 
|---|
| 343 | # Check there are no paths starting with drive letter or having usr/local | 
|---|
| 344 | ! grep -q \ | 
|---|
| 345 | -e '[^a-zA-Z][a-zA-Z]:/' \ | 
|---|
| 346 | -e '/usr/local' \ | 
|---|
| 347 | ${RPM_BUILD_ROOT}%{rpmhome}/macros | 
|---|
| 348 |  | 
|---|
| 349 | # Pack OS/2 Rexx scripts | 
|---|
| 350 | for f in wps-object warpin-conflicts ; do | 
|---|
| 351 | rexx2vio "${RPM_BUILD_ROOT}%{rpmhome}/$f.cmd" "${RPM_BUILD_ROOT}%{rpmhome}/$f.exe" | 
|---|
| 352 | rm "${RPM_BUILD_ROOT}%{rpmhome}/$f.cmd" | 
|---|
| 353 | sed -i "s#$f.cmd#$f.exe#gi" ${RPM_BUILD_ROOT}%{rpmhome}/macros | 
|---|
| 354 | done | 
|---|
| 355 |  | 
|---|
| 356 | # Save list of packages through cron | 
|---|
| 357 | mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/cron.daily | 
|---|
| 358 | install -m 755 scripts/rpm.daily ${RPM_BUILD_ROOT}%{_sysconfdir}/cron.daily/rpm | 
|---|
| 359 |  | 
|---|
| 360 | mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d | 
|---|
| 361 | install -m 644 scripts/rpm.log ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d/rpm | 
|---|
| 362 |  | 
|---|
| 363 | #mkdir -p ${RPM_BUILD_ROOT}/usr/lib/tmpfiles.d | 
|---|
| 364 | #echo "r /var/lib/rpm/__db.*" > ${RPM_BUILD_ROOT}/usr/lib/tmpfiles.d/rpm.conf | 
|---|
| 365 |  | 
|---|
| 366 | mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rpm | 
|---|
| 367 | mkdir -p $RPM_BUILD_ROOT%{rpmhome}/macros.d | 
|---|
| 368 |  | 
|---|
| 369 | mkdir -p $RPM_BUILD_ROOT%{_var}/lib/rpm | 
|---|
| 370 | for dbi in \ | 
|---|
| 371 | Basenames Conflictname Dirnames Group Installtid Name Obsoletename \ | 
|---|
| 372 | Packages Providename Requirename Triggername Sha1header Sigmd5 \ | 
|---|
| 373 | __db.001 __db.002 __db.003 __db.004 __db.005 __db.006 __db.007 \ | 
|---|
| 374 | __db.008 __db.009 | 
|---|
| 375 | do | 
|---|
| 376 | touch $RPM_BUILD_ROOT%{_var}/lib/rpm/$dbi | 
|---|
| 377 | done | 
|---|
| 378 |  | 
|---|
| 379 | # plant links to db utils as rpmdb_foo so existing documantion is usable | 
|---|
| 380 | %if %{without int_bdb} | 
|---|
| 381 | for dbutil in \ | 
|---|
| 382 | archive deadlock dump load printlog \ | 
|---|
| 383 | recover stat upgrade verify | 
|---|
| 384 | do | 
|---|
| 385 | ln -s ../../bin/%{dbprefix}_${dbutil} $RPM_BUILD_ROOT/%{rpmhome}/rpmdb_${dbutil} | 
|---|
| 386 | done | 
|---|
| 387 | %endif | 
|---|
| 388 |  | 
|---|
| 389 | %find_lang %{name} | 
|---|
| 390 |  | 
|---|
| 391 | find $RPM_BUILD_ROOT -name "*.la"|xargs rm -f | 
|---|
| 392 |  | 
|---|
| 393 | # These live in perl-generators now | 
|---|
| 394 | #rm -f $RPM_BUILD_ROOT/%{rpmhome}/{perldeps.pl,perl.*} | 
|---|
| 395 | #rm -f $RPM_BUILD_ROOT/%{_fileattrsdir}/perl* | 
|---|
| 396 | # Axe unused cruft | 
|---|
| 397 | rm -f $RPM_BUILD_ROOT/%{rpmhome}/{tcl.req,osgideps.pl} | 
|---|
| 398 |  | 
|---|
| 399 | %clean | 
|---|
| 400 | rm -rf $RPM_BUILD_ROOT | 
|---|
| 401 |  | 
|---|
| 402 | %if %{with check} | 
|---|
| 403 | %check | 
|---|
| 404 | make check | 
|---|
| 405 | [ "$(ls -A tests/rpmtests.dir)" ] && cat tests/rpmtests.log | 
|---|
| 406 | %endif | 
|---|
| 407 |  | 
|---|
| 408 | %files -f %{name}.lang | 
|---|
| 409 | %license COPYING | 
|---|
| 410 | %doc GROUPS CREDITS doc/manual/[a-z]* | 
|---|
| 411 |  | 
|---|
| 412 | #/usr/lib/tmpfiles.d/rpm.conf | 
|---|
| 413 | %dir %{_sysconfdir}/rpm | 
|---|
| 414 |  | 
|---|
| 415 | %attr(0755, root, root) %dir %{_var}/lib/rpm | 
|---|
| 416 | %attr(0644, root, root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) %{_var}/lib/rpm/* | 
|---|
| 417 | %attr(0755, root, root) %dir %{rpmhome} | 
|---|
| 418 |  | 
|---|
| 419 | %{_bindir}/rpm.exe | 
|---|
| 420 | %{?with_libarchive: %{_bindir}/rpm2archive.exe} | 
|---|
| 421 | %{_bindir}/rpm2cpio.exe | 
|---|
| 422 | %{_bindir}/rpmdb.exe | 
|---|
| 423 | %{_bindir}/rpmkeys.exe | 
|---|
| 424 | %{_bindir}/rpmquery | 
|---|
| 425 | %{_bindir}/rpmverify | 
|---|
| 426 |  | 
|---|
| 427 | %{_mandir}/man8/rpm.8* | 
|---|
| 428 | %{_mandir}/man8/rpmdb.8* | 
|---|
| 429 | %{_mandir}/man8/rpmkeys.8* | 
|---|
| 430 | %{_mandir}/man8/rpm2cpio.8* | 
|---|
| 431 |  | 
|---|
| 432 | # XXX this places translated manuals to wrong package wrt eg rpmbuild | 
|---|
| 433 | %lang(fr) %{_mandir}/fr/man[18]/*.[18]* | 
|---|
| 434 | %lang(ko) %{_mandir}/ko/man[18]/*.[18]* | 
|---|
| 435 | %lang(ja) %{_mandir}/ja/man[18]/*.[18]* | 
|---|
| 436 | %lang(pl) %{_mandir}/pl/man[18]/*.[18]* | 
|---|
| 437 | %lang(ru) %{_mandir}/ru/man[18]/*.[18]* | 
|---|
| 438 | %lang(sk) %{_mandir}/sk/man[18]/*.[18]* | 
|---|
| 439 |  | 
|---|
| 440 | %attr(0755, root, root) %dir %{rpmhome} | 
|---|
| 441 | %{rpmhome}/macros | 
|---|
| 442 | %{rpmhome}/macros.d | 
|---|
| 443 | %{rpmhome}/rpmpopt* | 
|---|
| 444 | %{rpmhome}/rpmrc | 
|---|
| 445 |  | 
|---|
| 446 | %{rpmhome}/rpmdb_* | 
|---|
| 447 | %{rpmhome}/rpm.daily | 
|---|
| 448 | %{rpmhome}/rpm.log | 
|---|
| 449 | %{rpmhome}/rpm.supp | 
|---|
| 450 | %{rpmhome}/rpm2cpio.sh | 
|---|
| 451 | %{rpmhome}/tgpg | 
|---|
| 452 |  | 
|---|
| 453 | %{rpmhome}/platform | 
|---|
| 454 |  | 
|---|
| 455 | %dir %{rpmhome}/fileattrs | 
|---|
| 456 |  | 
|---|
| 457 | %{rpmhome}/wps-object.exe | 
|---|
| 458 | %{rpmhome}/warpin-conflicts.exe | 
|---|
| 459 |  | 
|---|
| 460 | %files libs | 
|---|
| 461 | %{_libdir}/rpmio[0-9].dll | 
|---|
| 462 | %{_libdir}/rpm[0-9].dll | 
|---|
| 463 | %if %{with plugins} | 
|---|
| 464 | %dir %{_libdir}/rpm-plugins | 
|---|
| 465 |  | 
|---|
| 466 | %files plugin-syslog | 
|---|
| 467 | %{_libdir}/rpm-plugins/syslog.dll | 
|---|
| 468 |  | 
|---|
| 469 | %files plugin-ima | 
|---|
| 470 | %{_libdir}/rpm-plugins/ima.dll | 
|---|
| 471 | %endif | 
|---|
| 472 |  | 
|---|
| 473 | %files build-libs | 
|---|
| 474 | %{_libdir}/rpmbuil[0-9].dll | 
|---|
| 475 | %{_libdir}/rpmsign[0-9].dll | 
|---|
| 476 |  | 
|---|
| 477 | %files build | 
|---|
| 478 | %{_bindir}/rpmbuild.exe | 
|---|
| 479 | %{_bindir}/gendiff | 
|---|
| 480 | %{_bindir}/rpmspec.exe | 
|---|
| 481 |  | 
|---|
| 482 | %{_mandir}/man1/gendiff.1* | 
|---|
| 483 | %{_mandir}/man8/rpmbuild.8* | 
|---|
| 484 | %{_mandir}/man8/rpmdeps.8* | 
|---|
| 485 | %{_mandir}/man8/rpmspec.8* | 
|---|
| 486 |  | 
|---|
| 487 | %{rpmhome}/brp-* | 
|---|
| 488 | %{rpmhome}/check-* | 
|---|
| 489 | #{rpmhome}/debugedit | 
|---|
| 490 | #{rpmhome}/sepdebugcrcfix | 
|---|
| 491 | #{rpmhome}/find-debuginfo.sh | 
|---|
| 492 | %{rpmhome}/find-lang.sh | 
|---|
| 493 | %{rpmhome}/find-legacy-runtime.sh | 
|---|
| 494 | %{rpmhome}/*provides* | 
|---|
| 495 | %{rpmhome}/*requires* | 
|---|
| 496 | %{rpmhome}/*deps* | 
|---|
| 497 | %{rpmhome}/*.prov | 
|---|
| 498 | %{rpmhome}/*.req | 
|---|
| 499 | %{rpmhome}/config.* | 
|---|
| 500 | %{rpmhome}/macros.p* | 
|---|
| 501 | %{rpmhome}/fileattrs/* | 
|---|
| 502 |  | 
|---|
| 503 | %files sign | 
|---|
| 504 | %{_bindir}/rpmsign.exe | 
|---|
| 505 | %{_mandir}/man8/rpmsign.8* | 
|---|
| 506 |  | 
|---|
| 507 | %files -n python2-%{name} | 
|---|
| 508 | %{python_sitearch}/%{name}/ | 
|---|
| 509 | #{python_sitearch}/%{name}_python-*.egg-info | 
|---|
| 510 |  | 
|---|
| 511 | #files -n python3-%{name} | 
|---|
| 512 | #{python3_sitearch}/%{name}/ | 
|---|
| 513 | #{python3_sitearch}/%{name}_python-*.egg-info | 
|---|
| 514 |  | 
|---|
| 515 | %files devel | 
|---|
| 516 | %{_mandir}/man8/rpmgraph.8* | 
|---|
| 517 | %{_bindir}/rpmgraph.exe | 
|---|
| 518 | %{_libdir}/rp*[a-z].a | 
|---|
| 519 | %{_libdir}/pkgconfig/%{name}.pc | 
|---|
| 520 | %{_includedir}/%{name}/ | 
|---|
| 521 |  | 
|---|
| 522 | %files cron | 
|---|
| 523 | %{_sysconfdir}/cron.daily/rpm | 
|---|
| 524 | %config(noreplace) %{_sysconfdir}/logrotate.d/rpm | 
|---|
| 525 |  | 
|---|
| 526 | %files apidocs | 
|---|
| 527 | %license COPYING | 
|---|
| 528 | %doc doc/librpm/html/* | 
|---|
| 529 |  | 
|---|
| 530 | %changelog | 
|---|
| 531 | * Sat Feb 25 2017 Dmitriy Kuminov <coding@dmik.org> - 4.13.0-14 | 
|---|
| 532 | - Update to version 4.13.0 GA. | 
|---|
| 533 | - Fix sed warnings in find-lang.sh due to ':' in pats on OS/2. | 
|---|
| 534 | - Bring .spec in sync with current Fedora .spec (this renames some packages | 
|---|
| 535 | and adds some more). | 
|---|
| 536 |  | 
|---|
| 537 | * Fri Feb 24 2017 Dmitriy Kuminov <coding@dmik.org> - 4.13.0-13 | 
|---|
| 538 | - Use proper SVN revision for the build. | 
|---|
| 539 |  | 
|---|
| 540 | * Fri Feb 24 2017 Dmitriy Kuminov <coding@dmik.org> - 4.13.0-12 | 
|---|
| 541 | - Fix install/uninstall scriptlet execution (regression of previous release). | 
|---|
| 542 | - Make brp-compress support OS/2 (enables compression of man files). | 
|---|
| 543 |  | 
|---|
| 544 | * Thu Feb 23 2017 Dmitriy Kuminov <coding@dmik.org> - 4.13.0-11 | 
|---|
| 545 | - Use scm_source and friends. | 
|---|
| 546 | - Use OS/2 autoconf instead of pre-generated configure (this also adds ABI suffix to all DLLs). | 
|---|
| 547 | - Restore using fork (that was replaced by popen) to reduce the number of OS/2-specific hacks. | 
|---|
| 548 | - Fix executing popt aliases with --pipe (like rpm -qa --last). | 
|---|
| 549 | - Use common check-files instead of check-files.os2. | 
|---|
| 550 | - Remove URPO dependency. | 
|---|
| 551 | - Fix a lot of compiler warnings. | 
|---|
| 552 | - Fix paths to Tools defined in macros. | 
|---|
| 553 |  | 
|---|
| 554 | * Fri Feb 10 2017 yd <yd@os2power.com> 4.13.0-10 | 
|---|
| 555 | - r978, need scriptlet to run upon uninstall to remove WPS objects. ticket#227. | 
|---|
| 556 | - r957,969, Auto setup macros for SCM-hosted sources. ticket#232. | 
|---|
| 557 | - r954, make brp-strip.os2 always create debugfiles.list in top build directory. ticket#230. | 
|---|
| 558 | - r953,956,972 add legacy runtime packages support. ticket#228. | 
|---|
| 559 | - r951, replace $RPM_BUILD_NCPUS macro with a better version. fixes ticket#201. | 
|---|
| 560 | - link with libcx for memory mapping support. | 
|---|
| 561 |  | 
|---|
| 562 | * Tue Jun 14 2016 yd <yd@os2power.com> 4.13.0-9 | 
|---|
| 563 | - r759, remove read-only flag before unlocking modules. fixes ticket#180. | 
|---|
| 564 |  | 
|---|
| 565 | * Thu Jun 09 2016 yd <yd@os2power.com> 4.13.0-8 | 
|---|
| 566 | - rebuild for ucs4, ticket#182. | 
|---|
| 567 |  | 
|---|
| 568 | * Thu Mar 17 2016 yd <yd@os2power.com> 4.13.0-7 | 
|---|
| 569 | - r706, fix full paths in rpmbuild command line. | 
|---|
| 570 |  | 
|---|
| 571 | * Sun Mar 13 2016 yd <yd@os2power.com> 4.13.0-6 | 
|---|
| 572 | - r693, do not try to start NULL scripts. fixes ticket#178. | 
|---|
| 573 | - r692, disable hard link table building, ticket#172. | 
|---|
| 574 |  | 
|---|
| 575 | * Fri Jan 08 2016 yd <yd@os2power.com> 4.13.0-5 | 
|---|
| 576 | - r639, rpm: check file handle before closing stuffs. ticket#143. | 
|---|
| 577 |  | 
|---|
| 578 | * Fri Jan 08 2016 yd <yd@os2power.com> 4.13.0-4 | 
|---|
| 579 | - add sed as requirement, fixes ticket#162. | 
|---|
| 580 | - r636, remap /bin to /@unixroot/usr/bin. fixes ticket#137. | 
|---|
| 581 | - r634-635, replace fork() with popen() when redirecting output. fixes ticket#143. | 
|---|
| 582 |  | 
|---|
| 583 | * Tue Dec 29 2015 yd <yd@os2power.com> 4.13.0-3 | 
|---|
| 584 | - r628, cleanup unused sqlite entries. | 
|---|
| 585 | - r627, use popen() to replace forking on script execution. | 
|---|
| 586 |  | 
|---|
| 587 | * Tue Dec 15 2015 yd <yd@os2power.com> 4.13.0-2 | 
|---|
| 588 | - r615, standardize debug package creation, ticket#149. | 
|---|
| 589 |  | 
|---|
| 590 | * Tue Dec 08 2015 yd <yd@os2power.com> 4.13.0-1 | 
|---|
| 591 | - r596, ignore KDE macros in find-lang. | 
|---|
| 592 | - r595, build fixes. | 
|---|
| 593 | - r594, merge 4.13.0 changes into trunk, build fixes. | 
|---|
| 594 | - r589, set DB_PRIVATE flag to avoid issues with BDB and incomplete mmapping support. | 
|---|
| 595 |  | 
|---|
| 596 | * Thu Nov 12 2015 yd <yd@os2power.com> 4.8.1-24 | 
|---|
| 597 | - r582, allow use of platform specific macros file. fixes ticket#135. | 
|---|
| 598 | - r581, standardize debug package creation. fixes ticket#134. | 
|---|
| 599 |  | 
|---|
| 600 | * Wed Feb 25 2015 yd <yd@os2power.com> 4.8.1-23 | 
|---|
| 601 | - r557, backport r536, Make %find_lang macro work on OS/2. | 
|---|
| 602 | - r558, add support for macros.d directory, fixes ticket#119. | 
|---|
| 603 | - r536, Make %find_lang macro work on OS/2. | 
|---|
| 604 |  | 
|---|
| 605 | * Fri Jan 30 2015 yd <yd@os2power.com> 4.8.1-22 | 
|---|
| 606 | - r505, define SHELL/CONFIG_SHELL/MAKESHELL automatically for every build. | 
|---|
| 607 | - r504, ignore colors, they are only used for X86_64 elf linux to mix 32/64 bit code. | 
|---|
| 608 | - r503, trunk backport, backport, enable short circuit also for -bb build binary packages option. | 
|---|
| 609 |  | 
|---|
| 610 | * Thu Jan 08 2015 yd | 
|---|
| 611 | - -Zbin-files is not optional... | 
|---|
| 612 |  | 
|---|
| 613 | * Thu Jan 01 2015 yd | 
|---|
| 614 | - r486, use urpo renameForce() to rename locked databases. ticket#99. | 
|---|
| 615 | - implement subversion sources checkout. | 
|---|
| 616 |  | 
|---|
| 617 | * Wed Dec 24 2014 yd | 
|---|
| 618 | - r484, r485, ticket#99. | 
|---|
| 619 |  | 
|---|
| 620 | * Wed Apr 09 2014 yd | 
|---|
| 621 | - r409, popen() does not recognize unixroot, fixes macro expansion. | 
|---|
| 622 |  | 
|---|
| 623 | * Mon Apr 07 2014 yd | 
|---|
| 624 | - build for python 2.7. | 
|---|
| 625 |  | 
|---|
| 626 | * Mon Mar 03 2014 yd | 
|---|
| 627 | - r378 and others, upgrade to vendor 4.11.1, build of debug info packages. | 
|---|
| 628 |  | 
|---|
| 629 | * Thu Mar 28 2013 yd | 
|---|
| 630 | - r341, fix scripts symlinks. | 
|---|
| 631 |  | 
|---|
| 632 | * Thu Mar 14 2013 yd | 
|---|
| 633 | - added tool requirements for build package. | 
|---|
| 634 |  | 
|---|
| 635 | * Tue Mar 13 2012 yd | 
|---|
| 636 | - updated warpin-conflict.cmd, ticket #27, #31. | 
|---|
| 637 |  | 
|---|
| 638 | * Sun Nov 20 2011 yd | 
|---|
| 639 | - use shell in /usr/bin. | 
|---|
| 640 |  | 
|---|
| 641 | * Fri Nov 18 2011 yd | 
|---|
| 642 | - keep all executables to /usr/bin and place symlinks in /bin | 
|---|