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