ghc-lpeg-1.0.4-1.oe2409 0 >
f" ;G|`u` ϫ|NS8_˓eibęB@8q+0{ @ozѪcdK-Ŧc]: u^!lNjs[L1x]"~Q-E'qQDUd2h?0s`d]FAG=/|,(2?{QsEB\@6}MwWӎ^Oqi6X hCol[(`%2PJL~:nM)ijsen>6`_ʜӁӑDLjz!7f]`r(3D
ѺBKL[Ai0y@=ݯA7@UsϹDqs!vd-1JMV.5ؕii kaڝ2fd10d7b71914e0333193d0215b781c918e542b6 f8e4ec179ac4aa57f622e1e5d9fc89aa1447e1c403b0fecb6261187fdcdf85eb Pc;y2Z > 7 ? d G / X ^ h p t
x
( \ | # ( L 8 T 9 X : { F G H I R X Y \ ] ( ^ H d I e N f S X \ b C ghc-lpeg 1.0.4 1.oe2409 LPeg – Parsing Expression Grammars For Lua This package contains the C sources of LPeg, as well as some tiny Haskell
helper to load the package.
. f!dc-64g.compass-ci MIT http://openeuler.org Unspecified lpeg-1.0.4.tar.gz https://hackage.haskell.org/package/lpeg linux x86_64 ( ā f!f!421df755025498482d2963fefddcc2a428397d43a3822e07a3387c7a3e8d1b9d 24084721a225f133682aa12c5ff4f65c7ea7b6b03894c6af0504864bea2054bb root root root root ghc-lpeg ghc-lpeg-devel ghc-lpeg-help ghc-lpeg-prof
ghc-Cabal-devel ghc-base-devel ghc-base-prof ghc-lua-devel ghc-lua-prof ghc-rpm-macros 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 1.0.4-1 - Initial packaging (Version 1.0.4) dc-64g.compass-ci 1726685685 1.0.4-1.oe2409 1.0.4-1.oe2409 1.0.4-1.oe2409 1.0.4-1.oe2409 ghc-lpeg.spec lpeg-1.0.4.tar.gz cpio gzip 9 utf-8 1b124d25b9db44619cc6fdb8333cb2771bf62b55fef0d017eb94fcb7692a5fba 9f4a22116eff24cb1a2238ce3928b6157cbc03e6241c53305be0e37d2b0643e4
Name: ghc-lpeg
Version: 1.0.4
Release: 1
Summary: LPeg – Parsing Expression Grammars For Lua
License: MIT
URL: https://hackage.haskell.org/package/lpeg
Source0: https://hackage.haskell.org/package/lpeg-1.0.4/lpeg-1.0.4.tar.gz
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-base-devel
BuildRequires: ghc-base-prof
BuildRequires: ghc-lua-devel
BuildRequires: ghc-lua-prof
BuildRequires: ghc-rpm-macros
ExcludeArch: i386 i486 i586 i686 pentium3 pentium4 athlon geode
%description
This package contains the C sources of LPeg, as well as some tiny Haskell
helper to load the package.
.
%package devel
Summary: Haskell lpeg library development files
Requires: ghc-lpeg = 1.0.4-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 lpeg library development files.
%package -n ghc-lpeg-help
Summary: Haskell lpeg library documentation
BuildArch: noarch
%description -n ghc-lpeg-help
This package provides the Haskell lpeg library documentation.
%package -n ghc-lpeg-prof
Summary: Haskell lpeg profiling library
Requires: ghc-lpeg-devel = 1.0.4-1.oe2409
Supplements: (ghc-lpeg-devel and ghc-prof)
%description -n ghc-lpeg-prof
This package provides the Haskell lpeg profiling library.
%prep
cd '/home/lkp/rpmbuild/BUILD'
rm -rf 'lpeg-1.0.4'
/usr/lib/rpm/rpmuncompress -x '/home/lkp/rpmbuild/SOURCES/lpeg-1.0.4.tar.gz'
STATUS=$?
if [ $STATUS -ne 0 ]; then
exit $STATUS
fi
cd 'lpeg-1.0.4'
/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-lpeg --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/lpeg-1.0.4 --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/libHSlpeg-1.0.4*.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-lpeg-1.0.4-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 lpeg-1.0.4.conf ]; then
for i in $(ls "lpeg-1.0.4.conf/"); do
sub=$(echo $i | sed -e "s/^[0-9]\+-//")
install -D --mode=0644 lpeg-1.0.4.conf/${i} /home/lkp/rpmbuild/BUILDROOT/ghc-lpeg-1.0.4-1.oe2409.x86_64/usr/lib64/ghc-9.6.3${subsubdir}/package.conf.d/${sub}.conf
done
else
install -D --mode=0644 lpeg-1.0.4.conf /home/lkp/rpmbuild/BUILDROOT/ghc-lpeg-1.0.4-1.oe2409.x86_64/usr/lib64/ghc-9.6.3${subsubdir}/package.conf.d/lpeg-1.0.4.conf
fi
if [ -d "/usr/lib64/ghc-9.6.3/lib" ]; then
subsubdir=/lib
fi
if [ -z "$(ls /home/lkp/rpmbuild/BUILDROOT/ghc-lpeg-1.0.4-1.oe2409.x86_64/usr/lib64/ghc-9.6.3${subsubdir}/package.conf.d/lpeg-1.0.4*.conf)" ]; then
echo "/home/lkp/rpmbuild/BUILDROOT/ghc-lpeg-1.0.4-1.oe2409.x86_64/usr/lib64/ghc-9.6.3${subsubdir}/package.conf.d/lpeg-1.0.4*.conf not found"
exit 1
fi
rm -f ghc-lpeg.files ghc-lpeg-help.files
touch ghc-lpeg.files ghc-lpeg-help.files
for i in /home/lkp/rpmbuild/BUILDROOT/ghc-lpeg-1.0.4-1.oe2409.x86_64/usr/lib64/ghc-9.6.3${subsubdir}/libHSlpeg-1.0.4-*ghc9.6.3.so; do
if [ -x "$i" ]; then
echo $i >> ghc-lpeg.files
echo "%dir /usr/lib64/ghc-9.6.3/lib" >> ghc-lpeg.files
else
echo $i: not found
exit 1
fi
done
pkgdir="/usr/lib64/ghc-9.6.3${subsubdir}/lpeg-1.0.4"
if [ -d "/home/lkp/rpmbuild/BUILDROOT/ghc-lpeg-1.0.4-1.oe2409.x86_64${pkgdir}" ]; then
find /home/lkp/rpmbuild/BUILDROOT/ghc-lpeg-1.0.4-1.oe2409.x86_64${pkgdir} -type d -fprintf ghc-lpeg-devel.files '%%dir %p\n' -o \( -name '*.p_hi' -o -name 'libHS*_p.a' \) -fprint ghc-lpeg-prof.files -o -fprint ghc-lpeg-devel.files
echo "%dir /usr/lib64/ghc-9.6.3/lib" >> ghc-lpeg-devel.files
echo "%dir /usr/lib64/ghc-9.6.3/lib" >> ghc-lpeg-prof.files
else
rm -f ghc-lpeg-devel.files ghc-lpeg-prof.files
touch ghc-lpeg-devel.files ghc-lpeg-prof.files
fi
ls /home/lkp/rpmbuild/BUILDROOT/ghc-lpeg-1.0.4-1.oe2409.x86_64/usr/lib64/ghc-9.6.3${subsubdir}/package.conf.d/lpeg-1.0.4*.conf >> ghc-lpeg-devel.files
haddock_dir=/usr/share/doc/ghc-9.6.3/html/libraries/lpeg-1.0.4
if [ -d /home/lkp/rpmbuild/BUILDROOT/ghc-lpeg-1.0.4-1.oe2409.x86_64$haddock_dir ]; then
echo $haddock_dir >> ghc-lpeg-help.files
fi
for i in ghc-lpeg.files ghc-lpeg-devel.files ghc-lpeg-help.files ghc-lpeg-prof.files; do
if [ -f "$i" ]; then
sed -i -e "s!/home/lkp/rpmbuild/BUILDROOT/ghc-lpeg-1.0.4-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-lpeg-1.0.4-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-lpeg.files
%license LICENSE
%files devel -f ghc-lpeg-devel.files
%doc CHANGELOG.md README.md
%files -n ghc-lpeg-help -f ghc-lpeg-help.files
%license LICENSE
%files -n ghc-lpeg-prof -f ghc-lpeg-prof.files
%changelog
* Thu Sep 28 2023 Lin Runze 1.0.4-1
- Initial packaging (Version 1.0.4)
? {e@K%w`www'݃[pw=HpwwI}g{{SN}jw՟3_.Cv?X89MYYfb
L̍LL(̬ ;+3=[oV]L {3PxZq zSm\-N&Ntx