ghc-http-date-0.0.11-1.oe2409 0 >
f k ;G|`u` H%ӟ;\B'OflΎ߰+Rs$_n.#Hnt)+qj[]v+w&H@7Y;oFqwVfgw{"*}KcD`BgU^XK
hOmD;UM;Oxƫ֠2cfa1dd1d7b7e37746c96978de986dfb2a179c5c f8f253d000e45b0a4ec16b0138a8feaeb658e8fd6072ef3e682be6816fb19fd9 ?3譻^k+ > 7 # ? # d ; d h |
D > # Z ( 8 9 : F G H I R X Y ( \ h ] p ^ d e f 9 C ghc-http-date 0.0.11 1.oe2409 HTTP Date parser/formatter Fast parser and formatter for HTTP Date. f _dc-64g.compass-ci BSD-3-Clause http://openeuler.org Unspecified http-date-0.0.11.tar.gz https://hackage.haskell.org/package/http-date linux x86_64 灴 f f b0649067cd86015873098f048f923d1777d8079b63dd0e07f1c80bc2ae8a1708 32f923ac1ad9bdfeadce7c52a03c9ba6225ba60dc14137cb1cdf32ea84ccf4d3 root root root root ghc-http-date ghc-http-date-devel ghc-http-date-help ghc-http-date-prof
ghc-Cabal-devel ghc-array-devel ghc-array-prof ghc-attoparsec-devel ghc-attoparsec-prof ghc-base-devel ghc-base-prof ghc-bytestring-devel ghc-bytestring-prof ghc-rpm-macros ghc-time-devel ghc-time-prof rpmlib(CompressedFileNames) rpmlib(FileDigests) 3.0.4-1 4.6.0-1 i386 i486 i586 i686 pentium3 pentium4 athlon geode 4.18.2 ejLin Runze 0.0.11-1 - Initial packaging (Version 0.0.11) dc-64g.compass-ci 1726685279 0.0.11-1.oe2409 0.0.11-1.oe2409 0.0.11-1.oe2409 0.0.11-1.oe2409 ghc-http-date.spec http-date-0.0.11.tar.gz cpio gzip 9 utf-8 aa2ee174d07678553e243e21b3bd3cc6f283af99f0a6246d7b3b600beb58c689 69de4d7cbe4cfdc344b815cd135efe4e501ce568ed7ede44fc0cc6bbf92ecf8e
Name: ghc-http-date
Version: 0.0.11
Release: 1
Summary: HTTP Date parser/formatter
License: BSD-3-Clause
URL: https://hackage.haskell.org/package/http-date
Source0: https://hackage.haskell.org/package/http-date-0.0.11/http-date-0.0.11.tar.gz
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-array-devel
BuildRequires: ghc-array-prof
BuildRequires: ghc-attoparsec-devel
BuildRequires: ghc-attoparsec-prof
BuildRequires: ghc-base-devel
BuildRequires: ghc-base-prof
BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-bytestring-prof
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-time-devel
BuildRequires: ghc-time-prof
ExcludeArch: i386 i486 i586 i686 pentium3 pentium4 athlon geode
%description
Fast parser and formatter for HTTP Date.
%package devel
Summary: Haskell http-date library development files
Requires: ghc-http-date = 0.0.11-1.oe2409
Requires: ghc-compiler = 9.6.3
Requires(post): ghc-compiler = 9.6.3
Requires(postun): ghc-compiler = 9.6.3
%description devel
This package provides the Haskell http-date library development files.
%package -n ghc-http-date-help
Summary: Haskell http-date library documentation
BuildArch: noarch
%description -n ghc-http-date-help
This package provides the Haskell http-date library documentation.
%package -n ghc-http-date-prof
Summary: Haskell http-date profiling library
Requires: ghc-http-date-devel = 0.0.11-1.oe2409
Supplements: (ghc-http-date-devel and ghc-prof)
%description -n ghc-http-date-prof
This package provides the Haskell http-date profiling library.
%prep
cd '/home/lkp/rpmbuild/BUILD'
rm -rf 'http-date-0.0.11'
/usr/lib/rpm/rpmuncompress -x '/home/lkp/rpmbuild/SOURCES/http-date-0.0.11.tar.gz'
STATUS=$?
if [ $STATUS -ne 0 ]; then
exit $STATUS
fi
cd 'http-date-0.0.11'
/usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
for f in $(ls | grep -i -e '^\(ANNOUNCE\|AUTHORS\|CHANGELOG\|CHANGES\|CONTRIBUTORS\|README\|TODO\)'); do
if [ -f $f -a -x $f ]; then chmod a-x $f; fi
done
# -Wunused-label is extremely noisy
CFLAGS="${CFLAGS:--O2 -g -grecord-gcc-switches -pipe -fstack-protector-strong -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection }"
export CFLAGS
export LDFLAGS="${LDFLAGS:--Wl,-z,relro -Wl,--as-needed }"
if ! [ -f Setup.hs -o -f Setup.lhs ]; then
cp /usr/share/ghc-rpm-macros/Setup.hs .
fi
if [ -d "/usr/lib64/ghc-9.6.3/lib" ]; then
subsubdir=/lib
fi
[ -x Setup ] || ghc --make -package Cabal -no-user-package-db -dynamic Setup
LANG=C.utf8
./Setup --version
[ -x Setup ] || ghc --make -package Cabal -no-user-package-db -dynamic Setup
LANG=C.utf8
./Setup configure --prefix=/usr --libdir=/usr/lib64 --docdir=/usr/share/licenses/ghc-http-date --libsubdir='$compiler'${subsubdir}/'$pkgid' --datasubdir='$pkgid' --libexecsubdir='$pkgid' --ghc --dynlibdir=/usr/lib64/ghc-9.6.3${subsubdir} --global --ghc-options="${CFLAGS:+$(echo ' '$CFLAGS | sed -e 's/ / -optc/g')} ${LDFLAGS:+$(echo ' '$LDFLAGS | sed -e 's/ / -optl/g')} -fhide-source-paths" -v $cabal_configure_extra_options -p --enable-shared --htmldir=/usr/share/doc/ghc-9.6.3/html/libraries/http-date-0.0.11 --global
[ -x Setup ] || ghc --make -package Cabal -no-user-package-db -dynamic Setup
LANG=C.utf8
./Setup build -j${RPM_BUILD_NCPUS} -v
if [ -n dist/build/libHShttp-date-0.0.11*.so ]; then
[ -x Setup ] || ghc --make -package Cabal -no-user-package-db -dynamic Setup
LANG=C.utf8
./Setup haddock --html --hyperlink-source --hoogle
fi
%install
[ -x Setup ] || ghc --make -package Cabal -no-user-package-db -dynamic Setup
LANG=C.utf8
./Setup copy --destdir=/home/lkp/rpmbuild/BUILDROOT/ghc-http-date-0.0.11-1.oe2409.x86_64 -v
[ -x Setup ] || ghc --make -package Cabal -no-user-package-db -dynamic Setup
LANG=C.utf8
./Setup register --gen-pkg-config
if [ -d "/usr/lib64/ghc-9.6.3/lib" ]; then
subsubdir=/lib
fi
if [ -d http-date-0.0.11.conf ]; then
for i in $(ls "http-date-0.0.11.conf/"); do
sub=$(echo $i | sed -e "s/^[0-9]\+-//")
install -D --mode=0644 http-date-0.0.11.conf/${i} /home/lkp/rpmbuild/BUILDROOT/ghc-http-date-0.0.11-1.oe2409.x86_64/usr/lib64/ghc-9.6.3${subsubdir}/package.conf.d/${sub}.conf
done
else
install -D --mode=0644 http-date-0.0.11.conf /home/lkp/rpmbuild/BUILDROOT/ghc-http-date-0.0.11-1.oe2409.x86_64/usr/lib64/ghc-9.6.3${subsubdir}/package.conf.d/http-date-0.0.11.conf
fi
if [ -d "/usr/lib64/ghc-9.6.3/lib" ]; then
subsubdir=/lib
fi
if [ -z "$(ls /home/lkp/rpmbuild/BUILDROOT/ghc-http-date-0.0.11-1.oe2409.x86_64/usr/lib64/ghc-9.6.3${subsubdir}/package.conf.d/http-date-0.0.11*.conf)" ]; then
echo "/home/lkp/rpmbuild/BUILDROOT/ghc-http-date-0.0.11-1.oe2409.x86_64/usr/lib64/ghc-9.6.3${subsubdir}/package.conf.d/http-date-0.0.11*.conf not found"
exit 1
fi
rm -f ghc-http-date.files ghc-http-date-help.files
touch ghc-http-date.files ghc-http-date-help.files
for i in /home/lkp/rpmbuild/BUILDROOT/ghc-http-date-0.0.11-1.oe2409.x86_64/usr/lib64/ghc-9.6.3${subsubdir}/libHShttp-date-0.0.11-*ghc9.6.3.so; do
if [ -x "$i" ]; then
echo $i >> ghc-http-date.files
echo "%dir /usr/lib64/ghc-9.6.3/lib" >> ghc-http-date.files
else
echo $i: not found
exit 1
fi
done
pkgdir="/usr/lib64/ghc-9.6.3${subsubdir}/http-date-0.0.11"
if [ -d "/home/lkp/rpmbuild/BUILDROOT/ghc-http-date-0.0.11-1.oe2409.x86_64${pkgdir}" ]; then
find /home/lkp/rpmbuild/BUILDROOT/ghc-http-date-0.0.11-1.oe2409.x86_64${pkgdir} -type d -fprintf ghc-http-date-devel.files '%%dir %p\n' -o \( -name '*.p_hi' -o -name 'libHS*_p.a' \) -fprint ghc-http-date-prof.files -o -fprint ghc-http-date-devel.files
echo "%dir /usr/lib64/ghc-9.6.3/lib" >> ghc-http-date-devel.files
echo "%dir /usr/lib64/ghc-9.6.3/lib" >> ghc-http-date-prof.files
else
rm -f ghc-http-date-devel.files ghc-http-date-prof.files
touch ghc-http-date-devel.files ghc-http-date-prof.files
fi
ls /home/lkp/rpmbuild/BUILDROOT/ghc-http-date-0.0.11-1.oe2409.x86_64/usr/lib64/ghc-9.6.3${subsubdir}/package.conf.d/http-date-0.0.11*.conf >> ghc-http-date-devel.files
haddock_dir=/usr/share/doc/ghc-9.6.3/html/libraries/http-date-0.0.11
if [ -d /home/lkp/rpmbuild/BUILDROOT/ghc-http-date-0.0.11-1.oe2409.x86_64$haddock_dir ]; then
echo $haddock_dir >> ghc-http-date-help.files
fi
for i in ghc-http-date.files ghc-http-date-devel.files ghc-http-date-help.files ghc-http-date-prof.files; do
if [ -f "$i" ]; then
sed -i -e "s!/home/lkp/rpmbuild/BUILDROOT/ghc-http-date-0.0.11-1.oe2409.x86_64!!g" $i
fi
done
echo "running ghc_delete_rpaths:"
if ! type chrpath > /dev/null; then exit 1; fi
for i in $(find /home/lkp/rpmbuild/BUILDROOT/ghc-http-date-0.0.11-1.oe2409.x86_64 -type f -executable -exec sh -c "file {} | grep -q 'dynamically linked'" \; -print); do
if [ -x "$i" ]; then
rpath=$(chrpath $i | sed -e "s@^$i: R.*PATH=@@")
case "$rpath" in
*$PWD/*) chrpath -r "/usr/lib64/ghc-9.6.3/lib:/usr/lib64/ghc-9.6.3/lib/x86_64-linux-ghc-9.6.3" $i ;;
*) ;;
esac
else
echo "%ghc_delete_rpath: no $i executable"
exit 1
fi
done
%check
%post devel
/usr/bin/ghc-pkg-9.6.3 recache --no-user-package-db || :
%postun devel
/usr/bin/ghc-pkg-9.6.3 recache --no-user-package-db || :
%files -f ghc-http-date.files
%license LICENSE
%files devel -f ghc-http-date-devel.files
%files -n ghc-http-date-help -f ghc-http-date-help.files
%license LICENSE
%files -n ghc-http-date-prof -f ghc-http-date-prof.files
%changelog
* Thu Sep 28 2023 Lin Runze 0.0.11-1
- Initial packaging (Version 0.0.11)
? Xy